VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtCsvParser Class Reference
Inheritance diagram for DtCsvParser:
Inheritance graph
[legend]

Public Member Functions

 DtCsvParser ()
 
 ~DtCsvParser ()
 
virtual bool parse (istream &stream)
 Since we will be getting input from the user via the csv importer dialog, we just do a straight up parse of each row and store in the parsed items struct. More...
 
virtual void createObjectList (std::string name="")
 After the user has accepted the csv importer dialog with their desired options this is called from csvScenarioDescriptorImorterExporter to turn the parsed items into object information structs. More...
 
const std::vector< ParsedItem > & items ()
 
- 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. More...
 
virtual ObjectListgetCreateObjectList ()
 Gets a vector containing all of the import objects that were created during parsing. More...
 
virtual void initTypeMap (const std::map< std::string, std::string > &importData)
 Allows one to map their string names to our entity types. More...
 
virtual ObjectEntityTypeMaptypeMap ()
 

Protected Member Functions

virtual bool parseLocation (vector< string > tokens, DtGeodeticCoord &geodLoc)
 
- Protected Member Functions inherited from DtObjectParser
void setSeparatorData (const string &recordSeparator, const string &fieldSeparators, const string &quoteChars, const string &escapeChars)
 Define how the each creation record and its fields are delimited. More...
 
virtual void clear ()
 cleans up the object, called from DTor and before parsing More...
 

Protected Attributes

bool myIsMultipleObjects
 
std::vector< ParsedItemmyParsedItems
 We do a straight parse of each row and store here. More...
 
- Protected Attributes inherited from DtObjectParser
ObjectList myCreateObjectList
 vector to keep track of all of the Aco Data that we have parsed More...
 
DtTokenizer myTokenizer
 
Coordinate_SystemmyCoordSystem
 
ObjectEntityTypeMap myTypeMap
 

Constructor & Destructor Documentation

DtCsvParser::DtCsvParser ( )
DtCsvParser::~DtCsvParser ( )

Member Function Documentation

virtual bool DtCsvParser::parse ( istream &  stream)
virtual

Since we will be getting input from the user via the csv importer dialog, we just do a straight up parse of each row and store in the parsed items struct.

Reimplemented from DtObjectParser.

virtual void DtCsvParser::createObjectList ( std::string  name = "")
virtual

After the user has accepted the csv importer dialog with their desired options this is called from csvScenarioDescriptorImorterExporter to turn the parsed items into object information structs.

const std::vector<ParsedItem>& DtCsvParser::items ( )
virtual bool DtCsvParser::parseLocation ( vector< string >  tokens,
DtGeodeticCoord &  geodLoc 
)
protectedvirtual

Member Data Documentation

bool DtCsvParser::myIsMultipleObjects
protected
std::vector<ParsedItem> DtCsvParser::myParsedItems
protected

We do a straight parse of each row and store here.


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)