VR-Forces 5.0.2 Developer's Guide
 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 
20 
21 typedef DtSimCommandExecutor * (*DtSimCommandExecutorCreatorFcn)(DtSimulationServices*);
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  DtSimulationServices* 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. Every DtSimCommand should have a corresponding DtSi...
Definition: simCommandExecutor.h:30
std::map< DtSimCommandMessageType, DtSimCommandExecutorCreatorFcn > DtCreatorMap
Definition: simCommandExecutorFactory.h:63
DtSimCommandExecutorCreatorFcn myDefaultCreator
Definition: simCommandExecutorFactory.h:66
#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...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
Factory for creating DtSimCommandExecutor instances.
Definition: simCommandExecutorFactory.h:24
DtCreatorMap myCreatorMap
Definition: simCommandExecutorFactory.h:64
DtSimCommandExecutor *(* DtSimCommandExecutorCreatorFcn)(DtSimulationServices *)
Definition: simCommandExecutorFactory.h:21

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)