VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedRadioTransmitterDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
9 
10 #ifndef DtReflectedRadioTransmitter_H_
11 #define DtReflectedRadioTransmitter_H_
12 
13 #if DtDIS
14 
15 #include "reflectedObjectDIS.h"
17 #include "transmitterPdu.h"
18 #include "globalObjectDesignator.h"
19 #include "systemHashKey.h"
20 
24 
28 typedef void (*DtRadioTransmitterCallbackFunction) (
29  DtReflectedRadioTransmitter* obj, void* userData);
30 
34 {
35 
36 public:
37 
39  typedef DtRadioTransmitterRepository* (*DtStateRepCreator)();
40 
41 public:
42 
45  DtExerciseConn* conn,
46  const DtEntityIdentifier& id,
47  int radioId);
48 
50  virtual ~DtReflectedRadioTransmitter();
51 
54  virtual DtRadioTransmitterRepository* radioXmitRep() const;
55 
57  virtual DtRadioTransmitterRepository* tsr() const;
58 
60  virtual DtStateRepository* stateRep() const;
61 
65 
67  virtual const DtEntityIdentifier& entityId() const;
68 
70  virtual const DtObjectId& id() const;
71 
73  virtual const DtObjectId& localId() const;
74 
77  virtual const DtGlobalObjectDesignator& globalId() const;
78 
80  virtual int radioId() const;
81 
84  virtual void processStateMessage(const DtStateMsg& msg);
85 
88  virtual DtReflectedRadioTransmitter* next() const;
89  virtual DtReflectedRadioTransmitter* prev() const;
90 
92  virtual DtReflectedRadioTransmitter* wrapNext() const;
93  virtual DtReflectedRadioTransmitter* wrapPrev() const;
94 
96  virtual void addPostUpdateCallback(
97  DtRadioTransmitterCallbackFunction cb, void* userData);
98  virtual void removePostUpdateCallback(
99  DtRadioTransmitterCallbackFunction cb, void* userData);
100 
102  virtual const DtBaseHashKey& hashKey() const;
103 
105  virtual DtString idString() const;
106 
109  virtual void processRadioTransmitter(const DtTransmitterPdu& pdu);
110 
111 public:
112 
114  static void setStateRepCreator(DtStateRepCreator creator);
115  static DtStateRepCreator stateRepCreator();
116 
117 protected:
118 
121 
124 
125 protected:
126 
130  DtSystemHashKey myHashKey;
131  DtString myIdString;
132 
133 protected:
134 
135  static DtStateRepCreator theStateRepCreator;
136 
137 };
138 
139 inline int DtReflectedRadioTransmitter::radioId() const
140 {
141  return myStateRep->radioId();
142 }
143 
144 #endif
145 #endif
146 
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
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
void(* DtRadioTransmitterCallbackFunction)(DtReflectedRadioTransmitter *obj, void *userData)
Definition: reflectedRadioTransmitterHLA.h:23
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
class DtReflectedRadioTransmitter:
Definition: reflectedRadioTransmitterHLA.h:32
DtObjectId myId
Definition: reflectedObjectHLA.h:183
class DtRadioTransmitterDecoder:
Definition: radioTransmitterDecoderHLA.h:31
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object's global object designator - the object name in HLA.
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtRadioTransmitterRepository are used to store state information for objects which are r...
Definition: radioTransmitterRepository.h:29
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:180
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:36
virtual const DtObjectId & id() const
Get the HLA object's id (local ID).
class DtStateMsg:
Definition: stateMsgHLA.h:32

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)