VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
File List
File Members
include
vrfExtObjects
reflExtEnt.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <vl/reflectedEnt.h>
9
10
#define DtEntReflectedObjectType DtReflectedEntity
11
12
#include <
vrfExtObjects/extEntSR.h
>
13
14
// Callback function that takes a DtReflectedExtEntity
15
// and usr data.
16
17
class
DtReflectedExtEntity
;
18
19
typedef
void
(*
DtExtEntityCallbackFunction
)
20
(
21
DtReflectedExtEntity
*
obj
,
void
* userData
22
);
23
24
class
DtExerciseConn;
25
26
#include <
vrfExtObjects/vrfExtObjectsDefines.h
>
27
class
DT_DLL_vrfExtObjects
DtReflectedExtEntity
:
public
DtEntReflectedObjectType
28
{
29
public
:
30
31
#if DtHLA
32
DtReflectedExtEntity
33
(
34
DtHlaObject* obj,
35
DtExerciseConn* conn
36
);
37
DtReflectedExtEntity
(DtExerciseConn* conn,
DtEntityStateRepository
* esrToUse);
38
#elif (DtDIS || DtTENA)
39
// constructor
40
DtReflectedExtEntity
41
(
42
DtExerciseConn* conn,
43
const
DtEntityIdentifier&
id
,
44
const
DtEntityType&
type
45
);
46
#endif
47
48
// destructor
49
virtual
~
DtReflectedExtEntity
();
50
51
// Returns ptr to environmentProcessStateRepository --
52
// through which you can inspect current state info.
53
virtual
DtExtEntityStateRepository
* extEntityStateRep()
const
;
54
55
// Synonym for extEntityStateRep().
56
virtual
DtExtEntityStateRepository
* eesr()
const
;
57
58
// Implementation for abstract base class. Calls cosr().
59
virtual
DtStateRepository* stateRep()
const
;
60
61
#if DtDIS
62
// Process an environment process state PDU.
63
// Calls processEnvironmentProcess().
64
virtual
void
processStateMessage(
const
DtStateMsg& msg);
65
#endif
66
67
// Get the next and previous elements in the reflected
68
// cwenvironment process list.
69
virtual
DtReflectedExtEntity
* nextEE()
const
;
70
virtual
DtReflectedExtEntity
* prevEE()
const
;
71
72
// Get the next and previous elements, wrap at the ends of the list.
73
virtual
DtReflectedExtEntity
* wrapNextEE()
const
;
74
virtual
DtReflectedExtEntity
* wrapPrevEE()
const
;
75
76
// Environment Process callback registration/deregistration.
77
virtual
void
addPostUpdateCallback
78
(
79
DtExtEntityCallbackFunction
cb,
void
* userData
80
);
81
virtual
void
removePostUpdateCallback
82
(
83
DtExtEntityCallbackFunction
cb,
void
* userData
84
);
85
86
static
void
postUpdateCallback
87
(
88
DtReflectedExtEntity
* ent,
void
* userData
89
);
90
91
virtual
void
processPostUpdate();
92
95
#if DtHLA
96
virtual
void
diGuyObjectUpdated();
97
#endif
98
99
virtual
void
updateExtensions();
100
101
// Overridden from bast class to make public.
102
virtual
void
processPostUpdateCallbacks();
103
104
private
:
105
106
// copy constructor
107
DtReflectedExtEntity
(
const
DtReflectedExtEntity
& orig);
108
109
// assignment operator
110
DtReflectedExtEntity
& operator=(
const
DtReflectedExtEntity
& orig);
111
};
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)