VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfObjectPlanAdministrator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 class DtSimMessage;
12 class DtVrfObject;
13 class DtVrfObjectManager;
14 class DtString;
15 
16 #include <map>
17 
20 {
24 };
25 
37 
39 #include "vrfutil/rwUUID.h"
40 
41 class DtlObjPtr;
42 
44 {
45 public:
46 
47  typedef std::map<DtUUID, char*> CachedPlanMap;
48 
49 public:
50 
53 
57 
60  virtual void cachePlan(const DtUUID& sObjName, DtlObjPtr planBlock);
61 
63  virtual void clearCachedPlans();
64 
66  virtual bool init();
67 
71  virtual const char* lookupCachedPlan(const DtUUID& sObjName);
72 
76  virtual bool readPlanFile(const DtString& filename, DtlObjPtr* retArgs = 0);
77  virtual bool readPlanFile(DtlObjPtr& args);
78 
80  virtual void writePlanFile(const DtString& filename) const;
81 
85  virtual void enablePlanExecutionState();
86  virtual void disablePlanExecutionState();
88 
90  virtual bool planExecutionEnabled();
91 
93  static void setPlanCallback(DtSimMessage* msg, void* usr);
95  virtual void processSetPlan(DtSimMessage* msg);
96 
98  static void setMultiplePlanCallback(DtSimMessage* msg, void* usr);
100  virtual void processSetMultiplePlan(DtSimMessage* msg);
101 
103  static void requestPlanCallback(DtSimMessage* msg, void* usr);
105  virtual void processRequestPlan(DtSimMessage* msg);
106 
108  static void requestMultiPlanCallback(DtSimMessage* msg, void* usr);
113  virtual void processRequestMultiPlan(DtSimMessage* msg);
114 
116  static void abandonPlanCallback(DtSimMessage* msg, void* usr);
118  virtual void processAbandonPlan(DtSimMessage* msg);
119 
121  static void restartPlanCallback(DtSimMessage* msg, void* usr);
123  virtual void processRestartPlan(DtSimMessage* msg);
124 
125 protected:
126 
129 
132 
134  DtVrfObjectPlanAdministrator& operator=(
135  const DtVrfObjectPlanAdministrator& orig);
136 
137 protected:
139 
146 
148 
151 
152 };

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)