VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
dRefRadRcvr.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 DtReflectedRadioReceiver_H_
11
#define DtReflectedRadioReceiver_H_
12
13
#if DtDIS
14
15
#include "
dReflectedObj.h
"
16
#include "
dRadioRcvrDec.h
"
17
#include "
receivePdu.h
"
18
#include "
globalObjDes.h
"
19
#include <
vlutil/vlHashKeys.h
>
20
21
class
DT_DLL_VL
DtRadioReceiverRepository
;
22
class
DT_DLL_VL
DtExerciseConn
;
23
class
DT_DLL_VL
DtReflectedRadioReceiver
;
24
28
class
DT_DLL_VL
DtReflectedRadioReceiver
;
29
typedef
void (*
DtRadioReceiverCallbackFunction
) (
30
DtReflectedRadioReceiver
* obj,
void
* userData);
31
35
class
DT_DLL_VL
DtReflectedRadioReceiver
:
public
DtReflectedObject
36
{
37
public
:
38
40
typedef
DtRadioReceiverRepository
* (*DtStateRepCreator)();
41
42
public
:
43
45
DtReflectedRadioReceiver
(
46
DtExerciseConn
* conn,
47
const
DtEntityIdentifier
&
id
,
48
int
radioId);
49
51
virtual
~
DtReflectedRadioReceiver
();
52
55
virtual
DtRadioReceiverRepository
* receiverRep()
const
;
56
58
virtual
DtRadioReceiverRepository
* rsr()
const
;
59
61
virtual
DtStateRepository
*
stateRep
()
const
;
62
65
virtual
DtRadioReceiverDecoder
* decoder();
66
68
virtual
const
DtEntityIdentifier
& entityId()
const
;
69
71
virtual
const
DtObjectId
& id()
const
;
72
74
virtual
const
DtObjectId
& localId()
const
;
75
78
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
79
81
virtual
int
radioId()
const
;
82
85
virtual
void
processStateMessage
(
const
DtStateMsg
& msg);
86
89
virtual
DtReflectedRadioReceiver
*
next
()
const
;
90
virtual
DtReflectedRadioReceiver
*
prev
()
const
;
91
93
virtual
DtReflectedRadioReceiver
*
wrapNext
()
const
;
94
virtual
DtReflectedRadioReceiver
*
wrapPrev
()
const
;
95
97
virtual
void
addPostUpdateCallback(
98
DtRadioReceiverCallbackFunction
cb,
void
* userData);
99
virtual
void
removePostUpdateCallback(
100
DtRadioReceiverCallbackFunction
cb,
void
* userData);
101
103
virtual
const
DtBaseHashKey
&
hashKey
()
const
;
104
106
virtual
DtString
idString
()
const
;
107
110
virtual
void
processRadioReceiver(
const
DtReceiverPdu
& pdu);
111
112
public
:
113
115
static
void
setStateRepCreator(DtStateRepCreator creator);
116
static
DtStateRepCreator stateRepCreator(
void
);
117
118
protected
:
119
121
DtReflectedRadioReceiver
(
const
DtReflectedRadioReceiver
& orig);
122
124
DtReflectedRadioReceiver
&
operator=
(
const
DtReflectedRadioReceiver
& orig);
125
126
protected
:
127
128
DtEntityIdentifier
myId
;
129
DtString
myIdString
;
130
DtRadioReceiverRepository
*
myStateRep
;
131
DtRadioReceiverDecoder
*
myDecoder
;
132
DtStringHashKey
myHashKey
;
133
134
protected
:
135
136
static
DtStateRepCreator
theStateRepCreator
;
137
138
};
139
140
inline
int
DtReflectedRadioReceiver::radioId
()
const
141
{
142
return
myStateRep
->
radioId
();
143
}
144
145
#endif
146
#endif
147
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
)