VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aerodromePublisherDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2025 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
14 #include <vl/objectPublisherDIS.h>
15 
16 #include <vl/objectId.h>
17 #include <vlpi/entityIdentifier.h>
18 
19 
20 
22 class DtAerodromeEncoder;
23 class DtAerodomeDecoder;
24 class DtRunwayPublisher;
26 
27 typedef std::vector<DtRunwayPublisher*> DtRunwayPublisherList;
28 
32 {
33 public:
35  typedef DtAerodromeStateRepository* (*DtStateRepCreator)();
36 
37 public:
40  DtAerodromeStateRepository* stateRepToUse,
41  DtExerciseConn* conn,
42  const DtObjectId& id = DtObjectId::nullId());
43 
46  DtExerciseConn* conn,
47  const DtObjectId& id = DtObjectId::nullId());
48 
50  virtual ~DtAerodromePublisher();
51 
52 private:
55 
58  const DtAerodromePublisher& orig);
59 
60 public:
61 
64  virtual DtAerodromeStateRepository* aerodromeStateRep();
65 
67  virtual DtAerodromeStateRepository* asr();
68 
70  virtual bool tick();
71 
73  virtual void forceUpdate();
74 
76  virtual const DtObjectId& id() const;
77 
79  virtual const DtObjectId& localId() const;
80 
82  virtual const DtGlobalObjectDesignator& globalId() const;
83 
84 public:
86  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
87 
88 protected:
92  virtual void syncRunwayList();
93 
96  virtual bool publisherForRsr(DtRunwayStateRepository* rsr);
97 
100  virtual bool runwayStateRepForPublisher(DtRunwayPublisher* runwayPub);
101 
103  void sendFinalPdu();
104 
105 protected:
106  static DtStateRepCreator theStateRepCreator;
111 };
112 
114 {
116 }
117 
119 {
121 }
122 
123 
124 
125 #endif
Contains the DtEntityIdentifier class declaration.
Contains the DtObjectId class declaration.
DtStateRepository * myStateRep
Definition: objectPublisherDIS.h:193
static const DtEntityIdentifier & nullId()
Returns a reference to an instance of 0:0:0.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
DtAerodomeDecoder * myDecoder
Definition: aerodromePublisherDIS.h:108
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
std::vector< DtRunwayPublisher * > DtRunwayPublisherList
Definition: aerodromePublisherDIS.h:25
DtObjectId myId
Definition: aerodromePublisherDIS.h:107
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherDIS.h:36
virtual void forceUpdate()=0
For publisher to send PDU on next tick.
Instances of DtAerodromeDecoder decode data from Aerodrome PDUs to update a DtAerodromeStateRepositor...
Definition: aerodromeDecoderDIS.h:25
virtual const DtObjectId & id() const =0
The id is the same as the globalId, a DtEntityIdentifier unique to this object.
DtRunwayPublisherList myRunwayPubs
Definition: aerodromePublisherDIS.h:110
virtual DtAerodromeStateRepository * aerodromeStateRep()
Returns a pointer to the DtAerodromeStateRepository - through which you can set or inspect current st...
Definition: aerodromePublisherDIS.h:113
DtAerodromeEncoder * myEncoder
Definition: aerodromePublisherDIS.h:109
Instances of DtAerodromePublisher publish Aerodrome objects to the network.
Definition: aerodromePublisherDIS.h:31
Instances of DtAerodromeEncoder encode data from DtAerodromeStateRepository objects to the net struct...
Definition: aerodromeEncoderDIS.h:26
virtual const DtGlobalObjectDesignator & globalId() const =0
The entityIdentifier unique to this object.
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtObjectPublisher & operator=(const DtObjectPublisher &orig)
assignment operator – not implemented
Instances of DtRunwayStateRepository are used to store state data for runway objects.
Definition: runwayStateRepository.h:19
This class declares the DIS version of DtObjectPublisher.
virtual DtAerodromeStateRepository * asr()
Synonym for aerodromeStateRep().
Definition: aerodromePublisherDIS.h:118
static DtStateRepCreator theStateRepCreator
Definition: aerodromePublisherDIS.h:106
virtual bool tick()=0
Tick (update) this object.
virtual const DtObjectId & localId() const =0
The localId is the same as the globalId, a DtEntityIdentifier unique to this object.
Instances of DtRunwayPublisher publish Aerodrome objects to the network.
Definition: runwayPublisherDIS.h:27
Instances of DtAerodromeStateRepository are used to store state data for Aerodrome objects...
Definition: aerodromeStateRepository.h:25

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)