VR-Link API Documentation for HLA 1.3
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
objectPublisherDIS.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
9
10
#if DtDIS
11
12
13
#ifndef DtDISObjectPublisher_H_
14
#define DtDISObjectPublisher_H_
15
16
17
#include <
vlutil/vlMachineTypes.h
>
18
#include "
objectId.h
"
19
#include <
vlutil/vlTime.h
>
20
21
class
DT_DLL_VL
DtStateRepository
;
22
class
DT_DLL_VL
DtExerciseConn
;
23
class
DT_DLL_VL
DtPdu
;
24
30
class
DT_DLL_VL
DtObjectPublisher
31
{
32
public
:
33
39
DtObjectPublisher
(
DtExerciseConn
* conn,
40
DtStateRepository
* stateRep,
41
DtStateRepository
* asSeenByRemote,
42
bool
okToDeleteStateRep =
true
);
43
45
virtual
~
DtObjectPublisher
();
46
47
private
:
48
50
DtObjectPublisher
(
const
DtObjectPublisher
& orig);
51
53
DtObjectPublisher
& operator= (
const
DtObjectPublisher
& orig);
54
55
public
:
56
59
virtual
DtStateRepository
* stateRep();
60
63
virtual
DtStateRepository
* sr();
64
66
virtual
DtExerciseConn
* exerciseConn();
67
69
virtual
const
DtObjectId
& localId()
const
= 0;
71
virtual
const
DtObjectId
& id()
const
= 0;
73
virtual
const
DtGlobalObjectDesignator
& globalId()
const
= 0;
74
76
virtual
void
forceUpdate()=0;
77
79
virtual
void
tick
() = 0;
80
82
virtual
void
parallelTick();
83
87
virtual
void
setTimeThreshold(
DtTime
time);
89
virtual
DtTime
timeThreshold()
const
;
90
95
virtual
DtStateRepository
* approximateRemoteStateRep();
96
99
virtual
DtTime
lastTimeUpdated()
const
;
100
103
virtual
DtTime
lastSimTimeUpdated()
const
;
104
107
virtual
void
setUseCustomThreshold(
bool
useCustom);
108
111
virtual
bool
useCustomThreshold();
112
113
public
:
114
119
static
void
setDfltTimeThreshold(
DtTime
time);
120
122
static
DtTime
dfltTimeThreshold();
123
124
protected
:
125
126
128
virtual
void
send
(
DtPdu
* pdu)
const
;
129
130
131
protected
:
132
133
DtExerciseConn
*myExConn;
134
DtStateRepository
*myStateRep;
135
DtStateRepository
*myAsSeenByRemote;
136
bool
myOkToDeleteStateRepFlag;
137
bool
myUseCustomThreshold;
138
139
DtTime
myTimeThreshold;
140
142
mutable
DtTime
mySimTimeLastUpdate;
143
145
mutable
DtTime
myRealTimeLastUpdate;
146
147
protected
:
148
149
static
DtTime
theDfltTimeThreshold;
150
151
};
152
153
inline
DtStateRepository
*
DtObjectPublisher::stateRep
()
154
{
155
return
myStateRep
;
156
}
157
158
inline
DtStateRepository
*
DtObjectPublisher::sr
()
159
{
160
return
myStateRep
;
161
}
162
163
inline
DtExerciseConn
*
DtObjectPublisher::exerciseConn
()
164
{
165
return
myExConn
;
166
}
167
168
inline
DtStateRepository
*
DtObjectPublisher::approximateRemoteStateRep
()
169
{
170
return
myAsSeenByRemote
;
171
}
172
173
#endif //DtObjectPublisher_H_
174
#endif //DtDIS
175
Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)