9 #ifndef lgrSimCommandFactory_H_
10 #define lgrSimCommandFactory_H_
20 class DtCommandDefinition;
21 class DtLgrPacketFilter;
50 DT_FACTORY_COMMAND_EXT(4,SetRemoteControlSettings,
51 (
bool process,
bool record,
bool allowDelete,
bool allowAll,
52 bool sendResponses,
bool crippleGui,
bool useLegacyPdu,
53 double connectSendInterval,
double heartbeatSendInterval),
54 (const DtCommand&,
bool& process,
bool& record,
bool& allowDelete,
bool& allowAll,
55 bool& sendResponses,
bool& crippleGui,
bool& useLegacyPdu,
56 double& connectSendInterval,
double& heartbeatSendInterval))
58 DT_FACTORY_COMMAND_EXT(5,SetRemoteControlId,
60 (const DtCommand&,
int&
id))
62 DT_FACTORY_COMMAND_EXT(6,SetScaleAttributes,
64 (const DtCommand&,
bool& scale))
66 DT_FACTORY_COMMAND_EXT(7,SetVRFFiltering,
67 (
bool filter,
int loId,
int hiId),
68 (const DtCommand&,
bool& filter,
int loId,
int hiId))
70 DT_FACTORY_COMMAND_EXT(8,ConnectShared,
71 (
DtExerciseConn* exConn,
bool allowDrainInput,
bool allowSetSimTime,
bool allowUnsubscribe),
73 bool& allowDrainInput,
bool& allowSetSimTime,
bool& allowUnsubscribe))
75 DT_FACTORY_COMMAND_EXT(9,AddFilter,
79 DT_FACTORY_COMMAND_EXT(10,AddFilteredEntityName,
80 (const DtString& name),
81 (const DtCommand&,DtString& name))
83 DT_FACTORY_COMMAND_EXT(11,ClearFilteredEntityNames,
87 DT_FACTORY_COMMAND_EXT(12,SetHeartbeatIntervals,
88 (const DtString& intervals),
89 (const DtCommand&, DtString& intervals))
91 DT_FACTORY_COMMAND_EXT(13,SetTimeoutIntervals,
92 (const DtString& intervals),
93 (const DtCommand&, DtString& intervals))
95 DT_FACTORY_COMMAND_EXT(14, AddTemporaryTrackedEntity, (const DtString& name),
96 (const DtCommand& command, DtString& name))
98 DT_FACTORY_COMMAND_EXT(15, SetBackChannelConnection,
99 (
bool useBackChannel, const DtString& address,
int port, const DtString& hostInterface),
100 (const DtCommand& command,
bool& useBackChannel, DtString& address,
int& port, DtString& hostInterface))
112 (const DtString& reason),
123 DT_FACTORY_RESPONSE_EXT(-4,LostConnection,
124 (const DtString& reason),
125 (DtResponse,DtString& reason))
127 DT_FACTORY_RESPONSE_EXT(-5,FilterAdded,
129 (DtResponse,
int& index,DtString& type,
DtBase64Data& desc))
131 DT_FACTORY_RESPONSE_EXT(-6,FilterRemoved,
133 (DtResponse,
int& index))
135 DT_FACTORY_RESPONSE_EXT(-7,FilterModified,
139 DT_FACTORY_RESPONSE_EXT(-8,RemoteControlSettingsChanged,
140 (
bool process,
bool record,
bool allowDelete,
bool allowAll,
141 bool sendResponses,
bool crippleGui,
bool useLegacyPdu,
142 double connectSendInterval,
double heartbeatSendInterval),
143 (DtResponse,
bool& process,
bool& record,
bool& allowDelete,
bool& allowAll,
144 bool& sendResponses,
bool& crippleGui,
bool& useLegacyPdu,
145 double& connectSendInterval,
double& heartbeatSendInterval))
147 DT_FACTORY_RESPONSE_EXT(-9,ActivityChanged,
149 (DtResponse,
bool& activity))
151 DT_FACTORY_RESPONSE_EXT(-10,ScaleAttributesChanged,
153 (DtResponse,
bool& scale))
155 DT_FACTORY_RESPONSE_EXT(-11,UpdatedEntityTracker,
156 (const DtString& data),
157 (DtResponse,DtString& data))
159 DT_FACTORY_RESPONSE_EXT(-12,RemoteControlIdChanged,
161 (DtResponse&,
int&
id))
163 DT_FACTORY_RESPONSE_EXT(-13, BackChannelConnectionChanged,
164 (
bool useBackChannel, const DtString& address,
int port, const DtString& hostInterface),
165 (DtResponse& response,
bool& useBackChannel, DtString& address,
int& port, DtString& hostInterface))
174 static const
char* commandToString(
int commandId);
177 static const
char* responseToString(
int responseId);