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 #pragma once
11 
12 #include "lgrCmds.h"
13 #include "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, bool overwrite, bool constructFilePathAndName),
37  (const DtCommand& command,DtString& filename, DtString& description, bool& overwrite, bool& constructFilePathAndName))
38 
39 
41  (),
42  (const DtCommand&))
43 
45  DT_FACTORY_COMMAND_EXT(4,CancelRecording,
46  (),
47  (const DtCommand&))
48 
50  DT_FACTORY_COMMAND_EXT(5,Record,
51  (bool multipleFiles),
52  (const DtCommand&,bool& multipleFiles))
53 
55  DT_FACTORY_COMMAND_EXT(6,Pause,
56  (),
57  (const DtCommand&))
58 
60  DT_FACTORY_COMMAND_EXT(7,Unpause,
61  (),
62  (const DtCommand&))
63 
65  DT_FACTORY_COMMAND_EXT(8,Stop,
66  (bool closeAndOpenForPlayback),
67  (const DtCommand&,bool& closeAndOpenForPlayback))
68 
70  DT_FACTORY_COMMAND_EXT(9,StopCondition,
71  (int cond,bool close),
72  (const DtCommand&,int& cond, bool& close))
73 
75  DT_FACTORY_COMMAND_EXT(10,StopDuration,
76  (DtAbsoluteTime duration),
77  (const DtCommand&,DtAbsoluteTime&))
78 
80  DT_FACTORY_COMMAND_EXT(11,StopSize,
81  (DtU64 size),
82  (const DtCommand&,DtU64& size))
83 
85  DT_FACTORY_COMMAND_EXT(12,SetCheckpointParameters,
86  (int policy, int size, int count,DtAbsoluteTime time),
87  (const DtCommand&, int& policy, int& size,int& count,
88  DtAbsoluteTime& time))
89 
91  DT_FACTORY_COMMAND_EXT(13,SetPauseOnRecordAs,
92  (bool record),
93  (const DtCommand&, bool& record))
94 
96  DT_FACTORY_COMMAND_EXT(14,SaveRecordedData,
97  (const DtString& filename,bool sinceLastSaveData,
98  double outputDuration, DtMessageBuffer*),
99  (const DtCommand&, DtString& filename,bool& sinceLastSaveData,
100  double& outputDuration, DtMessageBuffer*&))
101 
104  DT_FACTORY_COMMAND_EXT(15,SaveRecordedDataFinished,
105  (bool success,const DtString& message),
106  (const DtCommand&, bool& success,DtString& message))
107 
109  DT_FACTORY_COMMAND_EXT(16,SetRecordToMultipleFilesSettings,
110  (double duration,const DtString& namingConvention),
111  (const DtCommand&, double& duration,DtString& namingConvention))
112 
114  DT_FACTORY_COMMAND_EXT(17,RecordToMultipleFiles,
115  (const DtString& fileName),
116  (const DtCommand&, DtString& fileName))
117 
119  DT_FACTORY_RESPONSE_EXT(-1,NewFileOpened,
120  (const DtString& filename),
121  (DtResponse response, DtString& filename ))
122 
124  DT_FACTORY_RESPONSE_EXT(-2,NewFileFailed,
125  (const DtString& reason),
126  (DtResponse response, DtString& reason ))
127 
129  DT_FACTORY_RESPONSE_EXT(-3,FileClosed,
130  (),
131  (DtResponse))
132 
134  DT_FACTORY_RESPONSE_EXT(-10,RecordingChanged,
135  (bool recordingState),
136  (DtResponse response,bool& recordingState ))
137 
139  DT_FACTORY_RESPONSE_EXT(-11,RecordingPausedChanged,
140  (bool recordingState),
141  (DtResponse response, bool& recordingState ))
142 
143  DT_FACTORY_RESPONSE_EXT(-12,PauseOnRecordAsChanged,
144  (bool record),
145  (DtResponse response, bool& record))
146 
147  DT_FACTORY_RESPONSE_EXT(-13,CheckpointPolicyChanged,
148  (int policy,int size,int count, DtAbsoluteTime time),
149  (DtResponse,int& policy,int& size,int& count,DtAbsoluteTime& time))
150 
151  DT_FACTORY_RESPONSE_EXT(-14,FileEmptyChanged,
152  (),
153  (DtResponse))
154 
155  DT_FACTORY_RESPONSE_EXT(-15,RecordToMultipleFilesSettingsChanged,
156  (double duration,const DtString& namingConvention),
157  (DtResponse, double& duration,DtString& namingConvention))
158 
159  public:
160 
162  static const char* commandToString(int commandId);
163 
165  static const char* responseToString(int responseId);
166 
167  };
168 
169 }

Document ID: Generated on Mon Jan 19 08:20:14 EST 2015 from SVN revision 149581
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)