MAK Data Logger API Documentation for HLA
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 #ifndef lgrPlaybackCommandFactory_H_
10 #define lgrPlaybackCommandFactory_H_
11 
12 #include "lgrCore.h"
13 #include "lgrCommand.h"
14 
15 class DtString;
16 
17 namespace MAKLogger
18 {
19 
20  class DtCommandDefinition;
21 
25  {
26  private:
28 
29  public:
32 
33  protected:
35  static const DtLgrCommandId Command_FullState = 3;
36 
37  public:
38 
42 
44  DT_FACTORY_COMMAND_EXT(1,OpenFile,(const DtString& filename, bool constructFilePathAndName),
45  (const DtCommand& command,DtString& filename, bool& constructFilePathAndName))
46 
47 
48 
49  DT_FACTORY_COMMAND_EXT(2,CloseFile,(),(DtCommand& command))
50 
53  DT_FACTORY_COMMAND_EXT(3,SaveFile,(),(DtCommand& command))
54 
56  DT_FACTORY_COMMAND_EXT(4,SaveFileAs,(const DtString& filename),
57  (const DtCommand& command,DtString& filename))
58 
61  DT_FACTORY_COMMAND_EXT(5,Revert,(),(const DtCommand& command))
62 
64  DT_FACTORY_COMMAND_EXT(6,SetBackupOnSave,(bool backup),
65  (const DtCommand& command,bool& backup))
66 
69  DT_FACTORY_COMMAND_EXT(10,Play,(),(DtCommand& command))
70 
73  DT_FACTORY_COMMAND_EXT(11,Stop,(),(DtCommand& command))
74 
77  DT_FACTORY_COMMAND_EXT(12,Restart,(),(DtCommand& command))
78 
81  DT_FACTORY_COMMAND_EXT(13,PlayPause,(),(DtCommand& command))
82 
84  DT_FACTORY_COMMAND_EXT(14,SetLoopAtEnd,(bool enable),
85  (const DtCommand& command,bool& enable))
86 
88  DT_FACTORY_COMMAND_EXT(16,SetPlayOnLoad,(bool play),
89  (const DtCommand& command,bool& play))
90 
92  DT_FACTORY_COMMAND_EXT(20,SetPlaybackSpeed,(double speed, bool skipping),
93  (const DtCommand& command,double& speed, bool& skipping))
94 
96  DT_FACTORY_COMMAND_EXT(21,SetCurrentTime,(DtAbsoluteTime time),
97  (const DtCommand& command,DtAbsoluteTime& time))
98 
101  DT_FACTORY_COMMAND_EXT(22,Pause,(),(DtCommand& command))
102 
105  DT_FACTORY_COMMAND_EXT(23,Unpause,(),(DtCommand& command))
106 
108  DT_FACTORY_COMMAND_EXT(24,SetStartStopTimes,(DtAbsoluteTime startTime,
109  DtAbsoluteTime stopTime),(const DtCommand& command,
110  DtAbsoluteTime& startTime,DtAbsoluteTime& stopTime))
111 
113  DT_FACTORY_COMMAND_EXT(25,SkipTime,(DtRelativeTime time, bool skipForward),
114  (const DtCommand& command,DtRelativeTime& time, bool& skipForward))
115 
117  DT_FACTORY_COMMAND_EXT(26,SetSkippingPlaybackThreshold,(double skippingPlaybackThreshold),
118  (const DtCommand& command, double& skippingPlaybackThreshold))
119 
122  DT_FACTORY_COMMAND_EXT(27,RequestFileList,(bool listDirs),
123  (const DtCommand& command, bool& listDirs))
124 
125 
128  DT_FACTORY_COMMAND_EXT(28,RecoverLastPacket,(),(DtCommand& command))
129 
130 
134 
136  DT_FACTORY_RESPONSE_EXT(-1,FileOpened,
137  (const DtString& filename, DtAbsoluteTime firstTime,
138  DtAbsoluteTime lastTime),
139  (DtResponse response, DtString& filename,DtAbsoluteTime& firstTime,
140  DtAbsoluteTime& lastTime))
141 
143  DT_FACTORY_RESPONSE_EXT(-2,FileClosed,
144  (),
145  (DtResponse response))
146 
147  DT_FACTORY_RESPONSE_EXT(-3,FileDoesNotExist,
148  (const DtString& filename),
149  (DtResponse response, DtString& filename))
150 
151  DT_FACTORY_RESPONSE_EXT(-4,FileIncomplete,
152  (const DtString& filename, bool isIncomplete, bool hasLastPacket, bool lastPacketRecovered),
153  (DtResponse response, DtString& filename, bool& isIncomplete, bool& hasLastPacket, bool& lastPacketRecovered))
154 
155  DT_FACTORY_RESPONSE_EXT(-5,FileInvalid,
156  (const DtString& filename, const DtString& reason),
157  (DtResponse response, DtString& filename, DtString& reason))
158 
159  DT_FACTORY_RESPONSE_EXT(-6,FileChanged,
160  (),
161  (DtResponse))
162 
163  DT_FACTORY_RESPONSE_EXT(-7,FileSaved,
164  (),
165  (DtResponse))
166 
167  DT_FACTORY_RESPONSE_EXT(-8, FileFormatCurrent,
168  (bool current),
169  (DtResponse response,bool& current))
170 
171  DT_FACTORY_RESPONSE_EXT(-10,PlaybackChanged,
172  (bool currentlyPlaying),
173  (DtResponse response, bool& currentlyPlaying))
174 
175  DT_FACTORY_RESPONSE_EXT(-11,Restarted,(),(DtResponse))
176 
177  DT_FACTORY_RESPONSE_EXT(-12,LoopAtEndChanged,
178  (bool enabled),
179  (DtResponse response, bool& enabled))
180 
181  DT_FACTORY_RESPONSE_EXT(-13,PlayOnLoadChanged,
182  (bool play),
183  (DtResponse response,bool& play))
184 
185  DT_FACTORY_RESPONSE_EXT(-20,PlaybackSpeedChanged,
186  (double speed),
187  (DtResponse response,double& speed))
188 
189  DT_FACTORY_RESPONSE_EXT(-21,PausedChanged,
190  (bool paused),
191  (DtResponse response,bool& paused))
192 
193  DT_FACTORY_RESPONSE_EXT(-22,SkippingPlaybackChanged,
194  (bool skippingPlayback),
195  (DtResponse response,bool& skippingPlayback))
196 
197  DT_FACTORY_RESPONSE_EXT(-23,SkippingPlaybackThresholdChanged,
198  (double skippingPlaybackThreshold),
199  (DtResponse response, double& skippingPlaybackThreshold))
200 
201  DT_FACTORY_RESPONSE_EXT(-24,JumpTimeChanged,
202  (DtAbsoluteTime jumpTime),
203  (DtResponse response, DtAbsoluteTime& jumpTime))
204 
205  DT_FACTORY_RESPONSE_EXT(-25,FileList,
206  (bool listIsDirs, const std::vector<DtString>& loggerFiles),
207  (DtResponse response, bool& listIsDirs, std::vector<DtString>& loggerFiles))
208 
209  public:
210 
212  static const char* commandToString(int commandId);
213 
215  static const char* responseToString(int responseId);
216 
217  };
218 
219 }
220 
221 #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)