VR-Forces 4.6 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 "vrfutil/rwUUID.h"
17 
18 class DtSimManager;
19 class DtSimCommand;
21 class DtPlan;
22 
28 
30 {
31 public:
33 
34  virtual ~DtSimCommandExecutor();
35 
39  virtual bool executeAndDistribute(const DtSimCommand* command, const DtPlan* plan = 0);
40 
44  virtual bool executeAndDistribute(const DtSimCommand* command, const DtUUID& objectName,
45  const DtPlan* plan = 0);
46 
48  static void setFactory(DtSimCommandExecutorFactory* factory);
49 
52  static DtSimCommandExecutor* createSimCommandExecutor(const DtSimCommandMessageType& type, DtSimManager* simManager);
53 
54 protected:
63  virtual bool execute(const DtSimCommand* command, const DtPlan* plan = 0) = 0;
64 
71  virtual bool execute(const DtSimCommand* command, const DtUUID& objectName,
72  const DtPlan* plan = 0);
73 
76  virtual void distribute(const DtSimCommand* command, const DtPlan* plan = 0);
77 
85  virtual void distribute(const DtSimCommand* command, const DtUUID& objectName,
86  const DtPlan* plan = 0);
87 
88 private:
94  DtSimCommandExecutor& operator=(const DtSimCommandExecutor& orig);
95 
96 protected:
98 
100 };
101 
105 {
106 public:
108 
110 
111  static DtSimCommandExecutor* create(DtSimManager* simManager);
112 
113 protected:
114 
115  virtual bool execute(const DtSimCommand* command, const DtPlan* plan = 0) { return true; };
116 
117 private:
124 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)