gps.log.in
Class NMEALogConvert

java.lang.Object
  extended by gps.log.in.GPSLogConvertInterface
      extended by gps.log.in.NMEALogConvert

public final class NMEALogConvert
extends GPSLogConvertInterface

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

Constructor Summary
NMEALogConvert()
           
 
Method Summary
 int getType()
           
 int parseFile(java.lang.Object file, GPSFileConverterInterface gpsFile)
          Read the input file and provides results to the output builder.
 int toGPSFile(BT747Path fileName, GPSFileConverterInterface gpsFile)
           
 
Methods inherited from class gps.log.in.GPSLogConvertInterface
getErrorInfo, getLoggerType, setConvertWGS84ToMSL, setLoggerType, stopConversion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMEALogConvert

public NMEALogConvert()
Method Detail

parseFile

public final int parseFile(java.lang.Object file,
                           GPSFileConverterInterface gpsFile)
Read the input file and provides results to the output builder.

Specified by:
parseFile in class GPSLogConvertInterface
Parameters:
gpsFile - The object representing the output format.
Returns:
BT747Constants.NO_ERROR if no error (0)
See Also:
GPSLogConvertInterface.parseFile(Object, GPSFileConverterInterface).

toGPSFile

public final int toGPSFile(BT747Path fileName,
                           GPSFileConverterInterface gpsFile)
Specified by:
toGPSFile in class GPSLogConvertInterface

getType

public int getType()
Specified by:
getType in class GPSLogConvertInterface
Returns:
log type such as Model.TRL_LOGTYPE.