MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
remoteControlRecordInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2011 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 
11 #pragma once
12 
15 #include <lgrUtil/absoluteTime.h>
16 
17 #include <vlutil/vlString.h>
18 
19 class DtFilename;
20 
21 namespace MAKLogger
22 {
23 
27  {
28  public:
29 
31 
32 
34 
35  private:
40 
41  public:
42 
44 
45  virtual bool isFileOpened() const;
46  virtual void resetIsFileOpened(bool fileOpened);
48 
50 
51  virtual bool isRecording() const;
52  virtual void resetIsRecording(bool recording);
54 
56 
57  virtual bool isPaused() const;
58  virtual void resetIsPaused(bool paused);
60 
62 
63  virtual bool isPauseOnRecord() const;
64  virtual void resetIsPauseOnRecord(bool pauseOnRecord);
66 
68 
69 
71  virtual DtSequenceNumber newFile(const DtFilename& filename, const DtString& description,
72  bool overwrite, bool constructFileNameAndPath, bool constructMediaPipeline,
73  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
74 
77  virtual DtSequenceNumber closeFile(
78  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
79 
82  virtual DtSequenceNumber record(bool multipleFiles,
83  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
84 
87  virtual DtSequenceNumber cancel(
88  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
89 
92  virtual DtSequenceNumber stop(bool closeAndOpenForPlayback,
93  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
94 
97  virtual DtSequenceNumber pause(
98  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
99 
102  virtual DtSequenceNumber unpause(
103  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
104 
106  virtual DtSequenceNumber setPauseOnRecord(bool enable,
107  const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
108 
110 
112  virtual void processResponse(const DtLgrResponsePdu& responsePdu);
113 
115  virtual void clearReceivedResponseCounts();
116 
117  public:
118 
120  static const char* commandToString(int command);
121 
122  protected:
123 
125 
126 
128  virtual void newFileOpened(const DtEntityIdentifier& source, const DtString& filename);
129 
132  virtual void newFileOpened(const DtString& filename);
133 
137  virtual void newFileFailed(const DtEntityIdentifier& source, const DtString& reason);
138 
140  virtual void fileClosed(const DtEntityIdentifier& source);
141 
144  virtual void fileClosed();
145 
147  virtual void recordingChanged(const DtEntityIdentifier& source, bool recordingState);
148 
151  virtual void recordingChanged(bool recordingState);
152 
154  virtual void recordingPausedChanged(const DtEntityIdentifier& source, bool paused);
155 
158  virtual void recordingPausedChanged(bool paused);
159 
161  virtual void fileEmptyChanged(const DtEntityIdentifier& source);
162 
165  virtual void fileEmptyChanged();
166 
168  virtual void pauseOnRecordAsChanged(const DtEntityIdentifier& source, bool enable);
169 
172  virtual void pauseOnRecordAsChanged(bool enable);
173 
175 
176  protected:
177 
178  DtFilename myFileName;
187 
195 
196  };
197 }
int myReceivedNewFileFailed
Definition: remoteControlRecordInterface.h:190
bool myIsPauseOnRecord
Definition: remoteControlRecordInterface.h:185
int myReceivedPauseOnRecordAsChanged
Definition: remoteControlRecordInterface.h:194
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
DtFilename myFileName
Definition: remoteControlRecordInterface.h:178
#define DT_DLL_LGR_RCI
Definition: lgrRemoteControlInterface.h:18
bool myIsFileRecording
Definition: remoteControlRecordInterface.h:181
bool myIsFileOpened
Definition: remoteControlRecordInterface.h:179
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
Primary interface to remote loggers.
Definition: remoteControlInterface.h:73
Contains MAKLogger::DtRemoteControlDomainInterface for handling playback remote control messages...
int myReceivedRecordingPausedChanged
Definition: remoteControlRecordInterface.h:192
DtU32 DtSequenceNumber
Definition: remoteControlInterface.h:48
Base class for handling commands and responses.
Definition: remoteControlDomainInterface.h:27
int myReceivedFileClosed
Definition: remoteControlRecordInterface.h:189
int myReceivedFileEmptyChanged
Definition: remoteControlRecordInterface.h:193
bool myPendingIsPaused
Definition: remoteControlRecordInterface.h:184
int myReceivedNewFileOpened
Definition: remoteControlRecordInterface.h:188
static const DtEntityIdentifier & wildcardAddress()
The wildcard address.
Contains MAKLogger::DtAbsoluteTime and MAKLogger::DtRelativeTime classes.
int myReceivedRecordingChanged
Definition: remoteControlRecordInterface.h:191
bool myIsPaused
Definition: remoteControlRecordInterface.h:183
Instances of DtLgrResponsePdu are to respond to a remote controller with the result of a logger comma...
Definition: lcResponse.h:19
bool myPendingIsPauseOnRecord
Definition: remoteControlRecordInterface.h:186
bool myPendingIsFileOpened
Definition: remoteControlRecordInterface.h:180
Responsible for invoking record commands and processing record responses.
Definition: remoteControlRecordInterface.h:26
bool myPendingIsFileRecording
Definition: remoteControlRecordInterface.h:182

Document ID: Generated on Thu Jul 14 15:45:33 EDT 2022 from SVN revision 244827
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)