es.uv.robotica.gvsig.mobile.gps.tracklog
Class CSVTracklogger

java.lang.Object
  extended byes.uv.robotica.gvsig.mobile.gps.tracklog.CSVTracklogger
All Implemented Interfaces:
Tracklogger

public class CSVTracklogger
extends java.lang.Object
implements Tracklogger

A tracklogger storing trackpoints and waypoints in CSV format

Author:
jgui
See Also:
GPXTracklogger

Field Summary
static java.lang.String CSV_TRACKLOG_HEADER
          CSV header
 
Constructor Summary
CSVTracklogger()
           
 
Method Summary
 void clear()
          Clears the tracklog
 void close()
          Closes the tracklog
 void open(java.lang.String path)
          Opens the tracklog TODO Check if file exists, and in that case don't write header
 void start()
          Starts tracking
 void stop()
          Stops tracking
 void storeTrackpoint(Trackpoint _trkpt)
          Stores a trackpoint in the tracklog
 void storeWaypoint(Waypoint _wpt)
          Stores a waypoint in the tracklog
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSV_TRACKLOG_HEADER

public static final java.lang.String CSV_TRACKLOG_HEADER
CSV header

See Also:
Constant Field Values
Constructor Detail

CSVTracklogger

public CSVTracklogger()
Method Detail

open

public void open(java.lang.String path)
          throws java.io.IOException
Opens the tracklog TODO Check if file exists, and in that case don't write header

Specified by:
open in interface Tracklogger
Parameters:
path - the complete path, including the folder and file name
Throws:
java.io.IOException

close

public void close()
Closes the tracklog

Specified by:
close in interface Tracklogger

start

public void start()
Starts tracking

Specified by:
start in interface Tracklogger

stop

public void stop()
Stops tracking

Specified by:
stop in interface Tracklogger

clear

public void clear()
           throws java.io.IOException
Clears the tracklog

Specified by:
clear in interface Tracklogger
Throws:
java.io.IOException

storeTrackpoint

public void storeTrackpoint(Trackpoint _trkpt)
Stores a trackpoint in the tracklog

Specified by:
storeTrackpoint in interface Tracklogger
Parameters:
_trkpt - the trackpoint to store

storeWaypoint

public void storeWaypoint(Waypoint _wpt)
Stores a waypoint in the tracklog

Specified by:
storeWaypoint in interface Tracklogger
Parameters:
_wpt - the waypoint to store