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 
129 
131  DT_FACTORY_RESPONSE_EXT(-1,FileOpened,
132  (const DtString& filename, DtAbsoluteTime firstTime,
133  DtAbsoluteTime lastTime),
134  (DtResponse response, DtString& filename,DtAbsoluteTime& firstTime,
135  DtAbsoluteTime& lastTime))
136 
138  DT_FACTORY_RESPONSE_EXT(-2,FileClosed,
139  (),
140  (DtResponse response))
141 
142  DT_FACTORY_RESPONSE_EXT(-3,FileDoesNotExist,
143  (const DtString& filename),
144  (DtResponse response, DtString& filename))
145 
146  DT_FACTORY_RESPONSE_EXT(-4,FileIncomplete,
147  (const DtString& filename, bool isIncomplete),
148  (DtResponse response, DtString& filename, bool& isIncomplete))
149 
150  DT_FACTORY_RESPONSE_EXT(-5,FileInvalid,
151  (const DtString& filename, const DtString& reason),
152  (DtResponse response, DtString& filename, DtString& reason))
153 
154  DT_FACTORY_RESPONSE_EXT(-6,FileChanged,
155  (),
156  (DtResponse))
157 
158  DT_FACTORY_RESPONSE_EXT(-7,FileSaved,
159  (),
160  (DtResponse))
161 
162  DT_FACTORY_RESPONSE_EXT(-8, FileFormatCurrent,
163  (bool current),
164  (DtResponse response,bool& current))
165 
166  DT_FACTORY_RESPONSE_EXT(-10,PlaybackChanged,
167  (bool currentlyPlaying),
168  (DtResponse response, bool& currentlyPlaying))
169 
170  DT_FACTORY_RESPONSE_EXT(-11,Restarted,(),(DtResponse))
171 
172  DT_FACTORY_RESPONSE_EXT(-12,LoopAtEndChanged,
173  (bool enabled),
174  (DtResponse response, bool& enabled))
175 
176  DT_FACTORY_RESPONSE_EXT(-13,PlayOnLoadChanged,
177  (bool play),
178  (DtResponse response,bool& play))
179 
180  DT_FACTORY_RESPONSE_EXT(-20,PlaybackSpeedChanged,
181  (double speed),
182  (DtResponse response,double& speed))
183 
184  DT_FACTORY_RESPONSE_EXT(-21,PausedChanged,
185  (bool paused),
186  (DtResponse response,bool& paused))
187 
188  DT_FACTORY_RESPONSE_EXT(-22,SkippingPlaybackChanged,
189  (bool skippingPlayback),
190  (DtResponse response,bool& skippingPlayback))
191 
192  DT_FACTORY_RESPONSE_EXT(-23,SkippingPlaybackThresholdChanged,
193  (double skippingPlaybackThreshold),
194  (DtResponse response, double& skippingPlaybackThreshold))
195 
196  DT_FACTORY_RESPONSE_EXT(-24,JumpTimeChanged,
197  (DtAbsoluteTime jumpTime),
198  (DtResponse response, DtAbsoluteTime& jumpTime))
199 
200  DT_FACTORY_RESPONSE_EXT(-25,FileList,
201  (bool listIsDirs, const std::vector<DtString>& loggerFiles),
202  (DtResponse response, bool& listIsDirs, std::vector<DtString>& loggerFiles))
203 
204  public:
205 
207  static const char* commandToString(int commandId);
208 
210  static const char* responseToString(int responseId);
211 
212  };
213 
214 }
215 
216 #endif

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)