VR-Link API Documentation for HLA Evolved
 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 
29 typedef void (*DtRadioReceiverCallbackFunction) (
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 
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 
129  DtString myIdString;
132  DtSystemHashKey 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 
DtHlaStateDecoder * myDecoder
Definition: reflectedObjectHLA.h:181
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
This class provides a declaration of the class DtReceiverPdu.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
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 const DtObjectId & localId() const
Get the HLA object's id (local ID).
Definition: reflectedObjectHLA.h:193
This file contains typedefs used to represent objects in a protocol neutral way.
virtual DtHlaStateDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages into our SR. ...
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – Not Implemented
virtual DtStateRepository * stateRep() const
Returns a pointer to the StateRepository - through which you can inspect current state information...
Definition: reflectedObjectHLA.h:198
DtObjectId myId
Definition: reflectedObjectHLA.h:183
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object's global object designator - the object name in HLA.
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
class DtRadioReceiverDecoder:
Definition: radioReceiverDecoderHLA.h:31
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
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:180
Instances of DtRadioReceiverRepository are used to store state information for radio receiver objects...
Definition: radioReceiverRepository.h:19
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual const DtObjectId & id() const
Get the HLA object's id (local ID).
class DtStateMsg:
Definition: stateMsgHLA.h:32
class DtReflectedRadioReceiver:
Definition: reflectedRadioReceiverHLA.h:32
void(* DtRadioReceiverCallbackFunction)(DtReflectedRadioReceiver *obj, void *userData)
Definition: reflectedRadioReceiverHLA.h:23

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)