MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrPlaybackInterface.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 lgrPlaybackInterface_H_
10 #define lgrPlaybackInterface_H_
11 
12 #include "lgrTimeInterface.h"
14 
15 #include <vlutil/vlString.h>
16 #include <lgrUtil/signalSlot.h>
17 
18 namespace MAKLogger
19 {
20  class DtLogger;
21  class DtLgrPlaybackDriver;
22  class DtLgrPlaybackCommandFactory;
23 
28  {
29  public:
30 
31  //Used to shorten code.
33 
34  //Used to shorten code.
36 
38  static DtLgrPlaybackInterface* create(DtLogger&);
39 
42  static DtLgrPlaybackInterface* createNonThreadsafe(DtLogger& logger,
43  const DtLgrPlaybackDriver& driver);
44 
45  protected:
46 
49 
50  public:
51 
53  virtual ~DtLgrPlaybackInterface();
54 
55  private:
60  public:
61 
63  virtual void openFile(const DtString& filename) const;
64 
66  virtual void closeFile() const;
67 
69  virtual void saveFile(const bool reopenAfterSave = true) const;
70 
73  virtual void saveFileAs(const DtString& filename, const DtString& description,
74  const bool writeDescription, const bool reopenAfterSave = true) const;
75 
77  virtual void revertFile() const;
78 
82  virtual void updateTapeDescription(const DtString description);
83 
85  virtual void play() const;
86 
88  virtual void stop() const;
89 
91  virtual void pause() const;
92 
94  virtual void unpause() const;
95 
97  virtual void togglePlayPause() const;
98 
100  virtual void restart() const;
101 
103  virtual void jumpToTime(DtAbsoluteTime time) const;
104 
107  virtual void setPlaybackSpeed(double speedMultiplier, bool skipping) const;
108 
111  virtual void setSkippingPlaybackThreshold(double skippingThreshold) const;
112 
114  virtual void setSkippingPlaybackInteractions(bool skippingInteractions) const;
115 
117  virtual void setPacketViewInterval(double viewInterval) const;
118 
120  virtual void setFollowingInterval(double interval) const;
121 
123  virtual void setFollowingExportInterval(double interval) const;
124 
126  virtual void setStartStopTimes(DtAbsoluteTime startTime,
127  DtAbsoluteTime stopTime) const;
128 
130  virtual void setLoopAtEnd(bool enable) const;
131 
133  virtual void setPlayOnLoad(bool playOnLoad) const;
134 
136  virtual void setBackupOnSave(bool backup) const;
137 
139  virtual void recoverLastPacket();
140 
142 
144  virtual bool isFileLoaded() const;
145 
147  virtual bool isFileSaved() const;
148 
150  virtual bool isPlaying() const;
151 
153  virtual bool isStopped() const;
154 
156  virtual bool isPaused() const;
157 
159  virtual bool loopAtEnd() const;
160 
162  virtual bool playOnLoad() const;
163 
165  virtual const DtString& filename() const;
166 
168  virtual double playbackSpeed() const;
169 
171  virtual bool skippingPlayback() const;
172 
174  virtual double skippingPlaybackThreshold() const;
175 
177  virtual bool skippingPlaybackInteractions() const;
178 
180  virtual double packetViewInterval() const;
181 
183  virtual double followingInterval() const;
184 
186  virtual double followingExportInterval() const;
187 
189  virtual bool isFileFormatCurrent() const;
190 
192  virtual bool isFileIncomplete() const;
193 
195  virtual bool hasLastPacket() const;
196 
198  virtual bool lastPacketRecovered() const;
199 
202  virtual bool tapeDescriptionUpdated() const;
203 
205  virtual DtString tapeDescription() const;
206 
208  virtual int fileVersion() const;
209 
211  virtual bool isFileExpanding() const;
212 
214 
225 
230 
231  protected:
232 
234 
235 
237  void fileOpened(DtResponse);
238 
240  void fileClosed(DtResponse);
241 
243  void fileChanged(DtResponse);
244 
246  void fileSaved(DtResponse);
247 
249  void playbackChanged(DtResponse);
250 
252  void playbackSpeedChanged(DtResponse);
253 
255  void skippingPlaybackChanged(DtResponse);
256 
258  void skippingPlaybackThresholdChanged(DtResponse);
259 
261  void skippingPlaybackInteractionsChanged(DtResponse);
262 
264  void packetViewIntervalChanged(DtResponse);
265 
267  void followingIntervalChanged(DtResponse);
268 
270  void followingExportIntervalChanged(DtResponse);
271 
273  void fileInvalid(DtResponse);
274 
276  void fileDoesNotExist(DtResponse);
277 
279  void fileIncomplete(DtResponse);
280 
282  void loopAtEndChanged(DtResponse);
283 
285  void playOnLoadChanged(DtResponse);
286 
288  void fileFormatCurrent(DtResponse);
289 
291  void pausedChanged(DtResponse);
292 
294  void tapeDescriptionChanged(DtResponse);
295 
297  void fileExpandingChanged(DtResponse);
298 
300  void jumpTimeChanged(DtResponse response);
302 
304  void connectResponseHandlers();
305 
307  void connectResponse(DtLgrCommandId,
309 
310  protected:
311 
332  DtString myFilename;
336 
337  };
338 
339 }
340 
341 #endif

Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)