VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtUsmtfParser Class Reference

USMTF parser Has been used with USMTF 2004 Baseline.

Inheritance diagram for DtUsmtfParser:
Inheritance graph
[legend]

Public Member Functions

 DtUsmtfParser ()
 
virtual ~DtUsmtfParser ()
 
virtual bool init ()
 
- Public Member Functions inherited from DtObjectParser
 DtObjectParser ()
 
 ~DtObjectParser ()
 
virtual bool parseFile (const string &filename)
 
virtual bool parse (istream &stream)
 
virtual ObjectListgetCreateObjectList ()
 
virtual void initTypeMap (const std::map< std::string, std::string > &importData)
 
virtual ObjectEntityTypeMaptypeMap ()
 

Static Public Member Functions

static double calcDegrees (const double &deg, const double &min=0.0, const double &sec=0.0, char hemisphere= '-')
 
static string eraseHead (const string &input, const string &prefix)
 

Protected Member Functions

void parseLatLonSec (const string &input, double &lat, double &lon, const string &prefix="")
 
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="")
 
bool parseDateTime9 (const string &input, const ptime &prevTime, ptime &time, const string &prefix="")
 
bool parseDateTime10 (const string &input, const time_period &timeFrame, ptime &time, const string &prefix="")
 
bool parseDateTime14 (const string &input, ptime &time, const string &prefix="")
 
bool checkAndAssign (string &sData, const vector< string > &tokens, size_t tokenIndex, const string &prefix="")
 
- Protected Member Functions inherited from DtObjectParser
void setSeparatorData (const string &recordSeparator, const string &fieldSeparators, const string &quoteChars, const string &escapeChars)
 
virtual void clear ()
 

Additional Inherited Members

- Protected Attributes inherited from DtObjectParser
ObjectList myCreateObjectList
 
DtTokenizer myTokenizer
 
Coordinate_SystemmyCoordSystem
 
ObjectEntityTypeMap myTypeMap
 

Constructor & Destructor Documentation

DtUsmtfParser::DtUsmtfParser ( )
virtual DtUsmtfParser::~DtUsmtfParser ( )
inlinevirtual

Member Function Documentation

virtual bool DtUsmtfParser::init ( )
virtual

static function used to read in some csv files used during parsing

static double DtUsmtfParser::calcDegrees ( const double deg,
const double min = 0.0,
const double sec = 0.0,
char  hemisphere = '-' 
)
static

static functions used to access some data used during parsing

FIX_THIS_DP - Move these to a utility class somewhere?

static string DtUsmtfParser::eraseHead ( const string &  input,
const string &  prefix 
)
static

If the input starts with prefix, it will be erased and returned.

void DtUsmtfParser::parseLatLonSec ( const string &  input,
double lat,
double lon,
const string &  prefix = "" 
)
protected

Convert LATM, LATS, and DMPID into degreess.

void DtUsmtfParser::parseLatLonMin ( const string &  input,
double lat,
double lon,
const string &  prefix = "" 
)
protected
void DtUsmtfParser::parseLatLonCentiSec ( const string &  input,
double lat,
double lon,
const string &  prefix = "" 
)
protected
void DtUsmtfParser::parseLatLonVLATS ( const string &  input,
double lat,
double lon,
const string &  prefix = "" 
)
protected
bool DtUsmtfParser::parseDateTime7 ( const string &  input,
const ptime &  prevTime,
ptime &  time,
const string &  prefix = "" 
)
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.

bool DtUsmtfParser::parseDateTime9 ( const string &  input,
const ptime &  prevTime,
ptime &  time,
const string &  prefix = "" 
)
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.

bool DtUsmtfParser::parseDateTime10 ( const string &  input,
const time_period &  timeFrame,
ptime &  time,
const string &  prefix = "" 
)
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.

bool DtUsmtfParser::parseDateTime14 ( const string &  input,
ptime &  time,
const string &  prefix = "" 
)
protected

Parses the date and time from the 14 character date format in the ATO.

bool DtUsmtfParser::checkAndAssign ( string &  sData,
const vector< string > &  tokens,
size_t  tokenIndex,
const string &  prefix = "" 
)
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


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)