![]() |
VR-Forces 4.6.1 Class Documentation
|
This class is the base class for parsing out creation information from various textual formats. More...

Public Member Functions | |
| 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 acoData 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 () |
Protected Member Functions | |
| 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 | |
Protected Attributes | |
| ObjectList | myCreateObjectList |
| vector to keep track of all of the Aco Data that we have parsed | |
| DtTokenizer | myTokenizer |
| Coordinate_System * | myCoordSystem |
| ObjectEntityTypeMap | myTypeMap |
This class is the base class for parsing out creation information from various textual formats.
It uses the DtTokenizer class to parse the text file into records and fields for those records. Derived parsers will define how the text file seperates those and how to extract the information from those records and their fields.
| DtObjectParser::DtObjectParser | ( | ) |
| DtObjectParser::~DtObjectParser | ( | ) |
|
virtual |
Pass in the file to parse, creates an istream and calls parse on it.
|
inlinevirtual |
Derived classes will set up the tokenizer and determine how extract field information for each record.
Reimplemented in DtCsvParser.
|
virtual |
Gets a vector containing all of the acoData objects that were created during parsing.
|
virtual |
Allows one to map their string names to our entity types.
|
virtual |
|
protected |
Define how the each creation record and its fields are delimited.
For example a csv parser would use ","s to delimit fields and "/n" to define records These are passed into the tokenzier class that will go thru and parse the file into record chunks the derived class will then disect to get the field information and turn each record into an createinformation struct that will later on be used to create the vrfobjects that will represent these records.
|
protectedvirtual |
cleans up the object, called from DTor and before parsing
|
protected |
vector to keep track of all of the Aco Data that we have parsed
|
protected |
|
protected |
|
protected |