VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfFileParser.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <mtl/mtl.h>
12 #include <vlutil/vlFilename.h>
13 #include <vlutil/vlHashlist.h>
14 
15 #include <map>
16 #include <set>
17 
20 
23 {
24 public:
25 
27 
28  virtual ~DtVrfFileParser();
29 
32  virtual bool parseFile(const DtFilename& filename);
33 
35  virtual bool parseOrderOfBattleFile(const DtlObjPtr& oobList);
36  virtual bool parseOrderOfBattleObject(const DtlObjPtr& args);
37 
40  virtual bool parsePlanFile(const DtlObjPtr& plnList);
41 
42  virtual bool parseGlobalPlanFile(const DtlObjPtr& plnList);
43 
45  virtual void parsePlan(const DtlObjPtr& args);
46 
47  virtual const std::set<DtString>& names() const;
48  virtual const DtlObjPtr& getObjPtr(const DtString& name) const;
49 
51  virtual bool hasGlobalWeatherObject() const
52  {
53  return myHasGlobalWeatherObject;
54  }
55 
56 protected:
57 
58  virtual void clear();
59  virtual void addName(const DtString& name, const DtlObjPtr& args);
60 
61 protected:
62 
63  DtlObjPtr myList;
64  DtlObjPtr myEnv;
65 
66  std::map<DtString, DtlObjPtr*> myName2DataMap;
67  std::set<DtString> myNamesList;
68 
70 };

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)