gps.log.out
Class GPSSqlFile

java.lang.Object
  extended by gps.log.out.GPSFile
      extended by gps.log.out.GPSSqlFile
All Implemented Interfaces:
GPSFileConverterInterface, GPSFileConfInterface, GPSFileInterface

public final class GPSSqlFile
extends GPSFile

Class to write a CSV file.

Author:
Mario De Weerd

Field Summary
 
Fields inherited from class gps.log.out.GPSFile
FILE_SPLIT_NONE, FILE_SPLIT_ONE_FILE_PER_DAY, FILE_SPLIT_ONE_FILE_PER_TRACK
 
Constructor Summary
GPSSqlFile()
           
 
Method Summary
 void initialiseFile(BT747Path basename, java.lang.String ext, int oneFilePerDay)
          This function has to be called at some time to initialize the file conversion.
 boolean needPassToFindFieldsActivatedInLog()
           
 void writeRecord(GPSRecord r)
          Called for any new position.
 
Methods inherited from class gps.log.out.GPSFile
addLogRecord, cachedRecordIsNeeded, finaliseFile, getBadTrackColor, getErrorInfo, getFilesCreated, getGoodTrackColor, getMaxDiff, getNbrFilesCreated, getParamObject, getUserWayPointList, isAddLogConditionInfo, isOverridePreviousTag, isRecordNbrInLogs, nextPass, 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
 

Constructor Detail

GPSSqlFile

public GPSSqlFile()
Method Detail

initialiseFile

public void initialiseFile(BT747Path basename,
                           java.lang.String ext,
                           int oneFilePerDay)
Description copied from class: GPSFile
This function has to be called at some time to initialize the file conversion. Other parameters can be set through other methods.

Specified by:
initialiseFile in interface GPSFileConfInterface
Overrides:
initialiseFile in class GPSFile
Parameters:
basename - Base name of the output file. This value will be provided to the filename builder.
ext - Extension of the output file. This value will be provided to the filename builder.
oneFilePerDay - Indicates how the file must be separated.
See Also:
AppSettings.SPLIT_ONE_FILE, AppSettings.SPLIT_ONE_FILE_PER_DAY, AppSettings.SPLIT_ONE_FILE_PER_TRACK

needPassToFindFieldsActivatedInLog

public final boolean needPassToFindFieldsActivatedInLog()
Specified by:
needPassToFindFieldsActivatedInLog in interface GPSFileConverterInterface
Overrides:
needPassToFindFieldsActivatedInLog in class GPSFile

writeRecord

public final void writeRecord(GPSRecord r)
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:
r - information regarding the position.