VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simCommandFactory.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 
13 #include <map>
15 
18 class DtSimCommand;
19 
20 typedef DtSimCommand * (*DtSimCommandCreatorFcn)();
21 
24 #include "vrfplan/vrfplanDefines.h"
26 {
27 public:
30 
33 
35  const DtSimCommandFactory& operator=(const DtSimCommandFactory& orig);
36 
38  virtual ~DtSimCommandFactory();
39 
41  virtual void addCreatorFcn(const DtSimCommandMessageType& type,
43 
44  virtual DtSimCommand* createSimCommand(const DtSimCommandMessageType& type);
45 
46  virtual bool isTypeRegistered(const DtSimCommandMessageType& type);
47 
48  static DtSimCommandFactory* create();
49 
50 protected:
51  std::map<DtSimCommandMessageType, DtSimCommandFactoryEntry> myCreatorMap;
52 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)