VR-Forces Development_Version 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< DtUUID > & uuids () const
virtual const DtlObjPtr & getObjPtr (const DtUUID &) 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 addUUID (const DtUUID &, const DtlObjPtr &args)

Protected Attributes

DtlObjPtr myList
DtlObjPtr myEnv
std::map< DtUUID, DtlObjPtr * > myUUID2DataMap
std::set< DtUUIDmyUUIDsList
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<DtUUID>& DtVrfFileParser::uuids ( ) const
virtual
virtual const DtlObjPtr& DtVrfFileParser::getObjPtr ( const DtUUID ) 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::addUUID ( const DtUUID ,
const DtlObjPtr &  args 
)
protectedvirtual

Member Data Documentation

DtlObjPtr DtVrfFileParser::myList
protected
DtlObjPtr DtVrfFileParser::myEnv
protected
std::map<DtUUID, DtlObjPtr*> DtVrfFileParser::myUUID2DataMap
protected
std::set<DtUUID> DtVrfFileParser::myUUIDsList
protected
bool DtVrfFileParser::myHasGlobalWeatherObject
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)