MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrHlaSimCommandFactory.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 #include <lgrCmds/lgrCmds.h>
13 #include <lgrCmds/lgrCommand.h>
14 #include <lgrUtil/collectors.h>
16 
17 #include <utility>
18 #include <vlutil/vlString.h>
19 
20 namespace MAKLogger
21 {
22 
23  class DtCommandDefinition;
24  class DtLgrDisEntityTypeManager;
25 
29  {
30 
31  public:
32 
35 
37  static const DtLgrCommandId theBaseCommandId = DtLgrSimCommandFactory::theLastCommandId;
38 
40 
41 
42  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 1, SetConnectionParametersHLA,
43  (const DtString& federateType, const DtString& federationName, const DtString& fedFile,
44  bool ignoreAdvisories, double fomVersion, int fomRevision, bool useMatrexFomMapper,
45  const DtString& matrexFomMapperData,
46  const DtString& fomMapper, const DtString& fomMapperData, bool useEmptyFomMapper, bool noRtiCompilerCheck,
47  const DtString& exConnConfigFile, bool useExConnConfig),
48  (const DtCommand& command, DtString& federateName, DtString& federationName,
49  DtString& fedFile, bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
50  bool& useMatrexFomMapper, DtString& matrexFomMapperData, DtString& fomMapper,
51  DtString& fomMapperData, bool& useEmptyFomMapper, bool& noRtiCompilerCheck,
52  DtString& exConnConfigFile, bool& useExConnConfig))
53 
54  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 2, SetConnectionParametersHLAe,
55  (const DtString& federateName, const DtString& federateType, const DtString& federationName,
56  const DtString& fedFile, const std::vector<DtString>& fomModules, const DtString& mim,
57  bool ignoreAdvisories, double fomVersion, int fomRevision, bool useMatrexFomMapper,
58  const DtString& matrexFomMapperData, const DtString& fomMapper,
59  const DtString& fomMapperData, bool useEmptyFomMapper, bool noRtiCompilerCheck,
60  const DtString& exConnConfigFile, bool useExConnConfig),
61  (const DtCommand& command, DtString& federateName, DtString& federateType,
62  DtString& federationName, DtString& fedFile, std::vector<DtString>& fomModules,
63  DtString& mim, bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
64  bool& useMatrexFomMapper, DtString& matrexFomMapperData, DtString& fomMapper,
65  DtString& fomMapperData, bool& useEmptyFomMapper, bool& noRtiCompilerCheck,
66  DtString& exConnConfigFile, bool& useExConnConfig))
67 
68  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 3, SetTimeManagement,
69  (bool timeConstrainedRecording, bool timeConstrainedPlayback, bool timeRegulatingRecording,
70  bool timeRegulatingPlayback, double lookahead),
71  (const DtCommand& command, bool& timeConstrainedRecording, bool& timeConstrainedPlayback,
72  bool& timeRegulatingRecording, bool& timeRegulatingPlayback, double& lookahead))
73 
74  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 4, SetIgnoreAdvisories,
75  (bool ignore),
76  (const DtCommand& command, bool& ignore))
77 
78  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 5, SetPassiveSubscription,
79  (bool passive),
80  (const DtCommand& command, bool& passive))
81 
82  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 6, LoadSubscriptionListFile,
83  (const DtString& filename),
84  (const DtCommand& command, DtString& filename))
85 
86  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 7, SaveSubscriptionListFile,
87  (const DtString& filename),
88  (const DtCommand& command, DtString& filename))
89 
90  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 8, SetSubscriptionLists,
91  (const std::vector<DtString>& objectClasses, const std::vector<DtString>& interactionClasses),
92  (const DtCommand& command, std::vector<DtString>& objectClasses,
93  std::vector<DtString>& interactionClasses))
94 
95  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 9, SetDisableTimeManagementTest,
96  (bool disableTesting),
97  (const DtCommand& command, bool& disableTesting))
98 
99  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 10, SetDynamicNamePrefix,
100  (const DtString& prefix),
101  (const DtCommand& command, DtString& prefix))
102 
103  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 11, LoadPublicationListFile,
104  (const DtString& filename),
105  (const DtCommand& command, DtString& filename))
106 
107  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 12, SetDrainInput,
108  (double maxTime, double minTime),
109  (const DtCommand& command, double& maxTime, double& minTime))
110 
111  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 13, SetDdmParameters,
112  (bool enableDdm, const DtString& playbackMode, const DtString& subscribeMode,
113  bool playbackDynamicAssociation, bool playbackDynamicExtents,
114  bool allowPlaybackWithoutRegions, bool recordConveyedRegions, bool requestUpdates,
115  bool subscribeUnspecifiedAttributes),
116  (const DtCommand& command, bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
117  bool& playbackDynamicAssociation, bool& playbackDynamicExtents,
118  bool& allowPlaybackWithoutRegions, bool& recordConveyedRegions, bool& requestUpdates,
119  bool& subscribeUnspecifiedAttributes))
120 
121  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 14, AddTrafficAnalyzerFilter,
122  (void* filter),
123  (const DtCommand& command, void*& filter))
124 
125  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 15, RemoveTrafficAnalyzerFilter,
126  (void* filter),
127  (const DtCommand& command, void*& filter))
128 
129  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 16, EnableTrafficAnalyzer,
130  (bool enable),
131  (const DtCommand& command, bool& enable))
132 
133  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 17, SetEntityTypeManager,
134  ( const DtBase64Data&),
135  ( const DtCommand& command, DtBase64Data&))
136 
137  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 18, SetCommonEntityTypes,
138  ( const std::vector<DtString>& types),
139  ( const DtCommand& command,std::vector<DtString>& types))
140 
141  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 19, FilterEntityTypes,
142  ( const std::vector<DtString>& types),
143  ( const DtCommand& command,std::vector<DtString>& types))
144 
145  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 20, FilterObjectNames,
146  ( const std::vector<DtString>& names),
147  ( const DtCommand& command,std::vector<DtString>& names))
148 
149  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 21, SetCommonObjectNames,
150  ( const std::vector<DtString>& names),
151  ( const DtCommand& command,std::vector<DtString>& names))
152 
153  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 22, SetFilterMomSubscription,
154  (bool enable),
155  (const DtCommand& command, bool& enable))
156 
157  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 23, SetRequestUpdates,
158  (bool enable),
159  (const DtCommand& command, bool& enable))
160 
161  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 24, SetSaveTrafficAnalyzerConfiguration,
162  (bool enable),
163  (const DtCommand& command, bool& enable))
164 
165  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 25, SetSendOnlyUpdatedValues,
166  (bool enable),
167  (const DtCommand& command, bool& enable))
168 
169  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 26, SetSiteApp,
170  (int site, int host),
171  (const DtCommand& command, int& site, int& host))
172 
174 
177  static const DtLgrCommandId theLastCommandId = theBaseCommandId + 100;
178 
180  static const DtLgrCommandId theBaseResponseId = DtLgrSimCommandFactory::theLastResponseId;
181 
183 
185  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 1,ConnectionParametersHLAChanged,
186  (const DtString& federateType, const DtString& federationName, const DtString& fedFile,
187  bool ignoreAdvisories, double fomVersion, int fomRevision, bool useMatrexFomMapper,
188  const DtString& matrexFomMapperData, const DtString& fomMapper,
189  const DtString& fomMapperData, bool useEmptyFomMapper, bool noRtiCompilerCheck,
190  const DtString& exConnConfigFile, bool useExConnConfig),
191  (DtResponse response, DtString& federateType, DtString& federationName, DtString& fedFile,
192  bool& ignoreAdvisories, double& fomVersion, int& fomRevision, bool& useMatrexFomMapper,
193  DtString& matrexFomMapperData, DtString& fomMapper, DtString& fomMapperData,
194  bool& useEmptyFomMapper, bool& noRtiCompilerCheck,
195  DtString& exConnConfigFile, bool& useExConnConfig))
196 
197  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 2,ConnectionParametersHLAeChanged,
198  (const DtString& federateName, const DtString& federateType, const DtString& federationName,
199  const DtString& fedFile, const std::vector<DtString>& fomModules, const DtString& mim,
200  bool ignoreAdvisories, double fomVersion, int fomRevision, bool useMatrexFomMapper,
201  const DtString& matrexFomMapperData, const DtString& fomMapper,
202  const DtString& fomMapperData, bool useEmptyFomMapper, bool noRtiCompilerCheck,
203  const DtString& exConnConfigFile, bool useExConnConfig),
204  (DtResponse response, DtString& federateName, DtString& federateType,
205  DtString& federationName, DtString& fedFile, std::vector<DtString>& fomModules,
206  DtString& mim, bool& ignoreAdvisories, double& fomVersion, int& fomRevision,
207  bool& useMatrexFomMapper, DtString& matrexFomMapperData, DtString& fomMapper,
208  DtString& fomMapperData, bool& useEmptyFomMapper, bool& noRtiCompilerCheck,
209  DtString& exConnConfigFile, bool& useExConnConfig))
210 
211  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 3,FomChanged,
212  (const DtBase64Data& data),
213  (DtResponse response, DtBase64Data& data))
214 
215  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 4,SubscriptionListsChanged,
216  (const std::vector<DtString>& objectClasses, const std::vector<DtString>& interactionClasses),
217  (DtResponse response, std::vector<DtString>& objectClasses,
218  std::vector<DtString>& interactionClasses))
219 
220  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 5,TimeManagementSettingsChanged,
221  (bool timeConstrainedRecording, bool timeConstrainedPlayback, bool timeRegulatingRecording,
222  bool timeRegulatingPlayback, double lookahead),
223  (DtResponse response, bool& timeConstrainedRecording, bool& timeConstrainedPlayback,
224  bool& timeRegulatingRecording, bool& timeRegulatingPlayback, double& lookahead))
225 
226  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 6,TimeManagementEnabled,
227  (bool enabled,bool constrained,bool regulating),
228  (DtResponse response, bool& enabled, bool& constrained, bool& regulating))
229 
230  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 7,DrainInputSettingsChanged,
231  (double maxTime, double minTime),
232  (DtResponse response, double& maxTime, double& minTime))
233 
234  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 8,DdmParameterSettingsChanged,
235  (bool enableDdm, const DtString& playbackMode, const DtString& subscribeMode,
236  bool playbackDynamicAssociation, bool playbackDynamicExtents,
237  bool allowPlaybackWithoutRegions, bool recordConveyedRegions, bool requestUpdates,
238  bool subscribeUnspecifiedAttributes),
239  (DtResponse response, bool& enableDdm, DtString& playbackMode, DtString& subscribeMode,
240  bool& playbackDynamicAssociation, bool& playbackDynamicExtents,
241  bool& allowPlaybackWithoutRegions, bool& recordConveyedRegions, bool& requestUpdates,
242  bool& subscribeUnspecifiedAttributes))
243 
244  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 9,IgnoreAdvisoriesChanged,
245  (bool enabled),
246  (DtResponse response, bool& enabled))
247 
248  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 10,TrafficAnalyzerChanged,
249  (bool enabled),
250  (DtResponse response, bool& enabled))
251 
252  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 11,EntityTypeManagerChanged,
253  (const DtBase64Data& mgr),
254  (DtResponse command, DtBase64Data& mgr))
255 
256 
257  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 12,EntityIdFilterChanged,
258  (DtBase64Data& filter),
259  (DtResponse command, DtBase64Data& filter))
260 
261  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 13,RequestUpdatesChanged,
262  (bool enabled),
263  (DtResponse response, bool& enabled))
264 
265  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 14,SaveTrafficAnalyzerConfigurationChanged,
266  (bool enabled),
267  (DtResponse response, bool& enabled))
268 
269  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 15,SendOnlyUpdatedValuesChanged,
270  (bool enabled),
271  (DtResponse response, bool& enabled))
272 
273  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 16,PassiveSubscriptionChanged,
274  (bool enabled),
275  (DtResponse response, bool& enabled))
276 
277  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 17,SiteAppChanged,
278  (int site, int host),
279  (DtResponse response, int& site, int& host))
280 
282 
285  static const DtLgrCommandId theLastResponseId = theBaseResponseId - 100;
286 
288  static const char* commandToString(int commandId);
289 
291  static const char* responseToString(int responseId);
292 
294  static DtResponse createConnectedResponse();
296  static DtResponse createDisconnectedResponse();
297  static DtResponse createLostConnectionResponse(const DtString& reason);
298  static DtResponse createUnableToConnectResponse(const DtString& reason);
300 
301  };
302 
303 }
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:110
The command type structure.
Definition: lgrCommand.h:29
Factory for create HLA simulation commands.
Definition: lgrHlaSimCommandFactory.h:28
#define DT_FACTORY_COMMAND_EXT(commandId, commandName, createParams, decodeParams)
Utility Macros for declaring Command in Factory.
Definition: lgrCommand.h:184
Utility class to encoding and decoding binary data to base64 string suitable for storing in text file...
Definition: base64Data.h:21
Contains MAKLogger::DtLgrSimCommandFactory class.
#define DT_DLL_LGR_CMDS
Definition: lgrCmds.h:18
static DtLgrCommandType theCommandType
The command type for all HLA Simulation commands from this factory.
Definition: lgrHlaSimCommandFactory.h:34
Contains MAKLogger::DtLgrCommandType and MAKLogger::DtCommand classes.
#define DT_FACTORY_RESPONSE_EXT(responseId, responseName, createParams, decodeParams)
Utility Macros for declaring Response in Factory.
Definition: lgrCommand.h:199
Contains lgrCmds library definitions.
std::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:175
The factory responsible for creating simulation commands.
Definition: lgrSimCommandFactory.h:21
short DtLgrCommandId
Definition: lgrCommand.h:25

Document ID: Generated on Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)