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
85
virtual
DtOwnershipHandler
* setOwnershipHandler(
DtOwnershipHandler
* handler );
86
88
virtual
void
acquireObject();
89
90
public
:
91
93
static
DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
94
95
public
:
96
98
typedef
DtStateRepCreator
DtEsrCreator
;
99
101
#if DtHLA_1516
102
virtual
RTI::ObjectInstanceHandle entityObjectId()
const
;
103
#else
104
virtual
RTI::ObjectHandle
entityObjectId()
const
;
105
#endif
106
109
static
DtEsrCreator
setEsrCreator(
DtEsrCreator
creator);
110
111
protected
:
112
114
DtReflectedEntity
(
const
DtReflectedEntity
& orig);
115
117
DtReflectedEntity
&
operator=
(
const
DtReflectedEntity
& orig);
118
119
protected
:
120
121
static
DtStateRepCreator
theStateRepCreator
;
122
};
123
124
inline
DtEntityStateRepository
*
DtReflectedEntity::entityStateRep
()
const
125
{
126
return
(
DtEntityStateRepository
*)
myStateRep
;
127
}
128
129
inline
DtEntityStateRepository
*
DtReflectedEntity::esr
()
const
130
{
131
return
(
DtEntityStateRepository
*)
myStateRep
;
132
}
133
134
#endif
135
#endif
136
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)