VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrftasks
taskStateFactory.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1999 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "vlutil/vlString.h"
14
#include "
vrftasks/vrftasksDefines.h
"
15
#include <map>
16
17
18
class
DtSimTaskState
;
19
20
21
typedef
DtSimTaskState
* (*DtSimTaskStateCreatorFcn)();
22
26
class
DT_DLL_vrftasks
DtSimTaskStateFactory
27
{
28
public
:
29
DtSimTaskStateFactory
();
30
virtual
~
DtSimTaskStateFactory
();
31
32
virtual
void
addCreatorFcn(
const
DtString
& type,
DtSimTaskStateCreatorFcn
fcn);
33
34
virtual
bool
isTypeRegistered(
const
DtString
& type);
35
38
39
virtual
DtSimTaskState
* createTaskState(
const
DtString
& type);
41
42
static
DtSimTaskStateFactory
* create();
43
protected
:
45
virtual
DtString
creationTypeName()
const
;
46
47
std::map<DtString, DtSimTaskStateCreatorFcn>
myCreatorMap
;
48
};
49
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)