![]() |
VR-Forces Developer's Guide
|
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.

Public Member Functions | |
| DtObjectParser () | |
| ~DtObjectParser () | |
| virtual bool | parseFile (const string &filename) |
| virtual bool | parse (istream &stream) |
| virtual ObjectList & | getCreateObjectList () |
| virtual void | initTypeMap (const std::map< std::string, std::string > &importData) |
| virtual ObjectEntityTypeMap * | typeMap () |
Protected Member Functions | |
| void | setSeparatorData (const string &recordSeparator, const string &fieldSeparators, const string "eChars, const string &escapeChars) |
| virtual void | clear () |
Protected Attributes | |
| ObjectList | myCreateObjectList |
| DtTokenizer | myTokenizer |
| Coordinate_System * | myCoordSystem |
| ObjectEntityTypeMap | myTypeMap |
| 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 DtAcoParser, DtCsvParser, and DtTleParser.
|
virtual |
Gets a vector containing all of the import objects that were created during parsing.
|
virtual |
Allows one to map their string names to our entity types.
Reimplemented in DtAcoParser.
|
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 |