VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reflectedObjectLists.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <vl/reflectedEmitterSystemList.h>
10 #include <vl/reflectedObjectList.h>
12 #include <vl/reflectedActiveSonarList.h>
14 #include <vl/reflectedPropulsionNoiseList.h>
15 #include <vl/reflectedIffList.h>
22 #include <vl/reflectedDesignatorList.h>
23 #include <vl/reflectedPropulsionNoiseList.h>
24 #include <vl/reflectedRadioTransmitterList.h>
25 #include <vl/reflectedRadioReceiverList.h>
26 #include <vl/reflectedIffList.h>
27 
28 #include <vl/reflectedLandSurfaceList.h>
29 #include <vl/reflectedSubsurfaceLayerList.h>
30 #include <vl/reflectedWaterSurfaceList.h>
31 #include <vl/reflectedTroposphereLayerList.h>
32 #include <vl/reflectedTimeAndDateList.h>
33 #include <vl/reflectedWindCorridorList.h>
34 #include <vl/reflectedTurbulenceLayerList.h>
35 
36 #include <vl/reflectedAerodromeList.h>
37 
40 class DtReflectedActiveSonarList;
41 class DtReflectedPropulsionNoiseList;
42 class DtReflectedIffList;
46 class DtReflectedRadioReceiverList;
47 class DtExerciseConn;
48 
49 #if DtHLA
50 namespace makVrfVrlinkExtToolkit
51 {
52  class DtReflectedExtendedAttributesObjectList;
53 }
54 #endif
55 
56 namespace makVrf
57 {
59  {
60  DiscoveryCondition() : fcn(nullptr), userData(nullptr) {};
61  void clear() { fcn = nullptr; userData = nullptr; };
62  DtDiscoveryCondition fcn;
63  void* userData;
64  };
65 
66  template <typename T_ReflectedList>
68  {
71 
72 #if DtHLA
73 #if DtHLA_1516
74  DtReflectedObject* lookup(const RTI::ObjectInstanceHandle& handle) const { return reflectedList->lookup(handle); };
75  DtReflectedObject* lookupObj(const DtGlobalObjectDesignator& handle) const { return reflectedList->lookupObj(handle); };
76 #endif
77 #else
78 #if DtHLA
79  DtReflectedObject* lookupObj(const DtGlobalObjectDesignator& handle) const { return reflectedList->lookupObj(handle.string()); };
80 #else
81  DtReflectedObject* lookupObj(const DtGlobalObjectDesignator& handle) const { return reflectedList->lookup(handle.string()); };
82 #endif
83 #endif
84 
85  const T_ReflectedList* operator ->() const { return reflectedList; };
86  const T_ReflectedList* operator *() const { return reflectedList; };
88  bool createdLocally = false;
90 
92  {
93  public:
94  ReflectedObjectList(DtExerciseConn* exConn) : T_ReflectedList(exConn) {};
95 
96  DtDiscoveryCondition discoveryCondition() const { return T_ReflectedList::myDiscoveryCondition; };
97  void* discoveryConditionData() const { return T_ReflectedList::myDiscoveryConditionParameter; };
98  };
99 
100  void backup()
101  {
102  if (reflectedList)
103  {
104  existingDiscoveryCondition.fcn = ((ReflectedObjectList*)reflectedList)->discoveryCondition();
105  existingDiscoveryCondition.userData = ((ReflectedObjectList*)reflectedList)->discoveryConditionData();
106  }
107  }
108 
110  {
112  createdLocally = false;
113 
114  return *this;
115  }
116 
117  void create(DtExerciseConn* conn)
118  {
119  reflectedList = new T_ReflectedList(conn);
120  createdLocally = true;
121  }
122 
123  bool operator==(const DtReflectedListInformation& rhs) const
124  {
125  return ((rhs.createdLocally == createdLocally) &&
126  (rhs.reflectedList == reflectedList));
127  }
128 
129  bool operator!=(const DtReflectedListInformation& rhs) const
130  {
131  return !(*this == rhs);
132  }
133 
134  void cleanup()
135  {
136  if (createdLocally)
137  {
138  delete reflectedList;
139  reflectedList = nullptr;
140  createdLocally = false;
141  }
142  else if (reflectedList)
143  {
146  }
147  }
148 
149 #if DtDIS
150  void setTimeoutInterval(int timeout)
151  {
152  if (reflectedList)
153  {
154  reflectedList->setTimeoutInterval(timeout);
155  }
156  }
157 
158  void setTimeoutProcessing(bool b)
159  {
160  if (reflectedList)
161  {
162  reflectedList->setTimeoutProcessing(b);
163  }
164  }
165 #endif
166 #if DtHLA
168  {
169  if (reflectedList)
170  {
171  reflectedList->checkDiscoveryConditionForWaitList();
172  }
173  }
174 #endif
175  };
176 
178  {
202  #if DtHLA
204  #endif
205 
206 #if DtDIS
207  void setTimeoutInterval(int timeout)
208  {
209  reflectedEntitiesList.setTimeoutInterval(timeout);
210  reflectedAerodromesList.setTimeoutInterval(timeout);
211  reflectedAggregatesList.setTimeoutInterval(timeout);
212  reflectedEnvironmentalsList.setTimeoutInterval(timeout);
213  reflectedDesignatorsList.setTimeoutInterval(timeout);
214  reflectedActiveSonarList.setTimeoutInterval(timeout);
215  reflectedPropulsionNoiseList.setTimeoutInterval(timeout);
216  reflectedRadioTransmitterList.setTimeoutInterval(timeout);
217  reflectedNavAidTransmitterList.setTimeoutInterval(timeout);
218  reflectedRadioReceiverList.setTimeoutInterval(timeout);
219  reflectedRadioReceiverList.setTimeoutInterval(timeout);
220  reflectedDynamicTerrainList.setTimeoutInterval(timeout);
221  reflectedIffList.setTimeoutInterval(timeout);
222  reflectedEmitterSystemList.setTimeoutInterval(timeout);
223  }
224 
226  {
227  reflectedEntitiesList.setTimeoutProcessing(!b);
228  reflectedAerodromesList.setTimeoutProcessing(!b);
229  reflectedAggregatesList.setTimeoutProcessing(!b);
230  reflectedEnvironmentalsList.setTimeoutProcessing(!b);
231  reflectedDesignatorsList.setTimeoutProcessing(!b);
232  reflectedActiveSonarList.setTimeoutProcessing(!b);
233  reflectedPropulsionNoiseList.setTimeoutProcessing(!b);
234  reflectedRadioTransmitterList.setTimeoutProcessing(!b);
235  reflectedNavAidTransmitterList.setTimeoutProcessing(!b);
236  reflectedRadioReceiverList.setTimeoutProcessing(!b);
237  reflectedRadioReceiverList.setTimeoutProcessing(!b);
238  reflectedDynamicTerrainList.setTimeoutProcessing(!b);
239  reflectedIffList.setTimeoutProcessing(!b);
240  reflectedEmitterSystemList.setTimeoutProcessing(!b);
241  }
242 #endif
243 #if DtHLA
245  {
246  reflectedEntitiesList.checkDiscoveryConditionForWaitList();
247  reflectedAerodromesList.checkDiscoveryConditionForWaitList();
248  reflectedAggregatesList.checkDiscoveryConditionForWaitList();
249  reflectedEnvironmentalsList.checkDiscoveryConditionForWaitList();
250  reflectedDesignatorsList.checkDiscoveryConditionForWaitList();
251  reflectedActiveSonarList.checkDiscoveryConditionForWaitList();
252  reflectedPropulsionNoiseList.checkDiscoveryConditionForWaitList();
253  reflectedRadioTransmitterList.checkDiscoveryConditionForWaitList();
254  reflectedNavAidTransmitterList.checkDiscoveryConditionForWaitList();
255  reflectedRadioReceiverList.checkDiscoveryConditionForWaitList();
256  reflectedRadioReceiverList.checkDiscoveryConditionForWaitList();
257  reflectedDynamicTerrainList.checkDiscoveryConditionForWaitList();
258  reflectedIffList.checkDiscoveryConditionForWaitList();
259  reflectedEmitterSystemList.checkDiscoveryConditionForWaitList();
260  }
261 #endif
262  };
263 }
Contains the DtReflectedExtEntityList class declaration.
DtReflectedListInformation< DtReflectedExtEntityList > reflectedEntitiesList
Definition: reflectedObjectLists.h:179
DtReflectedListInformation< DtReflectedTimeAndDateList > reflectedTimeAndDateList
Definition: reflectedObjectLists.h:196
DtReflectedListInformation< DtReflectedActiveSonarList > reflectedActiveSonarList
Definition: reflectedObjectLists.h:185
T_ReflectedList * operator*()
Definition: reflectedObjectLists.h:70
DtReflectedListInformation< DtReflectedSearchLightList > reflectedSearchLightList
Definition: reflectedObjectLists.h:199
void cleanup()
Definition: reflectedObjectLists.h:134
DtReflectedListInformation< DtReflectedSensorFieldOfViewList > reflectedSensorFieldOfViewList
Definition: reflectedObjectLists.h:198
ReflectedObjectList(DtExerciseConn *exConn)
Definition: reflectedObjectLists.h:94
This file provides a protocol independent include file for the class DtReflectedNavAidList.
DtReflectedListInformation< DtReflectedNavAidList > reflectedNavAidTransmitterList
Definition: reflectedObjectLists.h:188
T_ReflectedList * operator->()
Definition: reflectedObjectLists.h:69
DtReflectedListInformation< DtReflectedDesignatorList > reflectedDesignatorsList
Definition: reflectedObjectLists.h:184
DtReflectedListInformation< DtReflectedLaserLightList > reflectedLaserLightList
Definition: reflectedObjectLists.h:200
Instances of this class provide a protocol independent interface to a list of DynamicTerrain in a DIS...
Definition: reflectedDynamicTerrainListDIS.h:24
This file provides a protocol independent include file for the class DtReflectedDynamicTerrainList.
bool createdLocally
Definition: reflectedObjectLists.h:88
DtReflectedListInformation< DtReflectedPropulsionNoiseList > reflectedPropulsionNoiseList
Definition: reflectedObjectLists.h:186
DtReflectedListInformation< DtReflectedIffList > reflectedIffList
Definition: reflectedObjectLists.h:191
bool operator!=(const DtReflectedListInformation &rhs) const
Definition: reflectedObjectLists.h:129
Contains the DtReflectedExtAggregateList class declaration.
void setDisableTimeoutProcessing(bool b)
Definition: reflectedObjectLists.h:225
Definition: reflectedObjectLists.h:67
DiscoveryCondition existingDiscoveryCondition
Definition: reflectedObjectLists.h:89
DiscoveryCondition()
Definition: reflectedObjectLists.h:60
DtReflectedListInformation< DtReflectedLandSurfaceList > reflectedLandSurfaceList
Definition: reflectedObjectLists.h:192
bool operator==(const DtReflectedListInformation &rhs) const
Definition: reflectedObjectLists.h:123
DtReflectedListInformation< DtReflectedEmitterSystemList > reflectedEmitterSystemList
Definition: reflectedObjectLists.h:183
T_ReflectedList * reflectedList
Definition: reflectedObjectLists.h:87
class DtReflectedNavAidList:
Definition: reflectedNavAidListDIS.h:19
void setTimeoutInterval(int timeout)
Definition: reflectedObjectLists.h:207
DtReflectedListInformation< DtReflectedRadioReceiverList > reflectedRadioReceiverList
Definition: reflectedObjectLists.h:189
DtReflectedListInformation< DtReflectedAggregateList > reflectedAggregatesList
Definition: reflectedObjectLists.h:180
DtReflectedListInformation< DtReflectedEnvironmentProcessList > reflectedEnvironmentalsList
Definition: reflectedObjectLists.h:181
DtReflectedListInformation< DtReflectedWindCorridorList > reflectedWindCorridorList
Definition: reflectedObjectLists.h:197
DtReflectedListInformation< DtReflectedTroposphereLayerList > reflectedTroposphereLayerList
Definition: reflectedObjectLists.h:195
Contains the DtReflectedControlObjectList class declaration.
void backup()
Definition: reflectedObjectLists.h:100
This file provides a protocol independent include file for the class DtReflectedSensorFieldOfViewList...
DtReflectedListInformation< DtReflectedRadioTransmitterList > reflectedRadioTransmitterList
Definition: reflectedObjectLists.h:187
DtReflectedListInformation< DtReflectedDynamicTerrainList > reflectedDynamicTerrainList
Definition: reflectedObjectLists.h:190
This file provides a protocol independent include file for the class DtReflectedSearchLightList.
void checkDiscoveryConditionForWaitList()
Definition: reflectedObjectLists.h:167
void * userData
Definition: reflectedObjectLists.h:63
void clear()
Definition: reflectedObjectLists.h:61
DtDiscoveryCondition fcn
Definition: reflectedObjectLists.h:61
DtReflectedListInformation< DtReflectedAerodromeList > reflectedAerodromesList
Definition: reflectedObjectLists.h:182
void create(DtExerciseConn *conn)
Definition: reflectedObjectLists.h:117
void * discoveryConditionData() const
Definition: reflectedObjectLists.h:97
Definition: reflectedObjectLists.h:91
DtReflectedListInformation< DtReflectedWaterSurfaceList > reflectedWaterSurfaceList
Definition: reflectedObjectLists.h:194
DtReflectedListInformation< DtReflectedSubsurfaceLayerList > reflectedSubsurfaceLayerList
Definition: reflectedObjectLists.h:193
DtReflectedListInformation< makVrfVrlinkExtToolkit::DtReflectedExtendedAttributesObjectList > reflectedExtendedAttributesObjectList
Definition: reflectedObjectLists.h:203
DtReflectedListInformation & operator=(const DtReflectedListInformation &rhs)
Definition: reflectedObjectLists.h:109
void setTimeoutProcessing(bool b)
Definition: reflectedObjectLists.h:158
Definition: reflectedObjectLists.h:177
void checkDiscoveryConditionForWaitList()
Definition: reflectedObjectLists.h:244
Definition: reflectedObjectLists.h:58
This file provides a protocol independent include file for the class DtReflectedLaserLightList.
DtReflectedListInformation< DtReflectedTurbulenceLayerList > reflectedTurbulenceLayerList
Definition: reflectedObjectLists.h:201
void setTimeoutInterval(int timeout)
Definition: reflectedObjectLists.h:150
DtDiscoveryCondition discoveryCondition() const
Definition: reflectedObjectLists.h:96

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)