10 #ifndef lgrRecordCommandFactory_H_
11 #define lgrRecordCommandFactory_H_
20 class DtMessageBuffer;
21 class DtCommandDefinition;
37 (
const DtString& filename,
bool overwrite,
bool constructFilePathAndName),
38 (
const DtCommand& command,
DtString& filename,
bool& overwrite,
bool& constructFilePathAndName))
51 DT_FACTORY_COMMAND_EXT(5,Record,
56 DT_FACTORY_COMMAND_EXT(6,Pause,
61 DT_FACTORY_COMMAND_EXT(7,Unpause,
66 DT_FACTORY_COMMAND_EXT(8,Stop,
67 (
bool closeAndOpenForPlayback),
68 (const DtCommand&,
bool& closeAndOpenForPlayback))
71 DT_FACTORY_COMMAND_EXT(9,StopCondition,
72 (
int cond,
bool close),
73 (const DtCommand&,
int& cond,
bool& close))
76 DT_FACTORY_COMMAND_EXT(10,StopDuration,
81 DT_FACTORY_COMMAND_EXT(11,StopSize,
83 (const DtCommand&,DtU64& size))
86 DT_FACTORY_COMMAND_EXT(12,SetCheckpointParameters,
88 (const DtCommand&,
int& policy,
int& size,
int& count,
92 DT_FACTORY_COMMAND_EXT(13,SetPauseOnRecordAs,
94 (const DtCommand&,
bool& record))
97 DT_FACTORY_COMMAND_EXT(14,SaveRecordedData,
98 (const
DtString& filename,
bool sinceLastSaveData,
100 (const DtCommand&,
DtString& filename,
bool& sinceLastSaveData,
101 double& outputDuration, DtMessageBuffer*&))
105 DT_FACTORY_COMMAND_EXT(15,SaveRecordedDataFinished,
106 (
bool success,const
DtString& message),
107 (const DtCommand&,
bool& success,
DtString& message))
110 DT_FACTORY_COMMAND_EXT(16,SetRecordToMultipleFilesSettings,
111 (
double duration,const
DtString& namingConvention),
112 (const DtCommand&,
double& duration,
DtString& namingConvention))
115 DT_FACTORY_COMMAND_EXT(17,RecordToMultipleFiles,
117 (const DtCommand&,
DtString& fileName))
125 DT_FACTORY_RESPONSE_EXT(-2,NewFileFailed,
130 DT_FACTORY_RESPONSE_EXT(-3,FileClosed,
135 DT_FACTORY_RESPONSE_EXT(-10,RecordingChanged,
136 (
bool recordingState),
140 DT_FACTORY_RESPONSE_EXT(-11,RecordingPausedChanged,
141 (
bool recordingState),
144 DT_FACTORY_RESPONSE_EXT(-12,PauseOnRecordAsChanged,
148 DT_FACTORY_RESPONSE_EXT(-13,CheckpointPolicyChanged,
152 DT_FACTORY_RESPONSE_EXT(-14,FileEmptyChanged,
156 DT_FACTORY_RESPONSE_EXT(-15,RecordToMultipleFilesSettingsChanged,
157 (
double duration,const
DtString& namingConvention),
158 (DtResponse,
double& duration,
DtString& namingConvention))
163 static const
char* commandToString(
int commandId);
166 static const
char* responseToString(
int responseId);