VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simCommandExecutor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <vlutil/vlString.h>
16 #include "vrfplan/simCommandStmt.h"
17 #include "vrfutil/rwUUID.h"
18 
19 class DtSimManager;
20 class DtSimCommand;
22 class DtPlan;
23 
29 
31 {
32 public:
34 
35  virtual ~DtSimCommandExecutor();
36 
40  virtual bool executeAndDistribute(const DtSimCommand* command, DtSimCommandContextPtr& context, const DtPlan* plan = 0);
41 
45  virtual bool executeAndDistribute(const DtSimCommand* command, DtSimCommandContextPtr& context, const DtUUID& objectName,
46  const DtPlan* plan = 0);
47 
51  virtual bool isSimCommandComplete(const DtSimCommand* command, const DtSimCommandContextPtr& context, const DtPlan* = 0) const;
52 
55  virtual void distribute(const DtSimCommand* command, const DtPlan* plan = 0);
56 
64  virtual void distribute(const DtSimCommand* command, const DtUUID& objectName,
65  const DtPlan* plan = 0);
66 
68  static void setFactory(DtSimCommandExecutorFactory* factory);
69 
72  static DtSimCommandExecutor* createSimCommandExecutor(const DtSimCommandMessageType& type, DtSimManager* simManager);
73 
74 protected:
83  virtual bool execute(const DtSimCommand* command, DtSimCommandContextPtr& context, const DtPlan* plan = 0) = 0;
84 
91  virtual bool execute(const DtSimCommand* command, DtSimCommandContextPtr& context, const DtUUID& objectName,
92  const DtPlan* plan = 0);
93 
94 private:
100  DtSimCommandExecutor& operator=(const DtSimCommandExecutor& orig);
101 
102 protected:
104 
106 };
107 
111 {
112 public:
114 
116 
117  static DtSimCommandExecutor* create(DtSimManager* simManager);
118 
119 protected:
120 
121  virtual bool execute(const DtSimCommand* command, DtSimCommandContextPtr& context, const DtPlan* plan = 0) { return true; };
122 
123 private:
130 };

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)