VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
addPSR
timeKeeperPSR.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: timeKeeperPSR.h,v $ $Revision: 1.2 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtTimeKeeperPSR_H_
10
#define DtTimeKeeperPSR_H_
11
12
#include "
vrfobjcore/vrfProcessStateRepository.h
"
13
#include "
vrfutil/rwReal.h
"
14
15
//class DtTimeKeeperPSR:
16
//
17
//This is a sample Process State Repository which has only one value
18
//which is elapsed time. This data will be written to and read from
19
//the OOB file when a scenario checkpoint is saved and loaded.
20
21
extern
const
char
*
TimeKeeperPSRType
;
22
23
class
DtTimeKeeperPSR
:
public
DtVrfProcessStateRepository
24
{
25
public
:
26
27
//constructor
28
DtTimeKeeperPSR
(
DtVrfObject
* vrfObject,
29
const
DtString
& rwName = DtString::nullString(),
30
DtReaderWriterRegistry
* parentRegistry = 0);
31
32
//copy constructor
33
DtTimeKeeperPSR
(
const
DtTimeKeeperPSR
& orig,
34
const
DtString
& rwName = DtString::nullString(),
35
DtReaderWriterRegistry
* parentRegistry = 0);
36
37
//destructor
38
virtual
~DtTimeKeeperPSR
();
39
40
//assignment operator
41
DtTimeKeeperPSR
&
operator=
(
const
DtTimeKeeperPSR
& orig);
42
43
//returns a newly created copy of this object
44
virtual
DtVrfProcessStateRepository
*
clone
(
45
const
DtString
& rwName = DtString::nullString(),
46
DtReaderWriterRegistry
* parentRegistry = 0)
const
;
47
48
//Returns the string type of this process state repository.
49
virtual
DtString
type
()
const
;
50
51
//Get / Set the elapsed time state variable.
52
virtual
void
setElapsedTime
(
double
time);
53
virtual
double
elapsedTime
()
const
;
54
55
public
:
56
57
//Returns a newly created instance of this class.
58
static
DtVrfProcessStateRepository
*
creator
(
const
DtString
& rwName,
59
DtVrfObject
* vrfObject,
DtReaderWriterRegistry
* parentRegistry);
60
61
protected
:
62
63
DtRwReal
myElapsedTime
;
64
};
65
66
#endif
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)