MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrSimCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2016 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "lgrCmds.h"
13 
14 class DtExerciseConn;
15 class DtString;
16 
17 namespace MAKLogger
18 {
22  {
23  private:
25 
26  public:
27 
30 
32  static const DtLgrCommandId theBaseCommandId = DtLgrTimeCommandFactory::theLastCommandId;
33 
35 
36 
37  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 1,Connect,
38  (),
39  (const DtCommand&))
40 
41  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 2,Disconnect,
42  (),
43  (const DtCommand&))
44 
45  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 3,SetFilterSettings,
46  (int index,const DtBase64Data& data),
47  (const DtCommand&,int& index, DtBase64Data& data))
48 
49  DT_FACTORY_COMMAND_EXT(4,SetRemoteControlSettings,
50  (bool useSimChannel, bool useBackChannel, bool record, bool allowDelete, bool allowAll,
51  bool sendResponses, bool crippleGui, bool useLegacyPdu,
52  double connectSendInterval, double heartbeatSendInterval),
53  (const DtCommand&, bool& useSimChannel, bool& useBackChannel, bool& record,
54  bool& allowDelete, bool& allowAll, bool& sendResponses, bool& crippleGui,
55  bool& useLegacyPdu, double& connectSendInterval, double& heartbeatSendInterval))
56 
57  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 5,SetRemoteControlId,
58  (int id),
59  (const DtCommand&,int& id))
60 
61  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 6,SetScaleAttributes,
62  (bool scale),
63  (const DtCommand&,bool& scale))
64 
65  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 7,SetVRFFiltering,
66  (bool filter,int loId,int hiId),
67  (const DtCommand&,bool& filter,int& loId,int& hiId))
68 
69  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 8,ConnectShared,
70  (DtExerciseConn* exConn, bool allowDrainInput, bool allowSetSimTime, bool allowUnsubscribe),
71  (const DtCommand&, DtExerciseConn*& exConn, bool& allowDrainInput, bool& allowSetSimTime,
72  bool& allowUnsubscribe))
73 
74  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 9,AddFilter,
75  (void* filter),
76  (const DtCommand&,void*& filter))
77 
78  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 10,AddFilteredEntityName,
79  (const DtString& name),
80  (const DtCommand&,DtString& name))
81 
82  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 11,ClearFilteredEntityNames,
83  (),
84  (const DtCommand&))
85 
86  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 12,SetHeartbeatIntervals,
87  (const DtString& intervals),
88  (const DtCommand&, DtString& intervals))
89 
90  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 13,SetTimeoutIntervals,
91  (const DtString& intervals),
92  (const DtCommand&, DtString& intervals))
93 
94  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 14, AddTemporaryTrackedEntity, (const DtString& name),
95  (const DtCommand& command, DtString& name))
96 
97  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 15, SetBackChannelConnection,
98  (const DtString& address, int port, const DtString& hostInterface),
99  (const DtCommand& command, DtString& address, int& port, DtString& hostInterface))
100 
101  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 16, SetRandomAccessForPlaybackFiles,
102  (bool playbackfilesUseRandomAccess),
103  (const DtCommand& command, bool& playbackfilesUseRandomAccess))
104 
105  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 17, SetSaveConnectionConfiguration,
106  (bool saveConnectionConfiguration),
107  (const DtCommand& command, bool& saveConnectionConfiguration))
108 
109  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 18, SetExtendedStopTimeoutInterval,
110  (double extendedStopTimeoutInterval),
111  (const DtCommand& command, double& extendedStopTimeoutInterval))
112 
113  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 19,SetListenWhenIdle,
114  (bool listenWhenIdle),
115  (const DtCommand&,bool& listenWhenIdle))
116 
117  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 20,SetAdjustSimTime,
118  (bool adjustSimTime),
119  (const DtCommand&,bool& adjustSimTime))
120 
121  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 21, SetSaveIndexConfiguration,
122  (bool saveIndexConfiguration),
123  (const DtCommand& command, bool& saveIndexConfiguration))
124 
125  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 22, SetSaveProtocolConfiguration,
126  (bool saveProtocolConfiguration),
127  (const DtCommand& command, bool& saveProtocolConfiguration))
128 
129  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 23, SetStaticDRAlgorithmWhenPaused,
130  (bool staticDRAlgorithmWhenPaused),
131  (const DtCommand& command, bool& staticDRAlgorithmWhenPaused))
132 
133  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 24, FilterMarkings,
134  ( const std::vector<DtString>& markings),
135  ( const DtCommand& command,std::vector<DtString>& markings))
136 
138 
141  static const DtLgrCommandId theLastCommandId = theBaseCommandId + 100;
142 
144  static const DtLgrCommandId theBaseResponseId = DtLgrTimeCommandFactory::theLastResponseId;
145 
147 
148 
149  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 1,UnableToConnect,
150  (const DtString& reason),
151  (DtResponse,DtString& reason))
152 
153  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 2,Connected,
154  (),
155  (DtResponse))
156 
157  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 3,Disconnected,
158  (),
159  (DtResponse))
160 
161  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 4,LostConnection,
162  (const DtString& reason),
163  (DtResponse,DtString& reason))
164 
165  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 5,FilterAdded,
166  (int index, const DtString& type, const DtBase64Data& desc),
167  (DtResponse,int& index,DtString& type,DtBase64Data& desc))
168 
169  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 6,FilterRemoved,
170  (int index),
171  (DtResponse,int& index))
172 
173  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 7,FilterModified,
174  (int index,const DtBase64Data& data),
175  (DtResponse,int& index,DtBase64Data& data))
176 
177  DT_FACTORY_RESPONSE_EXT(-8,RemoteControlSettingsChanged,
178  (bool useSimChannel, bool useBackChannel, bool record, bool allowDelete, bool allowAll,
179  bool sendResponses, bool crippleGui, bool useLegacyPdu,
180  double connectSendInterval, double heartbeatSendInterval),
181  (DtResponse, bool& useSimChannel, bool& useBackChannel, bool& record, bool& allowDelete,
182  bool& allowAll, bool& sendResponses, bool& crippleGui, bool& useLegacyPdu,
183  double& connectSendInterval, double& heartbeatSendInterval))
184 
185  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 9,ActivityChanged,
186  (bool activity),
187  (DtResponse,bool& activity))
188 
189  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 10,ScaleAttributesChanged,
190  (bool scale),
191  (DtResponse,bool& scale))
192 
193  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 11,UpdatedEntityTracker,
194  (const DtString& data),
195  (DtResponse,DtString& data))
196 
197  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 12,RemoteControlIdChanged,
198  (int id),
199  (DtResponse&,int& id))
200 
201  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 13, BackChannelConnectionChanged,
202  (const DtString& address, int port, const DtString& hostInterface),
203  (DtResponse& response, DtString& address, int& port, DtString& hostInterface))
204 
205  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 14, SaveConnectionConfigurationChanged,
206  (bool saveConnectionConfiguration),
207  (DtResponse,bool& saveConnectionConfiguration))
208 
209  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 15,ListenWhenIdleChanged,
210  (bool listenWhenIdle),
211  (DtResponse,bool& listenWhenIdle))
212 
213  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 16,AdjustSimTimeChanged,
214  (bool adjustSimTime),
215  (DtResponse,bool& adjustSimTime))
216 
217  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 17, SaveIndexConfigurationChanged,
218  (bool saveIndexConfiguration),
219  (DtResponse,bool& saveIndexConfiguration))
220 
221  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 18, SaveProtocolConfigurationChanged,
222  (bool saveProtocolConfiguration),
223  (DtResponse,bool& saveProtocolConfiguration))
224 
225  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 19, StaticDRAlgorithmWhenPaused,
226  (bool staticDRAlgorithmWhenPaused),
227  (DtResponse,bool& staticDRAlgorithmWhenPaused))
228 
230 
233  static const DtLgrCommandId theLastResponseId = theBaseResponseId - 100;
234 
236  static const char* commandToString(int commandId);
237 
239  static const char* responseToString(int responseId);
240 
241  };
242 
243 }

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)