VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedRunwayDIS.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 <vlutil/vlMachineTypes.h>
11 #include <vlutil/vlHashKeys.h>
12 #include <vl/reflectedObjectDIS.h>
14 #include <vl/runwayPdu.h>
16 
17 class DtExerciseConn;
18 
20 class DtRunwayDecoder;
21 class DtReflectedRunway;
22 
23 
24 typedef void (*DtRunwayStateCallbackFunction)(
25  DtReflectedRunway* obj, void* userData);
26 
27 
29 {
30 public:
31 
33  typedef DtRunwayStateRepository* (*DtStateRepCreator)();
34 
35 public:
36 
39 
41  virtual ~DtReflectedRunway();
42 
43 private:
46 
49 public:
50 
53  virtual DtRunwayStateRepository* runwayStateRep() const;
54 
56  virtual DtRunwayStateRepository* rsr() const;
57 
61  virtual DtStateRepository* stateRep() const;
62 
65  virtual DtRunwayDecoder* decoder();
66 
69  virtual const DtGlobalObjectDesignator& globalId() const;
70 
72  virtual DtReflectedRunway* next() const;
73  virtual DtReflectedRunway* prev() const;
74 
76  virtual DtReflectedRunway* wrapNext() const;
77  virtual DtReflectedRunway* wrapPrev() const;
78 
80  virtual void addPostUpdateCallback(
81  DtRunwayStateCallbackFunction cb, void* userData);
82  virtual void removePostUpdateCallback(
83  DtRunwayStateCallbackFunction cb, void* userData);
84 
86  virtual void setHashKey(const DtEntityIdentifier& uniqueVal);
87 
90  virtual const DtBaseHashKey& hashKey() const;
91 
93  virtual DtString idString() const;
94 
95 
97  virtual void processStateMessage(const DtStateMsg& msg);
98 
101  virtual void processRunwayState(const DtRunwayPdu& pdu);
102 
104  virtual void setRunwayStateRep(DtRunwayStateRepository* rsr);
105 
106 public:
107 
109  static void setStateRepCreator(DtStateRepCreator creator);
110  static DtStateRepCreator stateRepCreator(void);
111 
112 protected:
113 
114  static DtStateRepCreator theStateRepCreator;
115  DtEntityIdentifierHashKey myHashKey;
118 };
119 
120 
121 
122 #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
#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
Instances of DtReflectedRunway are used to represent a simulated HLAobjectRoot.Runway object reflecte...
Definition: reflectedRunwayHLA.h:31
This file declares DtEntityIdentifierHashKey.
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
Instances of DtRunwayDecoder are used to decode data from the network into DtRunwayStateRepository ob...
Definition: runwayDecoderHLA.h:23
This file declares DtBaseHashKey.
DtStateRepository * myStateRep
Definition: reflectedObjectHLA.h:180
Instances of DtRunwayStateRepository are used to store state data for runway objects.
Definition: runwayStateRepository.h:19
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 Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)