VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
reflectedEntityHLA.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 reflectedEntityHLA_H_
8
#define reflectedEntityHLA_H_
9
10
#if DtHLA
11
12
#include "
entityStateRepository.h
"
13
#include "
reflectedObjectHLA.h
"
14
19
20
class
DT_DLL_VL
DtReflectedEntity
;
21
23
typedef
void (*
DtEntityCallbackFunction
)(
24
DtReflectedEntity
* obj,
void
* userData);
25
29
class
DT_DLL_VL
DtReflectedEntity
:
public
DtReflectedObject
30
{
31
public
:
32
34
typedef
DtEntityStateRepository
* (*DtStateRepCreator)();
35
36
public
:
37
39
DtReflectedEntity
(
DtHlaObject
* obj,
DtExerciseConn
* conn);
40
44
DtReflectedEntity
(
DtExerciseConn
* conn,
DtEntityStateRepository
* esrToUse);
45
47
DtReflectedEntity
(
DtHlaObject
* obj,
DtExerciseConn
* conn,
48
DtBaseStateRepCreator esrToUse);
49
51
virtual
~
DtReflectedEntity
();
52
55
virtual
DtEntityStateRepository
* entityStateRep()
const
;
56
58
virtual
DtEntityStateRepository
* esr()
const
;
59
61
virtual
DtReflectedEntity
* next()
const
;
62
64
virtual
DtReflectedEntity
* prev()
const
;
65
68
virtual
DtReflectedEntity
* wrapNext()
const
;
69
72
virtual
DtReflectedEntity
* wrapPrev()
const
;
73
75
virtual
void
addPostUpdateCallback(
76
DtEntityCallbackFunction
cb,
void
* userData);
77
virtual
void
removePostUpdateCallback(
78
DtEntityCallbackFunction
cb,
void
* userData);
79
80
virtual
void
diGuyObjectUpdated();
81
83
virtual
void
acquireObject();
84
85
public
:
86
88
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
89
90
public
:
91
93
typedef
DtStateRepCreator
DtEsrCreator
;
94
96
#if DtHLA_1516
97
virtual
RTI::ObjectInstanceHandle entityObjectId()
const
;
98
#else
99
virtual
RTI::ObjectHandle
entityObjectId()
const
;
100
#endif
101
104
static
DtEsrCreator
setEsrCreator(
DtEsrCreator
creator);
105
106
protected
:
107
109
DtReflectedEntity
(
const
DtReflectedEntity
& orig);
110
112
DtReflectedEntity
&
operator=
(
const
DtReflectedEntity
& orig);
113
114
protected
:
115
116
static
DtStateRepCreator
theStateRepCreator
;
117
};
118
119
inline
DtEntityStateRepository
*
DtReflectedEntity::entityStateRep
()
const
120
{
121
return
(
DtEntityStateRepository
*)
myStateRep
;
122
}
123
124
inline
DtEntityStateRepository
*
DtReflectedEntity::esr
()
const
125
{
126
return
(
DtEntityStateRepository
*)
myStateRep
;
127
}
128
129
#endif
130
#endif
131
Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)