VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
dRadioRcvrPub.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
9
10
#ifndef dRadioRcvrPub_H_
11
#define dRadioRcvrPub_H_
12
13
#if DtDIS
14
15
16
#include "
dObjPub.h
"
17
#include "
pdu.h
"
18
#include "
radioRecvrSR.h
"
19
#include "
dRadioRcvrEnc.h
"
20
#include "
dRadioRcvrDec.h
"
21
#include <
vlutil/vlPrint.h
>
22
23
24
class
DT_DLL_VL
DtRadioReceiverPublisher
:
public
DtObjectPublisher
25
{
26
public
:
27
30
typedef
DtRadioReceiverRepository
* (*DtStateRepCreator)();
31
32
public
:
33
35
DtRadioReceiverPublisher
(
36
DtRadioReceiverRepository
* stateRepToUse,
37
DtExerciseConn
* conn,
38
const
DtObjectId
& entityId =
DtObjectId::defaultId
());
39
41
DtRadioReceiverPublisher
(
42
DtExerciseConn
* conn,
43
const
DtObjectId
& entityId =
DtObjectId::defaultId
(),
44
int
radioId = 1);
45
47
virtual
~
DtRadioReceiverPublisher
();
48
53
virtual
void
tick
();
54
57
virtual
DtRadioReceiverRepository
* receiverRep();
58
60
virtual
DtRadioReceiverRepository
* rsr();
61
65
virtual
DtRadioReceiverDecoder
* decoder();
66
69
virtual
DtRadioReceiverEncoder
* encoder();
70
72
virtual
const
DtObjectId
&
id
()
const
;
73
75
virtual
const
DtObjectId
&
localId
()
const
;
76
78
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
79
81
virtual
int
radioId()
const
;
82
86
virtual
void
sendFinalPduOnDestruction(
bool
onOff);
87
90
virtual
void
forceUpdate
();
91
92
public
:
93
95
static
void
setStateRepCreator(DtStateRepCreator creator);
96
static
DtStateRepCreator stateRepCreator(
void
);
97
98
static
void
setClassDfltTimeThreshold(
DtTime
threshold);
99
100
protected
:
101
103
void
sendFinalPdu();
104
106
void
init(
const
DtEntityIdentifier
& vehId);
107
109
DtRadioReceiverPublisher
(
const
DtRadioReceiverPublisher
& orig);
110
112
DtRadioReceiverPublisher
&
operator=
(
const
DtRadioReceiverPublisher
& orig);
113
114
protected
:
115
DtObjectId
myId
;
116
DtRadioReceiverDecoder
*
myDecoder
;
117
DtRadioReceiverEncoder
*
myEncoder
;
118
bool
mySendFinalInDtor
;
119
120
protected
:
121
static
DtStateRepCreator
theStateRepCreator
;
122
static
DtTime
theClassDfltTimeThreshold
;
123
static
bool
theClassDfltIsSetFlag
;
124
};
125
126
inline
DtRadioReceiverRepository
*
DtRadioReceiverPublisher::rsr
()
127
{
128
return
static_cast<
DtRadioReceiverRepository
*
>
(
myStateRep
);
129
}
130
131
#endif
132
#endif
133
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)