VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedGriddedDataDIS.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 DtReflectedGriddedData_H_
11 #define DtReflectedGriddedData_H_
12 
13 #if DtDIS
14 
15 #include "reflectedObjectDIS.h"
16 #include "griddedDataDecoderDIS.h"
17 #include "griddedDataPdu.h"
18 #include "globalObjectDesignator.h"
19 #include "objectIdHashKey.h"
20 
24 
29 typedef void (*DtGriddedDataCallbackFunction) (
30  DtReflectedGriddedData* obj, void* userData);
31 
36 {
37 public:
38 
40  typedef DtGriddedDataRepository* (*DtStateRepCreator)();
41 
42 public:
43 
46  DtExerciseConn* conn,
47  const DtEntityIdentifier& id,
48  const DtEntityType& type);
49 
51  virtual ~DtReflectedGriddedData();
52 
55  virtual DtGriddedDataRepository* griddedDataStateRep() const;
56 
58  virtual DtGriddedDataRepository* gdsr() const;
59 
61  virtual DtStateRepository* stateRep() const;
62 
65  virtual DtGriddedDataDecoder* 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 
82  virtual void processStateMessage(const DtStateMsg& msg);
83 
86  virtual DtReflectedGriddedData* next() const;
87  virtual DtReflectedGriddedData* prev() const;
88 
90  virtual DtReflectedGriddedData* wrapNext() const;
91  virtual DtReflectedGriddedData* wrapPrev() const;
92 
94  virtual void addPostUpdateCallback(
95  DtGriddedDataCallbackFunction cb, void* userData);
96  virtual void removePostUpdateCallback(
97  DtGriddedDataCallbackFunction cb, void* userData);
98 
100  virtual const DtBaseHashKey& hashKey() const;
101 
103  virtual DtString idString() const;
104 
107  virtual void processGriddedData(const DtGriddedDataPdu& pdu);
108 
109 public:
110 
112  static void setStateRepCreator(DtStateRepCreator creator);
113  static DtStateRepCreator stateRepCreator(void);
114 
115 protected:
116 
117  static DtStateRepCreator theStateRepCreator;
118 
119 protected:
120 
123 
126 
127 protected:
128 
132  DtEntityIdentifierHashKey myHashKey;
133 };
134 
135 #endif
136 #endif
137 
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
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:60
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void(* DtGriddedDataCallbackFunction)(DtReflectedGriddedData *obj, void *userData)
Definition: reflectedGriddedDataHLA.h:24
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
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
Contains the DtGriddedDataPdu class declaration.
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 DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:180
Instances of DtGriddedDataPdu are used to communicate environmental data defined on a grid...
Definition: griddedDataPdu.h:41
DtObjectId instances are used to represent RTI::ObjectInstances in VR-Link.
Definition: objectId.h:38
class DtReflectedGriddedData:
Definition: reflectedGriddedDataHLA.h:32
class DtGriddedDataDecoder:
Definition: griddedDataDecoderHLA.h:35
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
DtEntityType is used to represent the type an entity object.
Definition: entityType.h:26
Instances of DtGriddedDataRepository are used to communicate environmental data defined on a grid...
Definition: griddedDataRepository.h:23

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)