VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtVrfFileParser Class Reference

Instances of this class manage a mapping between echelon IDs and their mtl data from a given file. More...

Public Member Functions

 DtVrfFileParser ()
virtual ~DtVrfFileParser ()
virtual bool parseFile (const DtFilename &filename)
 Determines file type and delegates the rest of the parsing to the appropriate method.
virtual bool parseOrderOfBattleFile (const DtlObjPtr &oobList)
 Parse order of battle files.
virtual bool parseOrderOfBattleObject (const DtlObjPtr &args)
virtual bool parsePlanFile (const DtlObjPtr &plnList)
 Checks to make sure that the plan file is at least version 2.0, and then calls parsePlan for each plan entry.
virtual bool parseGlobalPlanFile (const DtlObjPtr &plnList)
virtual void parsePlan (const DtlObjPtr &args)
 Parses an individual plan.
virtual const std::set
< DtString > & 
names () const
virtual const DtlObjPtr & getObjPtr (const DtString &name) const
virtual bool hasGlobalWeatherObject () const
 Returns whether or not a global weather object was found in this file. Only valid for order of battle files.

Protected Member Functions

virtual void clear ()
virtual void addName (const DtString &name, const DtlObjPtr &args)

Protected Attributes

DtlObjPtr myList
DtlObjPtr myEnv
std::map< DtString, DtlObjPtr * > myName2DataMap
std::set< DtStringmyNamesList
bool myHasGlobalWeatherObject

Detailed Description

Instances of this class manage a mapping between echelon IDs and their mtl data from a given file.

Constructor & Destructor Documentation

DtVrfFileParser::DtVrfFileParser ( )
virtual DtVrfFileParser::~DtVrfFileParser ( )
virtual

Member Function Documentation

virtual bool DtVrfFileParser::parseFile ( const DtFilename &  filename)
virtual

Determines file type and delegates the rest of the parsing to the appropriate method.

virtual bool DtVrfFileParser::parseOrderOfBattleFile ( const DtlObjPtr &  oobList)
virtual

Parse order of battle files.

virtual bool DtVrfFileParser::parseOrderOfBattleObject ( const DtlObjPtr &  args)
virtual
virtual bool DtVrfFileParser::parsePlanFile ( const DtlObjPtr &  plnList)
virtual

Checks to make sure that the plan file is at least version 2.0, and then calls parsePlan for each plan entry.

virtual bool DtVrfFileParser::parseGlobalPlanFile ( const DtlObjPtr &  plnList)
virtual
virtual void DtVrfFileParser::parsePlan ( const DtlObjPtr &  args)
virtual

Parses an individual plan.

virtual const std::set<DtString>& DtVrfFileParser::names ( ) const
virtual
virtual const DtlObjPtr& DtVrfFileParser::getObjPtr ( const DtString name) const
virtual
virtual bool DtVrfFileParser::hasGlobalWeatherObject ( ) const
inlinevirtual

Returns whether or not a global weather object was found in this file. Only valid for order of battle files.

virtual void DtVrfFileParser::clear ( )
protectedvirtual
virtual void DtVrfFileParser::addName ( const DtString name,
const DtlObjPtr &  args 
)
protectedvirtual

Member Data Documentation

DtlObjPtr DtVrfFileParser::myList
protected
DtlObjPtr DtVrfFileParser::myEnv
protected
std::map<DtString, DtlObjPtr*> DtVrfFileParser::myName2DataMap
protected
std::set<DtString> DtVrfFileParser::myNamesList
protected
bool DtVrfFileParser::myHasGlobalWeatherObject
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)