VR-Forces 4.6 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 };

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)