MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #pragma once
11 
12 #include "lgrCmds.h"
13 #include <lgrCmds/lgrCommand.h>
14 
15 class DtString;
16 
17 namespace MAKLogger
18 {
19  class DtMessageBuffer;
20  class DtCommandDefinition;
21 
25  {
26  private:
28 
29  public:
30 
33 
35  DT_FACTORY_COMMAND_EXT(1,NewFile,
36  (const DtString& filename, const DtString& description,
37  bool overwrite, bool constructFilePathAndName),
38  (const DtCommand& command,DtString& filename, DtString& description,
39  bool& overwrite, bool& constructFilePathAndName))
40 
41 
43  (),
44  (const DtCommand&))
45 
47  DT_FACTORY_COMMAND_EXT(4,CancelRecording,
48  (),
49  (const DtCommand&))
50 
52  DT_FACTORY_COMMAND_EXT(5,Record,
53  (bool multipleFiles),
54  (const DtCommand&,bool& multipleFiles))
55 
57  DT_FACTORY_COMMAND_EXT(6,Pause,
58  (),
59  (const DtCommand&))
60 
62  DT_FACTORY_COMMAND_EXT(7,Unpause,
63  (),
64  (const DtCommand&))
65 
67  DT_FACTORY_COMMAND_EXT(8,Stop,
68  (bool closeAndOpenForPlayback),
69  (const DtCommand&,bool& closeAndOpenForPlayback))
70 
72  DT_FACTORY_COMMAND_EXT(9,StopCondition,
73  (int cond,bool close),
74  (const DtCommand&,int& cond, bool& close))
75 
77  DT_FACTORY_COMMAND_EXT(10,StopDuration,
78  (DtAbsoluteTime duration),
79  (const DtCommand&,DtAbsoluteTime&))
80 
82  DT_FACTORY_COMMAND_EXT(11,StopSize,
83  (DtU64 size),
84  (const DtCommand&,DtU64& size))
85 
87  DT_FACTORY_COMMAND_EXT(12,SetCheckpointParameters,
88  (int policy, int size, int count,DtAbsoluteTime time, bool checkpointInteractions),
89  (const DtCommand&, int& policy, int& size,int& count, DtAbsoluteTime& time,
90  bool& checkpointInteractions))
91 
93  DT_FACTORY_COMMAND_EXT(13,SetPauseOnRecordAs,
94  (bool record),
95  (const DtCommand&, bool& record))
96 
98  DT_FACTORY_COMMAND_EXT(14,SaveRecordedData,
99  (const DtString& filename, const DtString& description,
100  bool sinceLastSaveData, double outputDuration, DtMessageBuffer*),
101  (const DtCommand&, DtString& filename, DtString& description,
102  bool& sinceLastSaveData, double& outputDuration, DtMessageBuffer*&))
103 
106  DT_FACTORY_COMMAND_EXT(15,SaveRecordedDataFinished,
107  (bool success,const DtString& message),
108  (const DtCommand&, bool& success,DtString& message))
109 
111  DT_FACTORY_COMMAND_EXT(16,SetRecordToMultipleFilesSettings,
112  (double duration,const DtString& namingConvention),
113  (const DtCommand&, double& duration,DtString& namingConvention))
114 
116  DT_FACTORY_COMMAND_EXT(17,RecordToMultipleFiles,
117  (const DtString& fileName, const DtString& description),
118  (const DtCommand&, DtString& fileName, DtString& description))
119 
121  DT_FACTORY_RESPONSE_EXT(-1,NewFileOpened,
122  (const DtString& filename),
123  (DtResponse response, DtString& filename ))
124 
126  DT_FACTORY_RESPONSE_EXT(-2,NewFileFailed,
127  (const DtString& reason),
128  (DtResponse response, DtString& reason ))
129 
131  DT_FACTORY_RESPONSE_EXT(-3,FileClosed,
132  (),
133  (DtResponse))
134 
136  DT_FACTORY_RESPONSE_EXT(-10,RecordingChanged,
137  (bool recordingState),
138  (DtResponse response,bool& recordingState ))
139 
141  DT_FACTORY_RESPONSE_EXT(-11,RecordingPausedChanged,
142  (bool recordingState),
143  (DtResponse response, bool& recordingState ))
144 
145  DT_FACTORY_RESPONSE_EXT(-12,PauseOnRecordAsChanged,
146  (bool record),
147  (DtResponse response, bool& record))
148 
149  DT_FACTORY_RESPONSE_EXT(-13,CheckpointPolicyChanged,
150  (int policy,int size,int count, DtAbsoluteTime time, bool checkpointInteractions),
151  (DtResponse,int& policy,int& size,int& count,DtAbsoluteTime& time, bool& checkpointInteractions))
152 
153  DT_FACTORY_RESPONSE_EXT(-14,FileEmptyChanged,
154  (),
155  (DtResponse))
156 
157  DT_FACTORY_RESPONSE_EXT(-15,RecordToMultipleFilesSettingsChanged,
158  (double duration,const DtString& namingConvention),
159  (DtResponse, double& duration,DtString& namingConvention))
160 
161  public:
162 
164  static const char* commandToString(int commandId);
165 
167  static const char* responseToString(int responseId);
168 
169  };
170 
171 }

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)