VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simCommandExecutorFactory.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 <map>
15 #include "vlutil/vlString.h"
17 
19 class DtSimManager;
20 
21 typedef DtSimCommandExecutor * (*DtSimCommandExecutorCreatorFcn)(DtSimManager*);
22 
25 {
26 public:
27 
30 
32  virtual ~DtSimCommandExecutorFactory();
33 
38  virtual void addCreatorFcn(const DtSimCommandMessageType& type, DtSimCommandExecutorCreatorFcn fcn);
39 
41  virtual void removeCreatorFcn(const DtSimCommandMessageType& type, DtSimCommandExecutorCreatorFcn fcn);
42 
46  virtual void registerDefaultCreatorFcn(DtSimCommandExecutorCreatorFcn fcn);
47 
49  virtual DtSimCommandExecutor* createSimCommandExecutor(const DtSimCommandMessageType& type,
50  DtSimManager* simManager) const;
51 
52  static DtSimCommandExecutorFactory* create();
53 
54 private:
57 
60 
61 protected:
62 
63  typedef std::map<DtSimCommandMessageType, DtSimCommandExecutorCreatorFcn> DtCreatorMap;
65 
67 };
Abstract base class for all simCommand executors.
Definition: simCommandExecutor.h:30
std::map< DtSimCommandMessageType, DtSimCommandExecutorCreatorFcn > DtCreatorMap
Definition: simCommandExecutorFactory.h:63
DtSimCommandExecutorCreatorFcn myDefaultCreator
Definition: simCommandExecutorFactory.h:66
DtSimCommandExecutor *(* DtSimCommandExecutorCreatorFcn)(DtSimManager *)
Definition: simCommandExecutorFactory.h:21
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
Factory for creating DtSimCommandExecutor instances.
Definition: simCommandExecutorFactory.h:24
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtCreatorMap myCreatorMap
Definition: simCommandExecutorFactory.h:64

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)