VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedRadioReceiverDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef DtReflectedRadioReceiver_H_
11 #define DtReflectedRadioReceiver_H_
12 
13 #if DtDIS
14 
15 #include "reflectedObjectDIS.h"
17 #include "receiverPdu.h"
18 #include "globalObjectDesignator.h"
19 #include "systemHashKey.h"
20 
24 
30  DtReflectedRadioReceiver* obj, void* userData);
31 
36 {
37 public:
38 
40  typedef DtRadioReceiverRepository* (*DtStateRepCreator)();
41 
42 public:
43 
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 
122 
125 
126 protected:
127 
133 
134 protected:
135 
136  static DtStateRepCreator theStateRepCreator;
137 
138 };
139 
141 {
142  return myStateRep->radioId();
143 }
144 
145 #endif
146 #endif
147 
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
virtual const DtBaseHashKey & hashKey() const =0
Get a hash key for this object.
This class provides a declaration of the class DtReceiverPdu.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtSystemHashKey myHashKey
Definition: reflectedRadioReceiverDIS.h:132
DtEntityIdentifier myId
Definition: reflectedRadioReceiverDIS.h:128
void(* DtRadioReceiverCallbackFunction)(DtReflectedRadioReceiver *obj, void *userData)
Definition: reflectedRadioReceiverDIS.h:29
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtSystemHashKey are used as hash keys for an emitter system.
Definition: systemHashKey.h:18
virtual unsigned int radioId() const
Set/Get the Receiver radio number.
This file contains typedefs used to represent objects in a protocol neutral way.
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
virtual int radioId() const
Get the radio receiver's radio ID.
Definition: reflectedRadioReceiverDIS.h:140
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
Instances of DtRadioReceiverDecoder decode Radio Receiver PDU's into DtRadioReceiverRepository object...
Definition: radioReceiverDecoderDIS.h:21
virtual const DtGlobalObjectDesignator & globalId() const =0
Get the Global ID for this object.
DtString myIdString
Definition: reflectedRadioReceiverDIS.h:129
void * prev() const
Definition: vlList.h:277
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtRadioReceiverRepository * myStateRep
Definition: reflectedRadioReceiverDIS.h:130
Instances of DtRadioReceiverRepository are used to store state information for radio receiver objects...
Definition: radioReceiverRepository.h:19
virtual void processStateMessage(const DtStateMsg &msg)
Process an entity state PDU.
virtual DtString idString() const =0
Get a string identification of this object.
static DtStateRepCreator theStateRepCreator
Definition: reflectedRadioReceiverDIS.h:136
void * wrapPrev() const
Definition: vlList.h:288
This class provides a wrapper around the DIS Receiver PDU network structure.
Definition: receiverPdu.h:27
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual DtStateRepository * stateRep() const =0
Returns a pointer to the StateRepository - through which you can inspect current state information...
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
Instances of DtReflectedRadioReceiver represent radio receiver objects simulated by remote applicatio...
Definition: reflectedRadioReceiverDIS.h:35
DtRadioReceiverDecoder * myDecoder
Definition: reflectedRadioReceiverDIS.h:131

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)