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,
83 DT_FACTORY_COMMAND_EXT(11,ClearFilteredEntityNames,
87 DT_FACTORY_COMMAND_EXT(12,SetHeartbeatIntervals,
89 (const DtCommand&,
DtString& intervals))
91 DT_FACTORY_COMMAND_EXT(13,SetTimeoutIntervals,
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))
102 DT_FACTORY_COMMAND_EXT(16, SetRandomAccessForPlaybackFiles,
103 (
bool playbackfilesUseRandomAccess),
104 (const DtCommand& command,
bool& playbackfilesUseRandomAccess))
127 DT_FACTORY_RESPONSE_EXT(-4,LostConnection,
131 DT_FACTORY_RESPONSE_EXT(-5,FilterAdded,
135 DT_FACTORY_RESPONSE_EXT(-6,FilterRemoved,
137 (DtResponse,
int& index))
139 DT_FACTORY_RESPONSE_EXT(-7,FilterModified,
143 DT_FACTORY_RESPONSE_EXT(-8,RemoteControlSettingsChanged,
144 (
bool process,
bool record,
bool allowDelete,
bool allowAll,
145 bool sendResponses,
bool crippleGui,
bool useLegacyPdu,
146 double connectSendInterval,
double heartbeatSendInterval),
147 (DtResponse,
bool& process,
bool& record,
bool& allowDelete,
bool& allowAll,
148 bool& sendResponses,
bool& crippleGui,
bool& useLegacyPdu,
149 double& connectSendInterval,
double& heartbeatSendInterval))
151 DT_FACTORY_RESPONSE_EXT(-9,ActivityChanged,
153 (DtResponse,
bool& activity))
155 DT_FACTORY_RESPONSE_EXT(-10,ScaleAttributesChanged,
157 (DtResponse,
bool& scale))
159 DT_FACTORY_RESPONSE_EXT(-11,UpdatedEntityTracker,
163 DT_FACTORY_RESPONSE_EXT(-12,RemoteControlIdChanged,
165 (DtResponse&,
int&
id))
167 DT_FACTORY_RESPONSE_EXT(-13, BackChannelConnectionChanged,
168 (
bool useBackChannel, const
DtString& address,
int port, const
DtString& hostInterface),
169 (DtResponse& response,
bool& useBackChannel,
DtString& address,
int& port,
DtString& hostInterface))
178 static const
char* commandToString(
int commandId);
181 static const
char* responseToString(
int responseId);