VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
subtask
turnAndMoveControllerPSR.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: turnAndMoveControllerPSR.h,v $ $Revision: 1.3 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef turnAndMoveControllerPSR_H_
10
#define turnAndMoveControllerPSR_H_
11
12
#include "
vrfobjcore/processSR.h
"
13
#include "
vrfutil/rwInt.h
"
14
#include "
vrfutil/rwString.h
"
15
16
//RW type definition.
17
const
char
DtTurnAndMoveControllerPSRType
[] =
"turn-and-move-process-state-repository"
;
18
19
//DtTurnAndMoveControllerPSR is a process state repository which holds state variables for
20
//the DtTurnAndMoveController component.
21
//Process State Repositories hold state data for one or more components so that
22
//their internal state is preserved when a scenario is saved and reloaded.
23
class
DtTurnAndMoveControllerPSR
:
public
DtVrfProcessStateRepository
24
{
25
public
:
26
//Constructor
27
DtTurnAndMoveControllerPSR
(
DtVrfObject
* vrfObject,
28
const
DtString
& rwName = DtString::nullString(),
29
DtReaderWriterRegistry
* parentRegistry = 0);
30
//Copy constructor
31
DtTurnAndMoveControllerPSR
(
const
DtTurnAndMoveControllerPSR
& orig,
32
const
DtString
& rwName = DtString::nullString(),
33
DtReaderWriterRegistry
* parentRegistry = 0);
34
//Assignment Operator
35
DtTurnAndMoveControllerPSR
&
operator=
(
const
DtTurnAndMoveControllerPSR
& orig);
36
//Destructor
37
virtual
~DtTurnAndMoveControllerPSR
();
38
39
//Returns complete copy of this class using the copy constructor.
40
virtual
DtVrfProcessStateRepository
*
clone
(
41
const
DtString
& rwName = DtString::nullString(),
42
DtReaderWriterRegistry
* parentRegistry = 0)
const
;
43
//Returns "turn-and-move-process-state-repository"
44
virtual
DtString
type
()
const
;
45
46
//Static creator function for factory registration.
47
static
DtVrfProcessStateRepository
*
creator
(
const
DtString
& rwName,
48
DtVrfObject
* vrfObject,
DtReaderWriterRegistry
* parentRegistry = 0);
49
50
virtual
DtString
destinationName
()
const
;
51
virtual
void
setDestinationName
(
const
DtString
& newValue);
52
53
virtual
int
subtaskId
()
const
;
54
virtual
void
setSubtaskId
(
const
int
& newValue);
55
56
virtual
int
taskState
()
const
;
57
virtual
void
setTaskState
(
const
int
& newValue);
58
59
protected
:
60
DtRwString
myDestinationName
;
61
DtRwInt
mySubtaskId
;
62
DtRwInt
myTaskState
;
63
};
64
#endif
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
)