VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 class DtlInputStream;
43 
45 {
46 public:
47 
48  typedef std::map<DtUUID, char*> CachedPlanMap;
49 
50 public:
51 
54 
58 
61  virtual void cachePlan(const DtUUID& sObjName, DtlObjPtr planBlock);
62 
64  virtual void clearCachedPlans();
65 
67  virtual bool init();
68 
72  virtual const char* lookupCachedPlan(const DtUUID& sObjName);
73 
77  virtual bool readPlanFile(const DtString& filename, DtlObjPtr* retArgs = 0);
78  virtual bool readPlanFileFromZipFile(const DtString& scenarioZipFile, const DtString& filename, DtlObjPtr* retArgs = 0);
79  virtual bool readPlanFile(const std::string& buffer, DtlObjPtr* retArgs = 0);
80 
81  virtual bool readPlanFile(DtlObjPtr& args);
82 
84  virtual void writePlanFile(const DtString& filename) const;
85  virtual void writePlanFile(std::string& planFile) const;
86 
90  virtual void enablePlanExecutionState();
91  virtual void disablePlanExecutionState();
93 
96  virtual void ignoreThisUUIDOnPlanRead(const DtUUID&);
97  virtual void clearIgnoreUUIDsOnPleanRead();
98  const std::set<DtUUID>& ignoreUUIDsOnPlanRead() const
99  {
100  return myIgnoreUUIDsOnPlanRead;
101  }
102 
104  virtual bool planExecutionEnabled();
105 
107  static void setPlanCallback(DtSimMessage* msg, void* usr);
109  virtual void processSetPlan(DtSimMessage* msg);
110 
112  static void setMultiplePlanCallback(DtSimMessage* msg, void* usr);
114  virtual void processSetMultiplePlan(DtSimMessage* msg);
115 
117  static void requestPlanCallback(DtSimMessage* msg, void* usr);
119  virtual void processRequestPlan(DtSimMessage* msg);
120 
122  static void requestMultiPlanCallback(DtSimMessage* msg, void* usr);
127  virtual void processRequestMultiPlan(DtSimMessage* msg);
128 
130  static void abandonPlanCallback(DtSimMessage* msg, void* usr);
132  virtual void processAbandonPlan(DtSimMessage* msg);
133 
135  static void restartPlanCallback(DtSimMessage* msg, void* usr);
137  virtual void processRestartPlan(DtSimMessage* msg);
138 
139 protected:
140  virtual bool processPlanStream(DtlInputStream*, DtlObjPtr* retArgs = 0);
141 
142 protected:
143 
146 
149 
151  DtVrfObjectPlanAdministrator& operator=(
152  const DtVrfObjectPlanAdministrator& orig);
153 
154 protected:
156 
163 
165 
168 
169  std::set<DtUUID> myIgnoreUUIDsOnPlanRead;
170 
171 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)