gps.log.in
Class WPLogConvert
java.lang.Object
gps.log.in.GPSLogConvertInterface
gps.log.in.WPLogConvert
public final class WPLogConvert
- extends GPSLogConvertInterface
Conversion of Wonde Proud logs (Phototrackr, ...)
This class is used to convert the binary log to a new format. Basically
this class interprets the log and creates a GPSRecord
. The
GPSRecord
is then sent to the GPSFileConverterInterface
class object to write it to the output.
- Author:
- Mario De Weerd
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WPLogConvert
public WPLogConvert()
setLoggerType
public void setLoggerType(int logType)
- Overrides:
setLoggerType
in class GPSLogConvertInterface
longToUtcTime
public static final int longToUtcTime(int rawTime)
- Creates utc time value of Phototrackr specific format.
- Parameters:
rawTime
- Phototracker time representation.
- Returns:
- long type representing utc time.
parseFile
public int parseFile(java.lang.Object file,
GPSFileConverterInterface gpsFile)
- Description copied from class:
GPSLogConvertInterface
- Parses the file once and will use
GPSFile
to generate the
output.
- Specified by:
parseFile
in class GPSLogConvertInterface
gpsFile
- Represents the structure to generate the output.
- Returns:
- error indication.
toGPSFile
public int toGPSFile(BT747Path path,
GPSFileConverterInterface gpsFile)
- Specified by:
toGPSFile
in class GPSLogConvertInterface
getLogFormatRecord
public GPSRecord getLogFormatRecord(int logFormat)
getType
public int getType()
- Specified by:
getType
in class GPSLogConvertInterface
- Returns:
- log type such as
Model.TRL_LOGTYPE
.