VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedSubsurfaceLayerDIS.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #if DtDIS
9 
10 #include <vl/reflectedObjectDIS.h>
12 #include <vl/metocPdu.h>
13 #include <vlutil/vlMachineTypes.h>
14 #include <vlutil/vlHashKeys.h>
16 
17 class DtExerciseConn;
18 
22 
23 
25 typedef void (*DtSubsurfaceLayerCallbackFunction)(
26  DtReflectedSubsurfaceLayer* obj, void* userData);
27 
30 {
31 public:
33  typedef DtSubsurfaceLayerStateRepository* (*DtStateRepCreator)();
34 
35 public:
38 
40  virtual ~DtReflectedSubsurfaceLayer();
41 
42 private:
45 
48 
49 public:
52  virtual DtSubsurfaceLayerStateRepository* subsurfaceLayerStateRep() const;
53 
55  virtual DtSubsurfaceLayerStateRepository* ssr() const;
56 
60  virtual DtStateRepository* stateRep() const;
61 
65 
68  virtual const DtGlobalObjectDesignator& globalId() const;
69 
71  virtual DtReflectedSubsurfaceLayer* next() const;
72  virtual DtReflectedSubsurfaceLayer* prev() const;
73 
75  virtual DtReflectedSubsurfaceLayer* wrapNext() const;
76  virtual DtReflectedSubsurfaceLayer* wrapPrev() const;
77 
79  virtual void addPostUpdateCallback(
80  DtSubsurfaceLayerCallbackFunction cb, void* userData);
81  virtual void removePostUpdateCallback(
82  DtSubsurfaceLayerCallbackFunction cb, void* userData);
83 
85  virtual void setHashKey(const DtEntityIdentifier& uniqueVal);
86 
89  virtual const DtBaseHashKey& hashKey() const;
90 
92  virtual DtString idString() const;
93 
95  virtual void processStateMessage(const DtStateMsg& msg);
96 
99  virtual void processSubsurfaceLayerState(const DtMetocPdu& pdu);
100 
101 public:
103  static void setStateRepCreator(DtStateRepCreator creator);
104  static DtStateRepCreator stateRepCreator(void);
105 
106 protected:
107  static DtStateRepCreator theStateRepCreator;
108  DtEntityIdentifierHashKey myHashKey;
111 
112 };
113 
114 #endif
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&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
Instances of DtSubsurfaceLayerDecoder are used to decode data from the network into DtSubsurfaceLayer...
Definition: subsurfaceLayerDecoderHLA.h:24
#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
This file declares DtEntityIdentifierHashKey.
Instances of DtSubsurfaceLayerStateRepository are used to store state data for METOC_Root.EnvironmentCondition.SubsurfaceLayer objects.
Definition: subsurfaceLayerStateRepository.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
void(* DtSubsurfaceLayerCallbackFunction)(DtReflectedSubsurfaceLayer *obj, void *userData)
Signature of the callback function that takes a DtReflectedSubsurfaceLayer and user data...
Definition: reflectedSubsurfaceLayerHLA.h:25
Contains the DtMetocPdu class declaration.
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtReflectedSubsurfaceLayer are used to represent a simulated HLAobjectRoot.METOC_Root.EnvironmentCondition.SubsurfaceLayer object reflected across a network.
Definition: reflectedSubsurfaceLayerHLA.h:32
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
This file declares DtBaseHashKey.
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:180
Instances of DtString are used to represent strings.
Definition: vlString.h:29
class DtStateMsg:
Definition: stateMsgHLA.h:32
This file contains typedefs for machine dependant types.

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)