VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedAggregateDIS.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 DtReflectedAggregate_H_
11 #define DtReflectedAggregate_H_
12 
13 #if DtDIS
14 
15 #include <vlutil/vlMachineTypes.h>
16 #include "reflectedObjectDIS.h"
17 #include "aggregateStateDecoder.h"
18 #include "aggregateStatePdu.h"
19 #include "globalObjectDesignator.h"
20 #include "objectIdHashKey.h"
21 #include "relativeLocationPdu.h"
22 
26 
29 typedef void (*DtAggregateCallbackFunction)(
30  DtReflectedAggregate* obj, void* userData);
31 
36 {
37 public:
38 
40  typedef DtAggregateStateRepository* (*DtStateRepCreator)();
41 
42 public:
43 
46  const DtEntityIdentifier& id,
47  const DtEntityType& type);
48 
51  DtExerciseConn* conn,
52  const DtEntityIdentifier& id);
53 
55  virtual ~DtReflectedAggregate();
56 
59  virtual DtAggregateStateRepository* aggregateStateRep() const;
60 
62  virtual DtAggregateStateRepository* asr() const;
63 
67  virtual DtStateRepository* stateRep() const;
68 
71  virtual DtAggregateStateDecoder* decoder();
72 
74  virtual const DtEntityIdentifier& aggregateID() const;
75 
77  virtual const DtObjectId& id() const;
78 
81  virtual const DtGlobalObjectDesignator& globalId() const;
82 
85  virtual void processStateMessage(const DtStateMsg& msg);
86 
87  virtual void processRelativeLocation(const DtRelativeLocationPdu& pdu);
88 
90  virtual DtReflectedAggregate* next() const;
91  virtual DtReflectedAggregate* prev() const;
92 
94  virtual DtReflectedAggregate* wrapNext() const;
95  virtual DtReflectedAggregate* wrapPrev() const;
96 
98  virtual void addPostUpdateCallback(
99  DtAggregateCallbackFunction cb, void* userData);
100  virtual void removePostUpdateCallback(
101  DtAggregateCallbackFunction cb, void* userData);
102 
104  virtual const DtBaseHashKey& hashKey() const;
105 
107  virtual DtString idString() const;
108 
111  virtual void processAggregateState(const DtAggregateStatePdu& pdu);
112 
113 public:
114 
116  static void setStateRepCreator(DtStateRepCreator creator);
117  static DtStateRepCreator stateRepCreator(void);
118 
119 protected:
120 
123 
126 
127 protected:
128 
130  DtAggregateStateRepository* myAggregateStateRep;
131  DtAggregateStateDecoder* myAggregateDecoder;
132  DtEntityIdentifierHashKey myHashKey;
133 
134 protected:
135 
136  static DtStateRepCreator theStateRepCreator;
137 
138 };
139 
140 #endif
141 #endif
142 
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
Instances of DtExerciseConn are used to provide an application&#39;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
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
class DtReflectedAggregate:
Definition: reflectedAggregateHLA.h:32
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;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 DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file declares DtAggregateStatePdu – DIS Only.
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
This file declares the class DtAggregateStateDecoder – DIS only.
Instances of DtString are used to represent strings.
Definition: vlString.h:36
void(* DtAggregateCallbackFunction)(DtReflectedAggregate *obj, void *userData)
Definition: reflectedAggregateHLA.h:23
virtual const DtObjectId & id() const
Get the HLA object&#39;s id (local ID).
class DtStateMsg:
Definition: stateMsgHLA.h:32
This file contains typedefs for machine dependant types.
A protocol independent representation of an aggregate.
Definition: aggregateStateRepository.h:29
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26

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)