VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfplan
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>
14
#include <
vrftasks/radioMsgTypes.h
>
15
16
class
DtSimCommandFactoryEntry
;
17
class
DtReaderWriterRegistry
;
18
class
DtSimCommand
;
19
20
typedef
DtSimCommand
* (*DtSimCommandCreatorFcn)();
21
24
#include "
vrfplan/vrfplanDefines.h
"
25
class
DT_DLL_vrfplan
DtSimCommandFactory
26
{
27
public
:
29
DtSimCommandFactory
();
30
32
DtSimCommandFactory
(
const
DtSimCommandFactory
& orig);
33
35
const
DtSimCommandFactory
& operator=(
const
DtSimCommandFactory
& orig);
36
38
virtual
~
DtSimCommandFactory
();
39
41
virtual
void
addCreatorFcn(
const
DtSimCommandMessageType
& type,
42
DtSimCommandCreatorFcn
fcn);
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 Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)