gps.log.out
Class GPSCompoGPSTrkFile
java.lang.Object
gps.log.out.GPSFile
gps.log.out.GPSCompoGPSTrkFile
- All Implemented Interfaces:
- GPSFileConverterInterface, GPSFileConfInterface, GPSFileInterface
public final class GPSCompoGPSTrkFile
- extends GPSFile
Class to write a CompeGPS TRK file or WPT file.
- Author:
- Mario De Weerd
Method Summary |
void |
initialiseFile(BT747Path basename,
java.lang.String ext,
int card,
int oneFilePerDay)
|
boolean |
nextPass()
Called when the input file has been parsed. |
void |
writeFileHeader(java.lang.String s)
This method is to be extended as needed and is called when the file
header must be written. |
void |
writeRecord(GPSRecord s)
Called for any new position. |
Methods inherited from class gps.log.out.GPSFile |
addLogRecord, cachedRecordIsNeeded, finaliseFile, getBadTrackColor, getErrorInfo, getFilesCreated, getGoodTrackColor, getMaxDiff, getNbrFilesCreated, getParamObject, getUserWayPointList, initialiseFile, isAddLogConditionInfo, isOverridePreviousTag, isRecordNbrInLogs, needPassToFindFieldsActivatedInLog, setActiveFileFields, setAddLogConditionInfo, setBadTrackColor, setFilenameBuilder, setFilters, setGoodTrackColor, setImperial, setIncludeTrkComment, setIncludeTrkName, setMaxDiff, setOutputFields, setOverridePreviousTag, setParamObject, setRecordNbrInLogs, setTimeOffset, setTrackSepTime, setUserWayPointList, setWayPointTimeCorrection, writeLogFmtHeader |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPSCompoGPSTrkFile
public GPSCompoGPSTrkFile()
initialiseFile
public final void initialiseFile(BT747Path basename,
java.lang.String ext,
int card,
int oneFilePerDay)
writeFileHeader
public final void writeFileHeader(java.lang.String s)
- Description copied from class:
GPSFile
- This method is to be extended as needed and is called when the file
header must be written. This method is called only once for each output
file.
- Parameters:
s
- Identifier for the output file that can be used in the
header.
writeRecord
public void writeRecord(GPSRecord s)
- Description copied from class:
GPSFile
- Called for any new position. This method is called by the input
analysis class and should be extended for the output format. The
extension must call super(). That will make sure that the appropriate
files are opened, and the
GPSFile.t
property set.
- Overrides:
writeRecord
in class GPSFile
- Parameters:
s
- information regarding the position.
nextPass
public final boolean nextPass()
- Description copied from class:
GPSFile
- Called when the input file has been parsed. This method checks if other
passes are needed and performs some closing operations if that is not
the case.
This method must be extended, call super.nextPass() and then update
nbrOfPassesToGo.
- Specified by:
nextPass
in interface GPSFileConverterInterface
- Overrides:
nextPass
in class GPSFile
- Returns:
- true if analysis must go on.