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-2025 MAK Technologies, Inc
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 
49  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 1, OpenFile,
50  (const DtString& filename, bool constructFilePathAndName, bool checkMediaFile),
51  (const DtCommand& command, DtString& filename, bool& constructFilePathAndName, bool& checkMediaFile));
52 
55  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 2, CloseFile,
56  (),
57  (DtCommand& command));
58 
62  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 3, SaveFile,
63  (const bool reopenAfterSave),
64  (const DtCommand& command, bool& reopenAfterSave));
65 
73  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 4, SaveFileAs,
74  (const DtString& filename, const DtString& description, const bool writeDescription,
75  const bool reopenAfterSave),
76  (const DtCommand& command, DtString& filename, DtString& description, bool& writeDescription,
77  bool& reopenAfterSave));
78 
81  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 5, Revert,
82  (),
83  (const DtCommand& command));
84 
88  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 6, SetBackupOnSave,
89  (bool backup),
90  (const DtCommand& command, bool& backup));
91 
94  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 10, Play,
95  (),
96  (DtCommand& command));
97 
100  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 11, Stop,
101  (),
102  (DtCommand& command));
103 
106  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 12, Restart,
107  (),
108  (DtCommand& command));
109 
112  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 13, PlayPause,
113  (),
114  (DtCommand& command));
115 
119  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 14, SetLoopAtEnd,
120  (bool enable),
121  (const DtCommand& command, bool& enable));
122 
126  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 16, SetPlayOnLoad,
127  (bool play),
128  (const DtCommand& command, bool& play));
129 
135  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 20, SetPlaybackSpeed,
136  (double speed, bool skipping),
137  (const DtCommand& command, double& speed, bool& skipping));
138 
142  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 21, SetCurrentTime,
143  (DtAbsoluteTime time),
144  (const DtCommand& command, DtAbsoluteTime& time));
145 
148  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 22, Pause,
149  (),
150  (DtCommand& command));
151 
154  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 23, Unpause,
155  (),
156  (DtCommand& command));
157 
162  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 24, SetStartStopTimes,
163  (DtAbsoluteTime startTime, DtAbsoluteTime stopTime),
164  (const DtCommand& command, DtAbsoluteTime& startTime, DtAbsoluteTime& stopTime));
165 
170  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 25, SkipTime,
171  (DtRelativeTime time, bool skipForward),
172  (const DtCommand& command, DtRelativeTime& time, bool& skipForward));
173 
177  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 26, SetSkippingPlaybackThreshold,
178  (double skippingPlaybackThreshold),
179  (const DtCommand& command, double& skippingPlaybackThreshold));
180 
184  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 27, RequestFileList,
185  (bool listDirs),
186  (const DtCommand& command, bool& listDirs));
187 
190  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 28, RecoverLastPacket,
191  (),
192  (DtCommand& command));
193 
197  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 29, UpdateTapeDescription,
198  (const DtString& description),
199  (const DtCommand& command, DtString& description));
200 
204  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 30, SetPacketViewInterval,
205  (double packetViewInterval),
206  (const DtCommand& command, double& packetViewInterval));
207 
211  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 31, SetSkippingPlaybackInteractions,
212  (bool skipPlaybackInteractions),
213  (const DtCommand& command, bool& skipPlaybackInteractions));
214 
218  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 32, SetFollowingInterval,
219  (double followingInterval),
220  (const DtCommand& command, double& followingInterval));
221 
225  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 33, SetFollowingExportInterval,
226  (double exportInterval),
227  (const DtCommand& command, double& exportInterval));
228 
233  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 34, SetMediaPlaybackAdjustments,
234  (double speedFactor, DtRelativeTime offset),
235  (const DtCommand& command, double& speedFactor, DtRelativeTime& offset));
236 
240  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 35, SetMediaWindowHandle,
241  (void* windowHandle),
242  (const DtCommand& command, void*& windowHandle));
243 
247  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 36, SetMediaPlayToStreamConfiguration,
248  (const DtString& pipelineConfiguration),
249  (const DtCommand& command, DtString& pipelineConfiguration));
250 
254  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 37, SetMediaPlayInWindowConfiguration,
255  (const DtString& pipelineConfiguration),
256  (const DtCommand& command, DtString& pipelineConfiguration));
257 
262  DT_FACTORY_COMMAND_EXT(theBaseCommandId - 38, SetMediaPlayByDefault,
263  (bool windowDefault, bool streamDefault),
264  (const DtCommand& command, bool& windowDefault, bool& streamDefault));
265 
270  DT_FACTORY_COMMAND_EXT(theBaseCommandId - 39, SetMediaPlayToStreamParameters,
271  (const DtString& host, int port),
272  (const DtCommand& command, DtString& host, int& port));
273 
278  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 40, SetMediaPlayToStreamPipeline,
279  (const DtString& pipelines, const DtString& mediaFile),
280  (const DtCommand&, DtString& pipelines, DtString& mediaFile));
281 
286  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 41, SetMediaPlayInWindowPipeline,
287  (const DtString& pipeline, const DtString& mediaFile),
288  (const DtCommand&, DtString& pipeline, DtString& mediaFile));
289 
292  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 42, ExposePlaybackMedia,
293  (),
294  (DtCommand& command));
295 
297 
300  static const DtLgrCommandId theLastCommandId = theBaseCommandId + 100;
301 
303  static const DtLgrCommandId theBaseResponseId = DtLgrTimeCommandFactory::theLastResponseId;
304 
306 
307 
314  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 1,FileOpened,
315  (const DtString& filename, DtAbsoluteTime firstTime, DtAbsoluteTime lastTime),
316  (DtResponse response, DtString& filename, DtAbsoluteTime& firstTime,
317  DtAbsoluteTime& lastTime));
318 
321  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 2,FileClosed,
322  (),
323  (DtResponse response));
324 
328  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 3,FileDoesNotExist,
329  (const DtString& filename),
330  (DtResponse response, DtString& filename));
331 
338  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 4,FileIncomplete,
339  (const DtString& filename, bool isIncomplete, bool hasLastPacket, bool lastPacketRecovered),
340  (DtResponse response, DtString& filename, bool& isIncomplete, bool& hasLastPacket,
341  bool& lastPacketRecovered));
342 
347  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 5,FileInvalid,
348  (const DtString& filename, const DtString& reason),
349  (DtResponse response, DtString& filename, DtString& reason));
350 
353  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 6,FileChanged,
354  (),
355  (DtResponse));
356 
359  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 7,FileSaved,
360  (),
361  (DtResponse));
362 
367  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 8, FileFormatCurrent,
368  (bool current, int version),
369  (DtResponse response,bool& current, int& version));
370 
374  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 10,PlaybackChanged,
375  (bool currentlyPlaying),
376  (DtResponse response, bool& currentlyPlaying));
377 
380  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 11,Restarted,
381  (),
382  (DtResponse));
383 
387  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 12,LoopAtEndChanged,
388  (bool enabled),
389  (DtResponse response, bool& enabled));
390 
394  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 13,PlayOnLoadChanged,
395  (bool play),
396  (DtResponse response,bool& play));
397 
401  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 20,PlaybackSpeedChanged,
402  (double speed),
403  (DtResponse response,double& speed));
404 
408  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 21,PausedChanged,
409  (bool paused),
410  (DtResponse response,bool& paused));
411 
415  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 22,SkippingPlaybackChanged,
416  (bool skippingPlayback),
417  (DtResponse response,bool& skippingPlayback));
418 
422  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 23,SkippingPlaybackThresholdChanged,
423  (double skippingPlaybackThreshold),
424  (DtResponse response, double& skippingPlaybackThreshold));
425 
429  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 24,JumpTimeChanged,
430  (DtAbsoluteTime jumpTime),
431  (DtResponse response, DtAbsoluteTime& jumpTime));
432 
437  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 25,FileList,
438  (bool listIsDirs, const std::vector<DtString>& loggerFiles),
439  (DtResponse response, bool& listIsDirs, std::vector<DtString>& loggerFiles));
440 
445  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 26,TapeDescriptionUpdated,
446  (const DtString& tapeDescription, const bool useDescription),
447  (DtResponse response, DtString& tapeDescription, bool& useDescription));
448 
452  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 27,PacketViewIntervalChanged,
453  (double packetViewInterval),
454  (DtResponse response, double& packetViewInterval));
455 
459  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 28,SkippingPlaybackInteractionsChanged,
460  (bool skippingPlaybackInteractions),
461  (DtResponse response, bool& skippingPlaybackInteractions));
462 
466  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 29,FileExpandingChanged,
467  (bool isExpanding),
468  (DtResponse response, bool& isExpanding));
469 
473  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 30,FollowingIntervalChanged,
474  (double followingInterval),
475  (const DtResponse response, double& followingInterval));
476 
480  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 31,FollowingExportIntervalChanged,
481  (double exportInterval),
482  (const DtResponse response, double& exportInterval));
483 
488  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 32,MediaPlaybackAdjustmentsChanged,
489  (double speedFactor, DtRelativeTime offset),
490  (const DtResponse response, double& speedFactor, DtRelativeTime& offset));
491 
495  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 33,MediaPlayToStreamConfigurationChanged,
496  (const DtString& pipelineConfiguration),
497  (DtResponse response, DtString& pipelineConfiguration));
498 
502  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 34, MediaPlayInWindowConfigurationChanged,
503  (const DtString& pipelineConfiguration),
504  (DtResponse response, DtString& pipelineConfiguration));
505 
510  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 35, MediaPlayByDefaultChanged,
511  (bool windowDefault, bool streamDefault),
512  (DtResponse response, bool& windowDefault, bool& streamDefault));
513 
518  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 36, MediaPlayToStreamParametersChanged,
519  (const DtString& host, int port),
520  (DtResponse response, DtString& host, int& port));
521 
525  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 37, MediaPlayInWindowOperationActive,
526  (bool isActive),
527  (DtResponse response, bool &isActive));
528 
532  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 38, MediaPlayToStreamOperationStatus,
533  (int status),
534  (DtResponse response, int &status));
535 
537 
540  static const DtLgrCommandId theLastResponseId = theBaseResponseId - 100;
541 
542  public:
543 
545  static const char* commandToString(int commandId);
546 
548  static const char* responseToString(int responseId);
549 
550  };
551 
552 }
553 
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:110
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:184
Factory for creating playback-related commands and responses.
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
static const DtLgrCommandType theCommandType
Command type for all playback commands from this factory.
Definition: lgrPlaybackCommandFactory.h:30
#define DT_FACTORY_RESPONSE_EXT(responseId, responseName, createParams, decodeParams)
Utility Macros for declaring Response in Factory.
Definition: lgrCommand.h:199
Contains lgrCmds library definitions.
Contains MAKLogger::DtLgrTimeCommandFactory class.
std::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:175
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 Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)