VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
tReflectedObj.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
7
#ifndef tReflectedObj_H_
8
#define tReflectedObj_H_
9
10
#if DtTENA
11
12
13
#include "
refObjCbInfo.h
"
14
#include "
hostStructs.h
"
15
16
#include <
vlutil/vlTime.h
>
17
#include <
vlutil/vlString.h
>
18
#include <
vlutil/vlList.h
>
19
23
24
class
DT_DLL_VL
DtExerciseConn
;
25
class
DT_DLL_VL
DtStateRepository
;
26
27
32
class
DT_DLL_VL
DtReflectedObject
:
public
DtListedObj
33
34
{
35
public
:
36
38
typedef
DtStateRepository
* (*DtBaseStateRepCreator)();
39
40
public
:
41
43
DtReflectedObject
(
DtExerciseConn
* conn,
44
DtStateRepository
*stateRep);
45
47
DtReflectedObject
(
DtExerciseConn
* conn,
48
DtBaseStateRepCreator creator);
49
51
virtual
~
DtReflectedObject
();
52
55
virtual
DtStateRepository
* stateRep()
const
;
56
58
virtual
DtReflectedObject
* nextObj()
const
;
59
61
virtual
DtReflectedObject
* prevObj()
const
;
62
65
virtual
DtReflectedObject
* wrapNextObj()
const
;
66
69
virtual
DtReflectedObject
* wrapPrevObj()
const
;
70
72
virtual
DtStateRepository
* sr()
const
;
73
75
virtual
const
DtGlobalObjectDesignator
& globalId()
const
= 0;
76
79
virtual
void
baseAddPostUpdateCallback(
80
DtReflectedObjectCallbackFunction
cb,
void
* userData);
81
virtual
void
baseRemovePostUpdateCallback(
82
DtReflectedObjectCallbackFunction
cb,
void
* userData);
83
85
virtual
void
processPostUpdateCallbacks();
86
88
virtual
void
printDataToStream(std::ostream& str)
const
= 0;
89
90
protected
:
91
92
DtExerciseConn
*myExConn;
93
DtIntrusiveList
myStateUpdateCallbacks;
94
DtStateRepository
*myStateRep;
95
96
protected
:
97
99
DtReflectedObject
(
const
DtReflectedObject
& orig);
100
102
DtReflectedObject
& operator=(
const
DtReflectedObject
& orig);
103
};
104
105
DT_DLL_VL
std::ostream &
operator <<
(std::ostream &str,
const
DtReflectedObject
&sr);
106
110
inline
DtStateRepository
*
DtReflectedObject::stateRep
()
const
111
{
112
return
myStateRep;
113
}
114
115
inline
DtStateRepository
*
DtReflectedObject::sr
()
const
116
{
117
return
myStateRep;
118
}
119
120
inline
DtReflectedObject
*
DtReflectedObject::nextObj
()
const
121
{
122
return
(
DtReflectedObject
*)
DtListedObj::next
();
123
}
124
125
inline
DtReflectedObject
*
DtReflectedObject::prevObj
()
const
126
{
127
return
(
DtReflectedObject
*)
DtListedObj::prev
();
128
}
129
130
inline
DtReflectedObject
*
DtReflectedObject::wrapNextObj
()
const
131
{
132
return
(
DtReflectedObject
*)
DtListedObj::wrapNext
();
133
}
134
135
inline
DtReflectedObject
*
DtReflectedObject::wrapPrevObj
()
const
136
{
137
return
(
DtReflectedObject
*)
DtListedObj::wrapPrev
();
138
}
139
140
141
#endif
142
#endif
143
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)