MAK Data Logger API Documentation for DIS
lgrRecordCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 
10 #ifndef lgrRecordCommandFactory_H_
11 #define lgrRecordCommandFactory_H_
12 
13 #include "lgrCore.h"
14 #include "lgrCommand.h"
15 
16 class DtString;
17 
18 namespace MAKLogger
19 {
20  class DtMessageBuffer;
21  class DtCommandDefinition;
22 
26  {
27  private:
29 
30  public:
31 
34 
36  DT_FACTORY_COMMAND_EXT(1,NewFile,
37  (const DtString& filename,bool overwrite, bool constructFilePathAndName),
38  (const DtCommand& command,DtString& filename,bool& overwrite, bool& constructFilePathAndName))
39 
40 
42  (),
43  (const DtCommand&))
44 
46  DT_FACTORY_COMMAND_EXT(4,CancelRecording,
47  (),
48  (const DtCommand&))
49 
51  DT_FACTORY_COMMAND_EXT(5,Record,
52  (bool multipleFiles),
53  (const DtCommand&,bool& multipleFiles))
54 
56  DT_FACTORY_COMMAND_EXT(6,Pause,
57  (),
58  (const DtCommand&))
59 
61  DT_FACTORY_COMMAND_EXT(7,Unpause,
62  (),
63  (const DtCommand&))
64 
66  DT_FACTORY_COMMAND_EXT(8,Stop,
67  (bool closeAndOpenForPlayback),
68  (const DtCommand&,bool& closeAndOpenForPlayback))
69 
71  DT_FACTORY_COMMAND_EXT(9,StopCondition,
72  (int cond,bool close),
73  (const DtCommand&,int& cond, bool& close))
74 
76  DT_FACTORY_COMMAND_EXT(10,StopDuration,
77  (DtAbsoluteTime duration),
78  (const DtCommand&,DtAbsoluteTime&))
79 
81  DT_FACTORY_COMMAND_EXT(11,StopSize,
82  (DtU64 size),
83  (const DtCommand&,DtU64& size))
84 
86  DT_FACTORY_COMMAND_EXT(12,SetCheckpointParameters,
87  (int policy, int size, int count,DtAbsoluteTime time),
88  (const DtCommand&, int& policy, int& size,int& count,
89  DtAbsoluteTime& time))
90 
92  DT_FACTORY_COMMAND_EXT(13,SetPauseOnRecordAs,
93  (bool record),
94  (const DtCommand&, bool& record))
95 
97  DT_FACTORY_COMMAND_EXT(14,SaveRecordedData,
98  (const DtString& filename,bool sinceLastSaveData,
99  double outputDuration, DtMessageBuffer*),
100  (const DtCommand&, DtString& filename,bool& sinceLastSaveData,
101  double& outputDuration, DtMessageBuffer*&))
102 
105  DT_FACTORY_COMMAND_EXT(15,SaveRecordedDataFinished,
106  (bool success,const DtString& message),
107  (const DtCommand&, bool& success,DtString& message))
108 
110  DT_FACTORY_COMMAND_EXT(16,SetRecordToMultipleFilesSettings,
111  (double duration,const DtString& namingConvention),
112  (const DtCommand&, double& duration,DtString& namingConvention))
113 
115  DT_FACTORY_COMMAND_EXT(17,RecordToMultipleFiles,
116  (const DtString& fileName),
117  (const DtCommand&, DtString& fileName))
118 
120  DT_FACTORY_RESPONSE_EXT(-1,NewFileOpened,
121  (const DtString& filename),
122  (DtResponse response, DtString& filename ))
123 
125  DT_FACTORY_RESPONSE_EXT(-2,NewFileFailed,
126  (const DtString& reason),
127  (DtResponse response, DtString& reason ))
128 
130  DT_FACTORY_RESPONSE_EXT(-3,FileClosed,
131  (),
132  (DtResponse))
133 
135  DT_FACTORY_RESPONSE_EXT(-10,RecordingChanged,
136  (bool recordingState),
137  (DtResponse response,bool& recordingState ))
138 
140  DT_FACTORY_RESPONSE_EXT(-11,RecordingPausedChanged,
141  (bool recordingState),
142  (DtResponse response, bool& recordingState ))
143 
144  DT_FACTORY_RESPONSE_EXT(-12,PauseOnRecordAsChanged,
145  (bool record),
146  (DtResponse response, bool& record))
147 
148  DT_FACTORY_RESPONSE_EXT(-13,CheckpointPolicyChanged,
149  (int policy,int size,int count, DtAbsoluteTime time),
150  (DtResponse,int& policy,int& size,int& count,DtAbsoluteTime& time))
151 
152  DT_FACTORY_RESPONSE_EXT(-14,FileEmptyChanged,
153  (),
154  (DtResponse))
155 
156  DT_FACTORY_RESPONSE_EXT(-15,RecordToMultipleFilesSettingsChanged,
157  (double duration,const DtString& namingConvention),
158  (DtResponse, double& duration,DtString& namingConvention))
159 
160  public:
161 
163  static const char* commandToString(int commandId);
164 
166  static const char* responseToString(int responseId);
167 
168  };
169 
170 }
171 
172 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)