VR-Link API Documentation for DIS
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
griddedDataPublisherDIS.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
7
#if DtDIS
8
9
12
13
#ifndef griddedDataPublisherDIS_H_
14
#define griddedDataPublisherDIS_H_
15
16
17
#include "
pdu.h
"
18
#include "
objectPublisherDIS.h
"
19
#include "
griddedDataRepository.h
"
20
#include "
griddedDataEncoderDIS.h
"
21
#include "
griddedDataDecoderDIS.h
"
22
#include <
vlutil/vlPrint.h
>
23
24
25
class
DT_DLL_VL
DtGriddedDataPublisher
:
public
DtObjectPublisher
26
{
27
public
:
28
30
typedef
DtGriddedDataRepository
* (*DtStateRepCreator)();
31
32
public
:
33
34
36
DtGriddedDataPublisher
(
37
DtGriddedDataRepository
*stateRepToUse,
38
DtExerciseConn
* conn,
39
const
DtObjectId
&
id
=
DtObjectId::defaultId
());
40
42
DtGriddedDataPublisher
(
43
DtExerciseConn
* conn,
44
const
DtObjectId
&
id
=
DtObjectId::defaultId
());
45
47
virtual
~
DtGriddedDataPublisher
();
48
52
virtual
void
tick
();
53
56
virtual
DtGriddedDataRepository
* gridDataStateRep();
57
59
virtual
DtGriddedDataRepository
* gdsr();
60
64
virtual
DtGriddedDataDecoder
* decoder();
65
68
virtual
DtGriddedDataEncoder
* encoder();
69
71
virtual
const
DtObjectId
&
id
()
const
;
72
74
virtual
const
DtObjectId
&
localId
()
const
;
75
77
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
78
82
virtual
void
sendFinalPduOnDestruction(
bool
onOff);
83
86
virtual
void
forceUpdate
();
87
88
public
:
89
91
static
void
setStateRepCreator(DtStateRepCreator creator);
92
static
DtStateRepCreator stateRepCreator(
void
);
93
94
static
void
setClassDfltTimeThreshold(
DtTime
threshold);
95
96
protected
:
97
99
void
sendFinalPdu();
100
102
void
init(
const
DtEntityIdentifier
& vehId);
103
105
DtGriddedDataPublisher
(
const
DtGriddedDataPublisher
& orig);
106
108
DtGriddedDataPublisher
&
operator=
(
const
DtGriddedDataPublisher
& orig);
109
110
protected
:
111
112
DtObjectId
myId
;
113
DtGriddedDataDecoder
*
myDecoder
;
114
DtGriddedDataEncoder
*
myEncoder
;
115
bool
mySendFinalInDtor
;
116
117
protected
:
118
static
DtStateRepCreator
theStateRepCreator
;
119
static
DtTime
theClassDfltTimeThreshold
;
120
static
bool
theClassDfltIsSetFlag
;
121
};
122
123
inline
DtGriddedDataRepository
*
DtGriddedDataPublisher::gridDataStateRep
()
124
{
125
return
gdsr
();
126
}
127
128
inline
DtGriddedDataRepository
*
DtGriddedDataPublisher::gdsr
()
129
{
130
return
static_cast<
DtGriddedDataRepository
*
>
(
myStateRep
);
131
}
132
133
inline
DtGriddedDataEncoder
*
DtGriddedDataPublisher::encoder
()
134
{
135
return
myEncoder
;
136
}
137
138
inline
DtGriddedDataDecoder
*
DtGriddedDataPublisher::decoder
()
139
{
140
return
myDecoder
;
141
}
142
143
inline
void
DtGriddedDataPublisher::sendFinalPduOnDestruction
(
bool
onOff)
144
{
145
mySendFinalInDtor
= onOff;
146
}
147
148
inline
const
DtObjectId
&
DtGriddedDataPublisher::id
()
const
149
{
150
return
myId
;
151
}
152
153
inline
const
DtObjectId
&
DtGriddedDataPublisher::localId
()
const
154
{
155
return
id
();
156
}
157
158
#endif
159
#endif
160
Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)