VR-Forces 4.8 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 };
DtSimCommandFactoryEntry.
Definition: simCommandFactoryEntry.h:16
Definition: readerWriterRegistry.h:39
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
DtSimCommand *(* DtSimCommandCreatorFcn)()
Definition: simCommandFactory.h:20
std::map< DtSimCommandMessageType, DtSimCommandFactoryEntry > myCreatorMap
Definition: simCommandFactory.h:51
#define DT_DLL_vrfplan
This file is used to determine how to build.
Definition: vrfplanDefines.h:28
DtSimCommandFactory is a hashlist of DtTaskFactoryEntrys, indexed by the string type that represents ...
Definition: simCommandFactory.h:25

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)