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-2026 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 
306  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 43, RepairAndReopen,
307  (const DtString& repairedFilename),
308  (const DtCommand& command, DtString& repairedFilename));
309 
312  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 44, SetMediaJumpSyncTimeout,
313  (double timeout),
314  (const DtCommand& command, double& timeout));
315 
320  DT_FACTORY_COMMAND_EXT(theBaseCommandId + 45, LoadPlaybackMediaInWindow,
321  (),
322  (DtCommand& command));
323 
325 
328  static const DtLgrCommandId theLastCommandId = theBaseCommandId + 100;
329 
331  static const DtLgrCommandId theBaseResponseId = DtLgrTimeCommandFactory::theLastResponseId;
332 
334 
335 
342  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 1,FileOpened,
343  (const DtString& filename, DtAbsoluteTime firstTime, DtAbsoluteTime lastTime),
344  (DtResponse response, DtString& filename, DtAbsoluteTime& firstTime,
345  DtAbsoluteTime& lastTime));
346 
349  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 2,FileClosed,
350  (),
351  (DtResponse response));
352 
356  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 3,FileDoesNotExist,
357  (const DtString& filename),
358  (DtResponse response, DtString& filename));
359 
366  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 4,FileIncomplete,
367  (const DtString& filename, bool isIncomplete, bool hasLastPacket, bool lastPacketRecovered),
368  (DtResponse response, DtString& filename, bool& isIncomplete, bool& hasLastPacket,
369  bool& lastPacketRecovered));
370 
375  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 5,FileInvalid,
376  (const DtString& filename, const DtString& reason),
377  (DtResponse response, DtString& filename, DtString& reason));
378 
381  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 6,FileChanged,
382  (),
383  (DtResponse));
384 
387  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 7,FileSaved,
388  (),
389  (DtResponse));
390 
395  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 8, FileFormatCurrent,
396  (bool current, int version),
397  (DtResponse response,bool& current, int& version));
398 
402  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 10,PlaybackChanged,
403  (bool currentlyPlaying),
404  (DtResponse response, bool& currentlyPlaying));
405 
408  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 11,Restarted,
409  (),
410  (DtResponse));
411 
415  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 12,LoopAtEndChanged,
416  (bool enabled),
417  (DtResponse response, bool& enabled));
418 
422  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 13,PlayOnLoadChanged,
423  (bool play),
424  (DtResponse response,bool& play));
425 
429  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 20,PlaybackSpeedChanged,
430  (double speed),
431  (DtResponse response,double& speed));
432 
436  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 21,PausedChanged,
437  (bool paused),
438  (DtResponse response,bool& paused));
439 
443  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 22,SkippingPlaybackChanged,
444  (bool skippingPlayback),
445  (DtResponse response,bool& skippingPlayback));
446 
450  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 23,SkippingPlaybackThresholdChanged,
451  (double skippingPlaybackThreshold),
452  (DtResponse response, double& skippingPlaybackThreshold));
453 
457  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 24,JumpTimeChanged,
458  (DtAbsoluteTime jumpTime),
459  (DtResponse response, DtAbsoluteTime& jumpTime));
460 
465  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 25,FileList,
466  (bool listIsDirs, const std::vector<DtString>& loggerFiles),
467  (DtResponse response, bool& listIsDirs, std::vector<DtString>& loggerFiles));
468 
473  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 26,TapeDescriptionUpdated,
474  (const DtString& tapeDescription, const bool useDescription),
475  (DtResponse response, DtString& tapeDescription, bool& useDescription));
476 
480  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 27,PacketViewIntervalChanged,
481  (double packetViewInterval),
482  (DtResponse response, double& packetViewInterval));
483 
487  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 28,SkippingPlaybackInteractionsChanged,
488  (bool skippingPlaybackInteractions),
489  (DtResponse response, bool& skippingPlaybackInteractions));
490 
494  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 29,FileExpandingChanged,
495  (bool isExpanding),
496  (DtResponse response, bool& isExpanding));
497 
501  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 30,FollowingIntervalChanged,
502  (double followingInterval),
503  (const DtResponse response, double& followingInterval));
504 
508  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 31,FollowingExportIntervalChanged,
509  (double exportInterval),
510  (const DtResponse response, double& exportInterval));
511 
516  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 32,MediaPlaybackAdjustmentsChanged,
517  (double speedFactor, DtRelativeTime offset),
518  (const DtResponse response, double& speedFactor, DtRelativeTime& offset));
519 
523  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 33,MediaPlayToStreamConfigurationChanged,
524  (const DtString& pipelineConfiguration),
525  (DtResponse response, DtString& pipelineConfiguration));
526 
530  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 34, MediaPlayInWindowConfigurationChanged,
531  (const DtString& pipelineConfiguration),
532  (DtResponse response, DtString& pipelineConfiguration));
533 
538  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 35, MediaPlayByDefaultChanged,
539  (bool windowDefault, bool streamDefault),
540  (DtResponse response, bool& windowDefault, bool& streamDefault));
541 
546  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 36, MediaPlayToStreamParametersChanged,
547  (const DtString& host, int port),
548  (DtResponse response, DtString& host, int& port));
549 
553  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 37, MediaPlayInWindowOperationActive,
554  (bool isActive),
555  (DtResponse response, bool &isActive));
556 
560  DT_FACTORY_RESPONSE_EXT(theBaseResponseId - 38, MediaPlayToStreamOperationStatus,
561  (int status),
562  (DtResponse response, int &status));
563 
565 
568  static const DtLgrCommandId theLastResponseId = theBaseResponseId - 100;
569 
570  public:
571 
573  static const char* commandToString(int commandId);
574 
576  static const char* responseToString(int responseId);
577 
578  };
579 
580 }
581 
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 Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)