VR-Link API Documentation for DIS
 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 
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;
118 };
119 
120 
121 
122 #endif
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
virtual const DtBaseHashKey & hashKey() const =0
Get a hash key for this object.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
DtEntityIdentifierHashKey myHashKey
Definition: reflectedRunwayDIS.h:115
This file contains typedefs used to represent objects in a protocol neutral way.
DtRunwayStateRepository * myStateRep
Definition: reflectedRunwayDIS.h:116
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
Instances of DtRunwayPdu are used for DIS network packets which encode the DtAerodromeStateRepository...
Definition: runwayPdu.h:29
Definition: reflectedRunwayDIS.h:28
void(* DtRunwayStateCallbackFunction)(DtReflectedRunway *obj, void *userData)
Definition: reflectedRunwayDIS.h:24
This file declares DtEntityIdentifierHashKey.
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
virtual const DtGlobalObjectDesignator & globalId() const =0
Get the Global ID for this object.
void * prev() const
Definition: vlList.h:277
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
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
static DtStateRepCreator theStateRepCreator
Definition: reflectedRunwayDIS.h:114
Instances of DtRunwayDecoder decode data from Runway PDUs to update a DtRunwayStateRepository.
Definition: runwayDecoderDIS.h:25
DtRunwayDecoder * myDecoder
Definition: reflectedRunwayDIS.h:117
This file declares DtBaseHashKey.
Instances of DtRunwayStateRepository are used to store state data for runway objects.
Definition: runwayStateRepository.h:19
virtual void processStateMessage(const DtStateMsg &msg)
Process an entity state PDU.
virtual DtString idString() const =0
Get a string identification of this object.
void * wrapPrev() const
Definition: vlList.h:288
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual DtStateRepository * stateRep() const =0
Returns a pointer to the StateRepository - through which you can inspect current state information...
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
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)