![]() |
VR-Forces 4.7 Class Documentation
|
USMTF parser Has been used with USMTF 2004 Baseline. More...

Public Member Functions | |
| DtUsmtfParser () | |
| virtual | ~DtUsmtfParser () |
| virtual bool | init () |
| static function used to read in some csv files used during parsing | |
Public Member Functions inherited from DtObjectParser | |
| DtObjectParser () | |
| ~DtObjectParser () | |
| virtual bool | parseFile (const string &filename) |
| Pass in the file to parse, creates an istream and calls parse on it. | |
| virtual bool | parse (istream &stream) |
| Derived classes will set up the tokenizer and determine how extract field information for each record. | |
| virtual ObjectList & | getCreateObjectList () |
| Gets a vector containing all of the import objects that were created during parsing. | |
| virtual void | initTypeMap (const std::map< std::string, std::string > &importData) |
| Allows one to map their string names to our entity types. | |
| virtual ObjectEntityTypeMap * | typeMap () |
Static Public Member Functions | |
| static double | calcDegrees (const double °, const double &min=0.0, const double &sec=0.0, char hemisphere= '-') |
| static functions used to access some data used during parsing | |
| static string | eraseHead (const string &input, const string &prefix) |
| If the input starts with prefix, it will be erased and returned. | |
Protected Member Functions | |
| void | parseLatLonSec (const string &input, double &lat, double &lon, const string &prefix="") |
| Convert LATM, LATS, and DMPID into degreess. | |
| void | parseLatLonMin (const string &input, double &lat, double &lon, const string &prefix="") |
| void | parseLatLonCentiSec (const string &input, double &lat, double &lon, const string &prefix="") |
| void | parseLatLonVLATS (const string &input, double &lat, double &lon, const string &prefix="") |
| bool | parseDateTime7 (const string &input, const ptime &prevTime, ptime &time, const string &prefix="") |
| Parses the date and time from the 7 character date format in the ATO It uses the "prevTime" to determine the month and year since it is not part of the 7 character date format. | |
| bool | parseDateTime9 (const string &input, const ptime &prevTime, ptime &time, const string &prefix="") |
| Parses the date and time from the 9 character date format in the ATO It uses the "prevTime" to determine the month and year since it is not part of the 9 character date format. | |
| bool | parseDateTime10 (const string &input, const time_period &timeFrame, ptime &time, const string &prefix="") |
| Parses the date and time from the 10 character date format in the ATO using the timeFrame to figure out the year (because the year is not part of the 10 char date format. | |
| bool | parseDateTime14 (const string &input, ptime &time, const string &prefix="") |
| Parses the date and time from the 14 character date format in the ATO. | |
| bool | checkAndAssign (string &sData, const vector< string > &tokens, size_t tokenIndex, const string &prefix="") |
| !Checks to make sure the token index is within the bounds of the tokens vector and if so !assigns the token to the string passed in. | |
Protected Member Functions inherited from DtObjectParser | |
| void | setSeparatorData (const string &recordSeparator, const string &fieldSeparators, const string "eChars, const string &escapeChars) |
| Define how the each creation record and its fields are delimited. | |
| virtual void | clear () |
| cleans up the object, called from DTor and before parsing | |
Additional Inherited Members | |
Protected Attributes inherited from DtObjectParser | |
| ObjectList | myCreateObjectList |
| vector to keep track of all of the Aco Data that we have parsed | |
| DtTokenizer | myTokenizer |
| Coordinate_System * | myCoordSystem |
| ObjectEntityTypeMap | myTypeMap |
USMTF parser Has been used with USMTF 2004 Baseline.
| DtUsmtfParser::DtUsmtfParser | ( | ) |
|
inlinevirtual |
|
virtual |
static function used to read in some csv files used during parsing
|
static |
static functions used to access some data used during parsing
FIX_THIS_DP - Move these to a utility class somewhere?
|
static |
If the input starts with prefix, it will be erased and returned.
|
protected |
Convert LATM, LATS, and DMPID into degreess.
|
protected |
|
protected |
|
protected |
|
protected |
Parses the date and time from the 7 character date format in the ATO It uses the "prevTime" to determine the month and year since it is not part of the 7 character date format.
|
protected |
Parses the date and time from the 9 character date format in the ATO It uses the "prevTime" to determine the month and year since it is not part of the 9 character date format.
|
protected |
Parses the date and time from the 10 character date format in the ATO using the timeFrame to figure out the year (because the year is not part of the 10 char date format.
|
protected |
Parses the date and time from the 14 character date format in the ATO.
|
protected |
!Checks to make sure the token index is within the bounds of the tokens vector and if so !assigns the token to the string passed in.
Some of the fields seem to be optional so !they were not always available in the tokens