Class to compute a location based on Date and Time using GPS logs. More...
#include <mi32/gpsdbase.h>
Classes | |
| class | DLG_IMPORTTXT |
| DLGSHELL for setting parameters to read formatted text log file. More... | |
| class | LOGPARMS |
| Parms class for reading from formatted text file. More... | |
| class | LOGRECORD |
| Log Record. More... | |
| class | POINTRECORD |
| Point Record. More... | |
Public Types | |
| enum | GPSMETHOD { GPSMETHOD_Interpolate, GPSMETHOD_Closest } |
Public Member Functions | |
| GPSDATABASE () | |
| ~GPSDATABASE () | |
| ERRVALUE | AddLogName (const MISTRING &logname, int &lognumber) |
| ERRVALUE | AddLogPath (const FILEPATH &logpath, int &lognumber) |
| ERRVALUE | AddPoint (POINTRECORD record) |
| DATETIME & | ApplyOffset (DATETIME datetime) |
| void | Compute (const DATETIME &datetime, POINTRECORD &OutputRecord, POINTRECORD &PrevRecord, POINTRECORD &NextRecord, GPSMETHOD method=GPSMETHOD_Interpolate, double errortime=60.0) |
| ERRVALUE | GetLog (const FILEPATH &logpath, LOGRECORD &log) |
| ERRVALUE | GetLog (int lognumber, LOGRECORD &log) |
| ERRVALUE | GetLog (UINT32 index, LOGRECORD &log) |
| std::vector< LOGRECORD > & | GetLogList () |
| ERRVALUE | GetLogNum (const FILEPATH &logpath, int &lognumber) |
| ERRVALUE | GetLogPath (int lognumber, FILEPATH &logpath) |
| UINT32 | GetNumLogs () const |
| UINT32 | GetNumPoints () const |
| double | GetOffset () const |
| ERRVALUE | GetPoint (const DATETIME &datetime, POINTRECORD &record) |
| ERRVALUE | GetPoint (UINT32 index, POINTRECORD &record) |
| std::vector< POINTRECORD > & | GetPointList () |
| ERRVALUE | ReadLog (const FILEPATH &logpath) |
| ERRVALUE | ReadLogText (const FILEPATH &logpath, const LOGPARMS &logparms) |
| void | RemoveAllLogs () |
| ERRVALUE | RemoveLog (const FILEPATH &logpath) |
| ERRVALUE | RemoveLog (int lognumber) |
| ERRVALUE | RemovePoint (const DATETIME &datetime) |
| ERRVALUE | RemovePoint (UINT32 index) |
| ERRVALUE | RemovePoints (int lognumber) |
| void | SetOffset (INT32 offset) |
Class to compute a location based on Date and Time using GPS logs.
| GPSDATABASE::GPSDATABASE | ( | ) |
Default constructor.
| GPSDATABASE::~GPSDATABASE | ( | ) | [inline] |
Default destructor.
Add a log given an MISTRING name Does not parse like ReadGPS, only adds to LogList.
| lognumber | Lognumber assigned |
Add a log given a FILEPATH Does not parse like ReadGPS, only adds to LogList.
| lognumber | Lognumber assigned |
| ERRVALUE GPSDATABASE::AddPoint | ( | POINTRECORD | record | ) |
Add a record given a POINTRECORD struct Returns -1 if record's lognumber not valid.
Adjusts a DATETIME by current offset (0 if not set).
| void GPSDATABASE::Compute | ( | const DATETIME & | datetime, | |
| POINTRECORD & | OutputRecord, | |||
| POINTRECORD & | PrevRecord, | |||
| POINTRECORD & | NextRecord, | |||
| GPSMETHOD | method = GPSMETHOD_Interpolate, |
|||
| double | errortime = 60.0 | |||
| ) |
Compute the location given Date/Time.
| datetime | DateTime to locate for | |
| OutputRecord | Record returned | |
| PrevRecord | Record found before DateTime | |
| NextRecord | Record found after DateTime | |
| method | Searching method | |
| errortime | Seconds, Difference in time between input and records must fall within errortime |
Return a log given a filepath.
| std::vector<LOGRECORD>& GPSDATABASE::GetLogList | ( | ) |
Get Log List.
Get log's number given FILEPATH.
Get FILEPATH of log given log's number.
| UINT32 GPSDATABASE::GetNumLogs | ( | ) | const [inline] |
Get Number of LogRecords.
| UINT32 GPSDATABASE::GetNumPoints | ( | ) | const [inline] |
Get Number of PointRecords.
| double GPSDATABASE::GetOffset | ( | ) | const [inline] |
Get Current Offset.
| ERRVALUE GPSDATABASE::GetPoint | ( | const DATETIME & | datetime, | |
| POINTRECORD & | record | |||
| ) |
Return a record given a DATETIME.
| ERRVALUE GPSDATABASE::GetPoint | ( | UINT32 | index, | |
| POINTRECORD & | record | |||
| ) |
Return a record given an index.
| std::vector<POINTRECORD>& GPSDATABASE::GetPointList | ( | ) |
Get Record List.
Read a GPS Log file, add records to list.
FILEPATH of log to read
| void GPSDATABASE::RemoveAllLogs | ( | ) |
Remove All Logs.
Remove a log given a filepath, removes all records associated with log.
| ERRVALUE GPSDATABASE::RemoveLog | ( | int | lognumber | ) |
Remove a log given a lognumber, removes all records associated with log.
| ERRVALUE GPSDATABASE::RemovePoints | ( | int | lognumber | ) |
Remove all records associated with lognumber.
| void GPSDATABASE::SetOffset | ( | INT32 | offset | ) |
Set the camera offset time in seconds.
1.6.1