MAK Data Logger API Documentation for HLA
 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-2016 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "lgrCmds.h"
13 
14 class DtString;
15 
16 namespace MAKLogger
17 {
18 
19  class DtCommandDefinition;
20 
24  {
25  private:
27 
28  public:
31 
32  public:
33 
35  static const DtLgrCommandId theBaseCommandId = DtLgrTimeCommandFactory::theLastCommandId;
36 
38 
39 
41  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 1,OpenFile,
42  (const DtString& filename, bool constructFilePathAndName, bool checkMediaFile),
43  (const DtCommand& command,DtString& filename, bool& constructFilePathAndName, bool& checkMediaFile))
44 
45 
46  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 2,CloseFile,
48  (),
49  (DtCommand& command))
50 
51 
52  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 3,SaveFile,
54  (const bool reopenAfterSave),
55  (const DtCommand& command, bool& reopenAfterSave))
56 
57 
58  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 4,SaveFileAs,
59  (const DtString& filename,const DtString& description,const bool writeDescription,
60  const bool reopenAfterSave),
61  (const DtCommand& command,DtString& filename,DtString& description,bool& writeDescription,
62  bool& reopenAfterSave))
63 
66  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 5,Revert,
67  (),
68  (const DtCommand& command))
69 
71  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 6,SetBackupOnSave,
72  (bool backup),
73  (const DtCommand& command,bool& backup))
74 
77  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 10,Play,
78  (),
79  (DtCommand& command))
80 
83  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 11,Stop,
84  (),
85  (DtCommand& command))
86 
89  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 12,Restart,
90  (),
91  (DtCommand& command))
92 
95  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 13,PlayPause,
96  (),
97  (DtCommand& command))
98 
100  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 14,SetLoopAtEnd,
101  (bool enable),
102  (const DtCommand& command,bool& enable))
103 
105  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 16,SetPlayOnLoad,
106  (bool play),
107  (const DtCommand& command,bool& play))
108 
110  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 20,SetPlaybackSpeed,
111  (double speed, bool skipping),
112  (const DtCommand& command,double& speed, bool& skipping))
113 
115  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 21,SetCurrentTime,
116  (DtAbsoluteTime time),
117  (const DtCommand& command,DtAbsoluteTime& time))
118 
121  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 22,Pause,
122  (),
123  (DtCommand& command))
124 
127  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 23,Unpause,
128  (),
129  (DtCommand& command))
130 
132  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 24,SetStartStopTimes,
133  (DtAbsoluteTime startTime, DtAbsoluteTime stopTime),
134  (const DtCommand& command, DtAbsoluteTime& startTime,DtAbsoluteTime& stopTime))
135 
137  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 25,SkipTime,
138  (DtRelativeTime time, bool skipForward),
139  (const DtCommand& command,DtRelativeTime& time, bool& skipForward))
140 
142  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 26,SetSkippingPlaybackThreshold,
143  (double skippingPlaybackThreshold),
144  (const DtCommand& command, double& skippingPlaybackThreshold))
145 
148  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 27,RequestFileList,
149  (bool listDirs),
150  (const DtCommand& command, bool& listDirs))
151 
154  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 28,RecoverLastPacket,
155  (),
156  (DtCommand& command))
157 
159  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 29,UpdateTapeDescription,
160  (const DtString& description),
161  (const DtCommand& command, DtString& description))
162 
164  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 30,SetPacketViewInterval,
165  (double packetViewInterval),
166  (const DtCommand& command, double& packetViewInterval))
167 
169  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 31,SetSkippingPlaybackInteractions,
170  (bool skipPlaybackInteractions),
171  (const DtCommand& command, bool& skipPlaybackInteractions))
172 
174  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 32,SetFollowingInterval,
175  (double followingInterval),
176  (const DtCommand& command, double& followingInterval))
177 
179  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 33,SetFollowingExportInterval,
180  (double exportInterval),
181  (const DtCommand& command, double& exportInterval))
182 
184  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 34,SetMediaPlaybackAdjustments,
185  (double speedFactor, DtRelativeTime offset),
186  (const DtCommand& command, double& speedFactor, DtRelativeTime& offset))
187 
189  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 35,SetMediaWindowHandle,
190  (void* windowHandle),
191  (const DtCommand& command, void*& windowHandle))
192 
194  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 36, SetMediaPlayToStreamConfiguration,
195  (const DtString& pipelineConfiguration),
196  (const DtCommand& command, DtString& pipelineConfiguration))
197 
199  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 37,SetMediaPlayInWindowConfiguration,
200  (const DtString& pipelineConfiguration),
201  (const DtCommand& command, DtString& pipelineConfiguration))
202 
204  DT_FACTORY_COMMAND_EXT(theBaseCommandId - 38, SetMediaPlayByDefault,
205  (bool windowDefault, bool streamDefault),
206  (const DtCommand& command, bool& windowDefault, bool& streamDefault))
207 
209  DT_FACTORY_COMMAND_EXT(theBaseCommandId - 39, SetMediaPlayToStreamParameters,
210  (const DtString& host, int port),
211  (const DtCommand& command, DtString& host, int& port))
212 
214  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 40, SetMediaPlayToStreamPipeline,
215  (const DtString& pipelines, const DtString& mediaFile),
216  (const DtCommand&, DtString& pipelines, DtString& mediaFile))
217 
219  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 41, SetMediaPlayInWindowPipeline,
220  (const DtString& pipeline, const DtString& mediaFile),
221  (const DtCommand&, DtString& pipeline, DtString& mediaFile))
222 
225  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 42, ExposePlaybackMedia,
226  (),
227  (DtCommand& command))
228 
230 
233  static const DtLgrCommandId theLastCommandId = theBaseCommandId + 100;
234 
236  static const DtLgrCommandId theBaseResponseId = DtLgrTimeCommandFactory::theLastResponseId;
237 
239 
240 
242  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 1,FileOpened,
243  (const DtString& filename, DtAbsoluteTime firstTime, DtAbsoluteTime lastTime),
244  (DtResponse response, DtString& filename, DtAbsoluteTime& firstTime,
245  DtAbsoluteTime& lastTime))
246 
248  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 2,FileClosed,
249  (),
250  (DtResponse response))
251 
252  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 3,FileDoesNotExist,
253  (const DtString& filename),
254  (DtResponse response, DtString& filename))
255 
256  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 4,FileIncomplete,
257  (const DtString& filename, bool isIncomplete, bool hasLastPacket, bool lastPacketRecovered),
258  (DtResponse response, DtString& filename, bool& isIncomplete, bool& hasLastPacket,
259  bool& lastPacketRecovered))
260 
261  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 5,FileInvalid,
262  (const DtString& filename, const DtString& reason),
263  (DtResponse response, DtString& filename, DtString& reason))
264 
265  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 6,FileChanged,
266  (),
267  (DtResponse))
268 
269  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 7,FileSaved,
270  (),
271  (DtResponse))
272 
273  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 8, FileFormatCurrent,
274  (bool current, int version),
275  (DtResponse response,bool& current, int& version))
276 
277  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 10,PlaybackChanged,
278  (bool currentlyPlaying),
279  (DtResponse response, bool& currentlyPlaying))
280 
281  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 11,Restarted,
282  (),
283  (DtResponse))
284 
285  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 12,LoopAtEndChanged,
286  (bool enabled),
287  (DtResponse response, bool& enabled))
288 
289  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 13,PlayOnLoadChanged,
290  (bool play),
291  (DtResponse response,bool& play))
292 
293  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 20,PlaybackSpeedChanged,
294  (double speed),
295  (DtResponse response,double& speed))
296 
297  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 21,PausedChanged,
298  (bool paused),
299  (DtResponse response,bool& paused))
300 
301  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 22,SkippingPlaybackChanged,
302  (bool skippingPlayback),
303  (DtResponse response,bool& skippingPlayback))
304 
305  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 23,SkippingPlaybackThresholdChanged,
306  (double skippingPlaybackThreshold),
307  (DtResponse response, double& skippingPlaybackThreshold))
308 
309  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 24,JumpTimeChanged,
310  (DtAbsoluteTime jumpTime),
311  (DtResponse response, DtAbsoluteTime& jumpTime))
312 
313  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 25,FileList,
314  (bool listIsDirs, const std::vector<DtString>& loggerFiles),
315  (DtResponse response, bool& listIsDirs, std::vector<DtString>& loggerFiles))
316 
317  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 26,TapeDescriptionUpdated,
318  (const DtString& tapeDescription, const bool useDescription),
319  (DtResponse response, DtString& tapeDescription, bool& useDescription))
320 
321  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 27,PacketViewIntervalChanged,
322  (double packetViewInterval),
323  (DtResponse response, double& packetViewInterval))
324 
325  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 28,SkippingPlaybackInteractionsChanged,
326  (bool skippingPlaybackInteractions),
327  (DtResponse response, bool& skippingPlaybackInteractions))
328 
329  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 29,FileExpandingChanged,
330  (bool isExpanding),
331  (DtResponse response, bool& isExpanding))
332 
333  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 30,FollowingIntervalChanged,
334  (double followingInterval),
335  (const DtResponse response, double& followingInterval))
336 
337  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 31,FollowingExportIntervalChanged,
338  (double exportInterval),
339  (const DtResponse response, double& exportInterval))
340 
341  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 32,MediaPlaybackAdjustmentsChanged,
342  (double speedFactor, DtRelativeTime offset),
343  (const DtResponse response, double& speedFactor, DtRelativeTime& offset))
344 
346  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 33,MediaPlayToStreamConfigurationChanged,
347  (const DtString& pipelineConfiguration),
348  (DtResponse response, DtString& pipelineConfiguration))
349 
351  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 34, MediaPlayInWindowConfigurationChanged,
352  (const DtString& pipelineConfiguration),
353  (DtResponse response, DtString& pipelineConfiguration))
354 
356  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 35, MediaPlayByDefaultChanged,
357  (bool windowDefault, bool streamDefault),
358  (DtResponse response, bool& windowDefault, bool& streamDefault))
359 
361  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 36, MediaPlayToStreamParametersChanged,
362  (const DtString& host, int port),
363  (DtResponse response, DtString& host, int& port))
364 
366  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 37, MediaPlayInWindowOperationActive,
367  (bool isActive),
368  (DtResponse response, bool &isActive))
369 
371  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 38, MediaPlayToStreamOperationStatus,
372  (int status),
373  (DtResponse response, int &status))
374 
376 
379  static const DtLgrCommandId theLastResponseId = theBaseResponseId - 100;
380 
381  public:
382 
384  static const char* commandToString(int commandId);
385 
387  static const char* responseToString(int responseId);
388 
389  };
390 
391 }
392 
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:109
The command type structure.
Definition: lgrCommand.h:29
#define DT_FACTORY_COMMAND_EXT(commandId, commandName, createParams, decodeParams)
Utility Macros for declaring Command in Factory.
Definition: lgrCommand.h:183
The class responsible for creating playback commands.
Definition: lgrPlaybackCommandFactory.h:23
#define DT_DLL_LGR_CMDS
Definition: lgrCmds.h:18
Relative Time, an elapsed duration of time, no implied measurement, could be seconds/cycles or ticks ...
Definition: absoluteTime.h:28
DtBoost::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:174
static const DtLgrCommandType theCommandType
The command type for all playback commands from this factory.
Definition: lgrPlaybackCommandFactory.h:30
The factory class responsible for created time related commands.
Definition: lgrTimeCommandFactory.h:21
#define DT_FACTORY_RESPONSE_EXT(responseId, responseName, createParams, decodeParams)
Utility Macros for declaring Response in Factory.
Definition: lgrCommand.h:198
Contains lgrCmds library definitions.
Contains MAKLogger::DtLgrTimeCommandFactory class.
short DtLgrCommandId
Definition: lgrCommand.h:25
Absolute Time, a particular measured instance in time, could be thought of as a set of relative times...
Definition: absoluteTime.h:82

Document ID: Generated on Thu Sep 2 15:35:22 EDT 2021 from SVN revision 233992
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)