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-2010 VT MAK
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 
50  virtual ~DtReflectedAggregate();
51 
54  virtual DtAggregateStateRepository* aggregateStateRep() const;
55 
57  virtual DtAggregateStateRepository* asr() const;
58 
62  virtual DtStateRepository* stateRep() const;
63 
66  virtual DtAggregateStateDecoder* decoder();
67 
69  virtual const DtEntityIdentifier& aggregateID() const;
70 
72  virtual const DtObjectId& id() const;
73 
76  virtual const DtGlobalObjectDesignator& globalId() const;
77 
80  virtual void processStateMessage(const DtStateMsg& msg);
81 
82  virtual void processRelativeLocation(const DtRelativeLocationPdu& pdu);
83 
85  virtual DtReflectedAggregate* next() const;
86  virtual DtReflectedAggregate* prev() const;
87 
89  virtual DtReflectedAggregate* wrapNext() const;
90  virtual DtReflectedAggregate* wrapPrev() const;
91 
93  virtual void addPostUpdateCallback(
94  DtAggregateCallbackFunction cb, void* userData);
95  virtual void removePostUpdateCallback(
96  DtAggregateCallbackFunction cb, void* userData);
97 
99  virtual const DtBaseHashKey& hashKey() const;
100 
102  virtual DtString idString() const;
103 
106  virtual void processAggregateState(const DtAggregateStatePdu& pdu);
107 
108 public:
109 
111  static void setStateRepCreator(DtStateRepCreator creator);
112  static DtStateRepCreator stateRepCreator(void);
113 
114 protected:
115 
118 
121 
122 protected:
123 
125  DtAggregateStateRepository* myAggregateStateRep;
126  DtAggregateStateDecoder* myAggregateDecoder;
127  DtEntityIdentifierHashKey myHashKey;
128 
129 protected:
130 
131  static DtStateRepCreator theStateRepCreator;
132 
133 };
134 
135 #endif
136 #endif
137 
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:58
#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:195
DtObjectId myId
Definition: reflectedObjectHLA.h:181
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:29
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 Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)