public class SourceInfo
{
/** File type of source file */
- public enum FILE_TYPE {TEXT, GPX, KML, NMEA, GPSBABEL, GPSIES};
+ public enum FILE_TYPE {TEXT, GPX, KML, NMEA, GPSBABEL, GPSIES, JSON};
/** Source file */
private File _sourceFile = null;
private String _sourceName = null;
/** File type */
private FILE_TYPE _fileType = null;
+ /** File title, if any */
+ private String _fileTitle = null;
/** Array of datapoints */
private DataPoint[] _points = null;
_fileType = inType;
}
+ /**
+ * @param inTitle title of file, eg from <name> tag in gpx
+ */
+ public void setFileTitle(String inTitle)
+ {
+ _fileTitle = inTitle;
+ }
+
/**
* @return source file
*/
return _fileType;
}
+ /**
+ * @return title of file
+ */
+ public String getFileTitle()
+ {
+ return _fileTitle;
+ }
+
/**
* @return number of points from this source
*/