MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrDisSimCommandFactory.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 
11 #pragma once
12 
13 #include <lgrCmds/lgrCmds.h>
14 #include <lgrCmds/lgrCommand.h>
15 #include <lgrUtil/collectors.h>
17 
18 #include <utility>
19 #include <vlutil/vlString.h>
20 
21 namespace MAKLogger
22 {
23 
27  {
28  public:
29 
32 
34  static const DtLgrCommandId theBaseCommandId = DtLgrSimCommandFactory::theLastCommandId;
35 
37 
38 
39  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 1, SetConnectionParametersDIS,
40  (int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO, int sendBufferSize,
41  int recvBufferSize, int multicastTtl, const DtString& destAddrString,
42  const DtString& netmask, const DtString& deviceAddrString,
43  const std::vector<DtString>& mcastAddresses, const DtString& exConnConfigFile,
44  bool useExConnConfig ),
45  (const DtCommand& command, int& port, int& exerciseId, int& siteId, int& appNumber,
46  bool& useAsynchIO, int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
47  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
48  std::vector<DtString>& mcastAddresses, DtString& exConnConfigFile,
49  bool& useExConnConfig ))
50 
51  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 2, SetHeartbeatRate,( double rate ),
52  ( const DtCommand& command,double& rate ))
53 
54  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 3, SetTimeoutRate,
55  ( double rate ),
56  ( const DtCommand& command, double& rate ))
57 
58  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 4, SetDisDescription,
59  (const DtBase64Data& data),
60  ( const DtCommand& command,DtBase64Data& data))
61 
62  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 5, SetEntityTypeManager,
63  ( const DtBase64Data& data),
64  ( const DtCommand& command, DtBase64Data& data))
65 
66  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 6, SetCommonEntityTypes,
67  ( const std::vector<DtString>& types),
68  ( const DtCommand& command,std::vector<DtString>& types))
69 
70  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 7, AddCustomPDU,
71  ( const std::vector<DtString>& pduDesc),
72  ( const DtCommand& command,std::vector<DtString>& pduDesc))
73 
74  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 8, SetDrainInput,
75  (double maxTime, int numPdusToRead),
76  (const DtCommand& command, double& maxTime, int& numPdusToRead))
77 
78  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 9, FilterEntityTypes,
79  ( const std::vector<DtString>& types),
80  ( const DtCommand& command,std::vector<DtString>& types))
81 
82  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 10, FilterEntityIds,
83  ( const std::vector<DtString>& ids),
84  ( const DtCommand& command,std::vector<DtString>& ids))
85 
86  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 11, SetCommonEntityIds,
87  ( const std::vector<DtString>& ids),
88  ( const DtCommand& command,std::vector<DtString>& ids))
89 
90  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 12, SetDisVersion,
91  ( int version ),
92  ( const DtCommand& command,int& version ))
93 
95 
98  static const DtLgrCommandId theLastCommandId = theBaseCommandId + 100;
99 
101  static const DtLgrCommandId theBaseResponseId = DtLgrSimCommandFactory::theLastResponseId;
102 
104 
105 
106  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 1, HeartbeatRateChanged,
107  (double rate),
108  (DtResponse command,double& rate))
109 
110  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 2, TimeoutRateChanged,
111  (double rate),
112  (DtResponse command,double& rate))
113 
114  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 3, ConnectionParametersDISChanged,
115  (int port, int exerciseId, int siteId, int appNumber, bool useAsynchIO, int sendBufferSize,
116  int recvBufferSize, int multicastTtl, const DtString& destAddrString,
117  const DtString& netmask, const DtString& deviceAddrString,
118  const std::vector<DtString>& mcastAddresses, const DtString& exConnConfigFile,
119  bool useExConnConfig),
120  (DtResponse command, int& port, int& exerciseId, int& siteId, int& appNumber,
121  bool& useAsynchIO, int& sendBufferSize, int& recvBufferSize, int& multicastTtl,
122  DtString& destAddrString, DtString& netmask, DtString& deviceAddrString,
123  std::vector<DtString>& mcastAddresses, DtString& exConnConfigFile,
124  bool& useExConnConfig ))
125 
126  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 4, DisDescriptionChanged,
127  (const DtBase64Data& data),
128  (DtResponse command, DtBase64Data& data))
129 
130  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 5, EntityTypeManagerChanged,
131  (const DtBase64Data& data),
132  (DtResponse command, DtBase64Data& data))
133 
134  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 6, DrainInputSettingsChanged,
135  (double maxTime, int numPdusToRead),
136  (DtResponse command, double& maxTime, int& numPdusToRead))
137 
138  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 7, EntityIdFilterChanged,
139  (DtBase64Data& filter),
140  (DtResponse command, DtBase64Data& filter))
141 
142  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 8, DisVersionChanged,
143  (int version),
144  (DtResponse command, int& version))
145 
147 
150  static const DtLgrCommandId theLastResponseId = theBaseResponseId - 100;
151 
153  static const char* commandToString(int commandId);
154 
156  static const char* responseToString(int responseId);
157 
158  };
159 
160 }
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:110
The command type structure.
Definition: lgrCommand.h:29
#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
Factory for creating DIS Simulation commands.
Definition: lgrDisSimCommandFactory.h:26
Contains MAKLogger::DtLgrSimCommandFactory class.
#define DT_DLL_LGR_CMDS
Definition: lgrCmds.h:18
Contains MAKLogger::DtLgrCommandType and MAKLogger::DtCommand classes.
static const DtLgrCommandType theCommandType
The command time of all commands and responses from this factory.
Definition: lgrDisSimCommandFactory.h:31
#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)