VR-Forces 4.2 Class Documentation
globalPlanMgr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: globalPlanMgr.h,v $ $Revision: 1.6 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef globalPlanMgr_h
15 #define globalPlanMgr_h
16 
18 #include <map>
19 #include <vlutil/vlString.h>
20 
21 class DtPlan;
22 class DtString;
23 class DtSimManager;
24 class DtSimMessage;
25 class DtList;
27 class DtSimTickArguments;
28 
33 {
34 public:
36  DtGlobalPlanManager(DtSimManager* simManager);
37 
39  virtual ~DtGlobalPlanManager();
40 
41  virtual bool init();
42 
43  virtual void tick();
44 
45  static void tickCallback(void* args);
46 
49 
50  virtual void enableExecutionState();
51  virtual void disableExecutionState();
53 
55  virtual void clearPlans();
56 
58  virtual void writePlanFile(const DtString& filename) const;
59 
62  virtual bool readPlanFile(const DtString& filename);
63 
64 protected:
66  virtual void registerInterfaceMessageCallbacks();
67 
69  static void requestPlanListCallback(DtSimMessage* msg, void* usr);
70 
72  virtual void sendPlanList();
73 
75  static void requestPlanCallback(DtSimMessage* msg, void* usr);
80  virtual void processRequestPlan(DtSimMessage* msg);
81 
83  static void setPlanCallback(DtSimMessage* msg, void* usr);
87  virtual void processSetPlan(DtSimMessage* msg);
88 
93  virtual void setPlan(const DtString& name, const DtList& statementList);
94 
98  virtual void appendToPlan(const DtString& name, const DtList& statementList);
99 
101  static void deletePlanCallback(DtSimMessage* msg, void* usr);
102 
105  virtual void processDeletePlan(DtSimMessage* msg);
106 
109  virtual DtPlan* makePlan(const DtString& name) const;
110 
112  virtual DtGlobalPlanExecutor* createPlanExecutor();
113 
115  static void currentStatementChangedCallback(
116  const DtPlan& plan, void* usrData);
117 
120  virtual void processCurrentStatementChanged(const DtPlan& plan);
121 
124  void deletePlans();
125 
126 private:
132  DtGlobalPlanManager& operator=(const DtGlobalPlanManager& orig);
133 
134 protected:
135 
137  typedef std::map<DtString, DtPlan*> DtPlanMap;
141 };
142 
143 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)