MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrPlaybackCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "lgrCmds.h"
12 #include <lgrCmds/lgrCommand.h>
13 
14 class DtString;
15 
16 namespace MAKLogger
17 {
18 
19  class DtCommandDefinition;
20 
24  {
25  private:
27 
28  public:
31 
32  protected:
34  static const DtLgrCommandId Command_FullState = 3;
35 
36  public:
37 
41 
43  DT_FACTORY_COMMAND_EXT(1,OpenFile,(const DtString& filename, bool constructFilePathAndName),
44  (const DtCommand& command,DtString& filename, bool& constructFilePathAndName))
45 
46 
47 
48  DT_FACTORY_COMMAND_EXT(2,CloseFile,(),(DtCommand& command))
49 
52  DT_FACTORY_COMMAND_EXT(3,SaveFile,(const bool reopenAfterSave),
53  (const DtCommand& command, bool& reopenAfterSave))
54 
56  DT_FACTORY_COMMAND_EXT(4,SaveFileAs,(const DtString& filename,
57  const DtString& description, const bool writeDescription,
58  const bool reopenAfterSave),
59  (const DtCommand& command,DtString& filename,DtString& description,
60  bool& writeDescription, bool& reopenAfterSave))
61 
64  DT_FACTORY_COMMAND_EXT(5,Revert,(),(const DtCommand& command))
65 
67  DT_FACTORY_COMMAND_EXT(6,SetBackupOnSave,(bool backup),
68  (const DtCommand& command,bool& backup))
69 
72  DT_FACTORY_COMMAND_EXT(10,Play,(),(DtCommand& command))
73 
76  DT_FACTORY_COMMAND_EXT(11,Stop,(),(DtCommand& command))
77 
80  DT_FACTORY_COMMAND_EXT(12,Restart,(),(DtCommand& command))
81 
84  DT_FACTORY_COMMAND_EXT(13,PlayPause,(),(DtCommand& command))
85 
87  DT_FACTORY_COMMAND_EXT(14,SetLoopAtEnd,(bool enable),
88  (const DtCommand& command,bool& enable))
89 
91  DT_FACTORY_COMMAND_EXT(16,SetPlayOnLoad,(bool play),
92  (const DtCommand& command,bool& play))
93 
95  DT_FACTORY_COMMAND_EXT(20,SetPlaybackSpeed,(double speed, bool skipping),
96  (const DtCommand& command,double& speed, bool& skipping))
97 
99  DT_FACTORY_COMMAND_EXT(21,SetCurrentTime,(DtAbsoluteTime time),
100  (const DtCommand& command,DtAbsoluteTime& time))
101 
104  DT_FACTORY_COMMAND_EXT(22,Pause,(),(DtCommand& command))
105 
108  DT_FACTORY_COMMAND_EXT(23,Unpause,(),(DtCommand& command))
109 
111  DT_FACTORY_COMMAND_EXT(24,SetStartStopTimes,(DtAbsoluteTime startTime,
112  DtAbsoluteTime stopTime),(const DtCommand& command,
113  DtAbsoluteTime& startTime,DtAbsoluteTime& stopTime))
114 
116  DT_FACTORY_COMMAND_EXT(25,SkipTime,(DtRelativeTime time, bool skipForward),
117  (const DtCommand& command,DtRelativeTime& time, bool& skipForward))
118 
120  DT_FACTORY_COMMAND_EXT(26,SetSkippingPlaybackThreshold,(double skippingPlaybackThreshold),
121  (const DtCommand& command, double& skippingPlaybackThreshold))
122 
125  DT_FACTORY_COMMAND_EXT(27,RequestFileList,(bool listDirs),
126  (const DtCommand& command, bool& listDirs))
127 
130  DT_FACTORY_COMMAND_EXT(28,RecoverLastPacket,(),(DtCommand& command))
131 
133  DT_FACTORY_COMMAND_EXT(29,UpdateTapeDescription,(const DtString& description),
134  (const DtCommand& command, DtString& description))
135 
137  DT_FACTORY_COMMAND_EXT(30,SetPacketViewInterval,(double packetViewInterval),
138  (const DtCommand& command, double& packetViewInterval))
139 
141  DT_FACTORY_COMMAND_EXT(31,SetSkippingPlaybackInteractions,(bool skipPlaybackInteractions),
142  (const DtCommand& command, bool& skipPlaybackInteractions))
143 
145  DT_FACTORY_COMMAND_EXT(32,SetFollowingInterval,(double followingInterval),
146  (const DtCommand& command, double& followingInterval))
147 
149  DT_FACTORY_COMMAND_EXT(33,SetFollowingExportInterval,(double exportInterval),
150  (const DtCommand& command, double& exportInterval))
151 
155 
157  DT_FACTORY_RESPONSE_EXT(-1,FileOpened,
158  (const DtString& filename, DtAbsoluteTime firstTime, DtAbsoluteTime lastTime),
159  (DtResponse response, DtString& filename, DtAbsoluteTime& firstTime, DtAbsoluteTime& lastTime))
160 
162  DT_FACTORY_RESPONSE_EXT(-2,FileClosed,
163  (),
164  (DtResponse response))
165 
166  DT_FACTORY_RESPONSE_EXT(-3,FileDoesNotExist,
167  (const DtString& filename),
168  (DtResponse response, DtString& filename))
169 
170  DT_FACTORY_RESPONSE_EXT(-4,FileIncomplete,
171  (const DtString& filename, bool isIncomplete, bool hasLastPacket, bool lastPacketRecovered),
172  (DtResponse response, DtString& filename, bool& isIncomplete, bool& hasLastPacket, bool& lastPacketRecovered))
173 
174  DT_FACTORY_RESPONSE_EXT(-5,FileInvalid,
175  (const DtString& filename, const DtString& reason),
176  (DtResponse response, DtString& filename, DtString& reason))
177 
178  DT_FACTORY_RESPONSE_EXT(-6,FileChanged,
179  (),
180  (DtResponse))
181 
182  DT_FACTORY_RESPONSE_EXT(-7,FileSaved,
183  (),
184  (DtResponse))
185 
186  DT_FACTORY_RESPONSE_EXT(-8, FileFormatCurrent,
187  (bool current, int version),
188  (DtResponse response,bool& current, int& version))
189 
190  DT_FACTORY_RESPONSE_EXT(-10,PlaybackChanged,
191  (bool currentlyPlaying),
192  (DtResponse response, bool& currentlyPlaying))
193 
194  DT_FACTORY_RESPONSE_EXT(-11,Restarted,(),(DtResponse))
195 
196  DT_FACTORY_RESPONSE_EXT(-12,LoopAtEndChanged,
197  (bool enabled),
198  (DtResponse response, bool& enabled))
199 
200  DT_FACTORY_RESPONSE_EXT(-13,PlayOnLoadChanged,
201  (bool play),
202  (DtResponse response,bool& play))
203 
204  DT_FACTORY_RESPONSE_EXT(-20,PlaybackSpeedChanged,
205  (double speed),
206  (DtResponse response,double& speed))
207 
208  DT_FACTORY_RESPONSE_EXT(-21,PausedChanged,
209  (bool paused),
210  (DtResponse response,bool& paused))
211 
212  DT_FACTORY_RESPONSE_EXT(-22,SkippingPlaybackChanged,
213  (bool skippingPlayback),
214  (DtResponse response,bool& skippingPlayback))
215 
216  DT_FACTORY_RESPONSE_EXT(-23,SkippingPlaybackThresholdChanged,
217  (double skippingPlaybackThreshold),
218  (DtResponse response, double& skippingPlaybackThreshold))
219 
220  DT_FACTORY_RESPONSE_EXT(-24,JumpTimeChanged,
221  (DtAbsoluteTime jumpTime),
222  (DtResponse response, DtAbsoluteTime& jumpTime))
223 
224  DT_FACTORY_RESPONSE_EXT(-25,FileList,
225  (bool listIsDirs, const std::vector<DtString>& loggerFiles),
226  (DtResponse response, bool& listIsDirs, std::vector<DtString>& loggerFiles))
227 
228  DT_FACTORY_RESPONSE_EXT(-26,TapeDescriptionUpdated,
229  (const DtString& tapeDescription, const bool useDescription),
230  (DtResponse response, DtString& tapeDescription, bool& useDescription))
231 
232  DT_FACTORY_RESPONSE_EXT(-27,PacketViewIntervalChanged,
233  (double packetViewInterval),
234  (DtResponse response, double& packetViewInterval))
235 
236  DT_FACTORY_RESPONSE_EXT(-28,SkippingPlaybackInteractionsChanged,
237  (bool skippingPlaybackInteractions),
238  (DtResponse response, bool& skippingPlaybackInteractions))
239 
240  DT_FACTORY_RESPONSE_EXT(-29,FileExpandingChanged,
241  (bool isExpanding),
242  (DtResponse response, bool& isExpanding))
243 
244  DT_FACTORY_RESPONSE_EXT(-30,FollowingIntervalChanged,
245  (double followingInterval),
246  (const DtResponse response, double& followingInterval))
247 
248  DT_FACTORY_RESPONSE_EXT(-31,FollowingExportIntervalChanged,
249  (double exportInterval),
250  (const DtResponse response, double& exportInterval))
251 
252 
253  public:
254 
256  static const char* commandToString(int commandId);
257 
259  static const char* responseToString(int responseId);
260 
261  };
262 
263 }
264 

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)