VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
reflectedEnvironmentProcessDIS.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
7
8
#ifndef DtReflectedEnvironmentProcess_H_
9
#define DtReflectedEnvironmentProcess_H_
10
11
#if DtDIS
12
13
#include "
reflectedObjectDIS.h
"
14
#include "
environmentProcessDecoderDIS.h
"
15
#include "
environmentalProcessPdu.h
"
16
#include "
globalObjectDesignator.h
"
17
#include "
objectIdHashKey.h
"
18
19
class
DT_DLL_VL
DtEnvironmentProcessRepository
;
20
class
DT_DLL_VL
DtExerciseConn
;
21
class
DT_DLL_VL
DtReflectedEnvironmentProcess
;
22
26
typedef
void (*
DtEnvironmentProcessCallbackFunction
) (
27
DtReflectedEnvironmentProcess
* obj,
void
* userData);
28
34
class
DT_DLL_VL
DtReflectedEnvironmentProcess
:
public
DtReflectedObject
35
{
36
public
:
37
40
typedef
DtEnvironmentProcessRepository
* (*DtStateRepCreator)();
41
42
public
:
43
45
DtReflectedEnvironmentProcess
(
46
DtExerciseConn
* conn,
47
const
DtEntityIdentifier
&
id
,
48
const
DtEntityType
& type);
49
51
virtual
~
DtReflectedEnvironmentProcess
();
52
55
virtual
DtEnvironmentProcessRepository
* environmentProcessStateRep()
const
;
56
58
virtual
DtEnvironmentProcessRepository
* epsr()
const
;
59
61
virtual
DtStateRepository
*
stateRep
()
const
;
62
65
virtual
DtEnvironmentProcessDecoder
* decoder();
66
68
virtual
const
DtEntityIdentifier
& entityId()
const
;
69
71
virtual
const
DtObjectId
& id()
const
;
72
74
virtual
const
DtObjectId
& localId()
const
;
75
78
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
79
82
virtual
void
processStateMessage
(
const
DtStateMsg
& msg);
83
86
virtual
DtReflectedEnvironmentProcess
*
next
()
const
;
87
virtual
DtReflectedEnvironmentProcess
*
prev
()
const
;
88
90
virtual
DtReflectedEnvironmentProcess
*
wrapNext
()
const
;
91
virtual
DtReflectedEnvironmentProcess
*
wrapPrev
()
const
;
92
94
virtual
void
addPostUpdateCallback(
95
DtEnvironmentProcessCallbackFunction
cb,
void
* userData);
96
virtual
void
removePostUpdateCallback(
97
DtEnvironmentProcessCallbackFunction
cb,
void
* userData);
98
100
virtual
const
DtBaseHashKey
&
hashKey
()
const
;
101
103
virtual
DtString
idString
()
const
;
104
107
virtual
void
processEnvironmentProcess(
const
DtEnvironmentalProcessPdu
& pdu);
108
109
public
:
110
112
static
void
setStateRepCreator(DtStateRepCreator creator);
113
static
DtStateRepCreator stateRepCreator(
void
);
114
115
protected
:
116
118
DtReflectedEnvironmentProcess
(
const
DtReflectedEnvironmentProcess
& orig);
119
121
DtReflectedEnvironmentProcess
&
operator=
(
const
DtReflectedEnvironmentProcess
& orig);
122
123
protected
:
124
125
DtEntityIdentifier
myId
;
126
DtEnvironmentProcessRepository
*
myStateRep
;
127
DtEnvironmentProcessDecoder
*
myDecoder
;
128
DtEntityIdentifierHashKey
myHashKey
;
129
130
protected
:
131
132
static
DtStateRepCreator
theStateRepCreator
;
133
134
};
135
136
#endif
137
#endif
138
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)