VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aerodromePublisherHLA.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2026 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
14 #include <vl/objectPublisherHLA.h>
16 #include <vl/runwayPublisherHLA.h>
17 
18 
21 typedef std::vector<DtRunwayPublisher*> DtRunwayPublisherList;
22 
28 {
29 public:
31  typedef DtAerodromeStateRepository* (*DtStateRepCreator)();
32 
35  typedef DtGlobalObjectDesignator (*DtRunwayNameChooser)(
36  DtAerodromePublisher& publisher,
37  const DtString runwayName,
38  void* userData);
39 
40 public:
43  DtAerodromeStateRepository* stateRepToUse,
44  DtExerciseConn* conn,
45  const char* name = 0,
46  const DtDDMRegionSet* regionSetToUse = 0);
47 
50  RTI::ObjectClassHandle h,
51  DtExerciseConn* conn,
52  const char* name = 0,
53  const DtDDMRegionSet* regionSetToUse = 0);
54 
57  DtExerciseConn* conn,
58  const char* name = 0,
59  const DtDDMRegionSet* regionSetToUse = 0);
60 
67 
71  virtual const char * objectClassName();
72 
74  virtual ~DtAerodromePublisher();
75 
79  virtual bool tick();
80 
81 private:
84 
87  const DtAerodromePublisher& orig);
88 
89 public:
90 
93  virtual DtAerodromeStateRepository* aerodromeStateRep();
94 
96  virtual DtAerodromeStateRepository* asr();
97 
99  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
100 
105  virtual void setRunwayNameChooser(DtRunwayNameChooser chooser, void* userData = nullptr);
106 
112  virtual DtString chooseRunwayName(DtRunwayStateRepository* rsr);
113 
114 protected:
115 
116 
120  virtual void syncRunwayList();
121 
124  virtual bool publisherForRsr(DtRunwayStateRepository* rsr);
125 
128  virtual bool runwayStateRepForPublisher(DtRunwayPublisher* runwayPub);
129 
130 protected:
131  static DtStateRepCreator theStateRepCreator;
133 
135  DtRunwayNameChooser myRunwayNameChooser;
136 
139 };
140 
142 {
144 }
145 
147 {
149 }
150 
151 
152 #endif
DtStateRepository * myStateRep
Definition: objectPublisherHLA.h:221
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
DtString DtGlobalObjectDesignator
In HLA a DtGlobalObjectDesignator is a DtString.
Definition: globalObjectDesignator.h:22
Instances of DtObjectPublisher are used for local or source simulations of objects, (i.e.
Definition: objectPublisherHLA.h:34
std::set< DtDDMRegionSP > DtDDMRegionSet
Definition: region13.h:34
DtRunwayPublisherList myRunwayPubs
Definition: aerodromePublisherHLA.h:132
void * myRunwayNameChooserUserData
Optional user data to pass to the runway name chooser.
Definition: aerodromePublisherHLA.h:138
virtual bool tick()
Tick (update) this object.
virtual DtAerodromeStateRepository * aerodromeStateRep()
Returns a pointer to the DtAerodromeStateRepository - through which you can set or inspect current st...
Definition: aerodromePublisherHLA.h:141
DtRunwayNameChooser myRunwayNameChooser
Optional function used to choose runway publisher names.
Definition: aerodromePublisherHLA.h:135
Instances of DtAerodromePublisher publish Aerodrome objects to the network.
Definition: aerodromePublisherHLA.h:27
std::vector< DtRunwayPublisher * > DtRunwayPublisherList
Definition: aerodromePublisherHLA.h:20
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
Contains the DtRunwayStateRepository class declaration.
Contains the DtRunwayPublisher class declaration.
virtual DtAerodromeStateRepository * asr()
Synonym for aerodromeStateRep().
Definition: aerodromePublisherHLA.h:146
static DtStateRepCreator theStateRepCreator
Definition: aerodromePublisherHLA.h:131
Instances of DtString are used to represent strings.
Definition: vlString.h:38
This file provides a declaration of the class DtObjectPublisher.
Instances of DtRunwayPublisher publish Runway objects to the network.
Definition: runwayPublisherHLA.h:23
class DtHlaObjectWithStateRep:
Definition: hlaObjectWithStateRep.h:28
Instances of DtAerodromeStateRepository are used to store state data for Aerodrome objects...
Definition: aerodromeStateRepository.h:25

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)