MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrSim
hlaStateObject.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2016 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
lgrSim/lgrSim.h
>
13
14
#include <
lgrCore/stateObject.h
>
15
#include <
lgrUtil/absoluteTime.h
>
16
#include "
hlaMessageFactory.h
"
17
#include <
lgrSim/hlaTimeStampedAttr.h
>
18
19
#include <list>
20
#include <map>
21
22
#include <vl/rtiCompatibility.h>
23
24
namespace
MAKLogger
25
{
26
class
DtLgrHlaMessage;
27
class
DtLgrHlaMessageState;
28
class
DtLgrHlaSimulationManager;
29
32
class
DT_DLL_LGRSIM
DtHlaTimeStampledStateRep
33
{
34
public
:
35
36
DtHlaTimeStampledStateRep
();
37
~
DtHlaTimeStampledStateRep
();
38
39
void
update(
DtAbsoluteTime
time,
const
DtLgrHandleValueReferenceMap
* attributes);
40
41
//Generate a list of timed AHVPSets.
42
void
generate(
DtTimedHandleValueMapList
& outputList);
43
44
typedef
std::map<DtLgrHlaHandle,DtHlaTimeStampedAttribute*>
HandleTimedAttributeMap
;
45
const
HandleTimedAttributeMap
& attributes()
const
;
46
47
protected
:
48
49
HandleTimedAttributeMap
myAttributes
;
50
};
51
54
class
DT_DLL_LGRSIM
DtHlaStateObject
:
public
DtStateObject
55
{
56
57
public
:
58
60
DT_VIRTUAL_CTR
(
DtHlaStateObject
,(
DtLgrHlaMessageState
&,
const
DtPacket
&))
61
62
63
DT_VIRTUAL_BASE_CTR
(
DtStateObject
,(
DtMessageState
&,
const
DtPacket
&))
64
65
66
virtual
~
DtHlaStateObject
();
67
69
virtual
bool
isEntity()
const
;
70
72
virtual
bool
isAggregate()
const
;
73
75
virtual
DtU64 uniqueId()
const
;
76
78
virtual
DtU64 uniqueId(
const
DtHlaObject*
object
)
const
;
79
81
virtual
const
DtString
& name()
const
;
82
84
virtual
DtU64 packetId(
const
DtPacket
& packet)
const
;
85
88
virtual
void
setPacketId(DtU64,
DtPacket
&)
const
;
89
92
virtual
DtPacket
* createUpdate(
const
DtAbsoluteTime
* time)
const
;
93
96
virtual
DtPacket
* createUpdates(
const
DtAbsoluteTime
* time)
const
;
97
99
virtual
DtPacket
* createRemoval(
const
DtAbsoluteTime
& currentTime)
const
;
100
102
virtual
bool
packetForMe(
const
DtPacket
&)
const
;
103
105
virtual
void
updateViaPacket(
const
DtPacket
&);
106
108
virtual
DtHlaTimeStampledStateRep
* attributes();
109
111
virtual
const
DtRegionDescSet
& regionSet()
const
;
112
113
inline
DtLgrHlaHandle
objectHandle
()
const
{
return
myObjectHandle;}
114
inline
DtLgrHlaHandle
classHandle
()
const
{
return
myClassHandle;}
115
inline
const
DtString
&
tag
()
const
{
return
myTag;}
116
117
protected
:
118
119
DtLgrHlaHandle
myObjectHandle
;
120
DtLgrHlaHandle
myClassHandle
;
121
DtString
myName
;
122
DtString
myTag
;
123
124
DtLgrHlaMessageState
*
myState
;
125
DtHlaTimeStampledStateRep
*
myAttributes
;
126
DtRegionDescSet
myRegions
;
127
DtAbsoluteTime
myLastUpdateTime
;
128
bool
myIsUpdateFromPast
;
129
130
mutable
const
DtBaseObjClassDesc
*
myClassDesc
;
131
132
};
133
134
}
135
Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (
www.mak.com
)