STFishFinder API  API version 0.0.0, Documentation version 3 -PRELIMINARY-
STFF-Replay.h
Go to the documentation of this file.
1 ///
2 /// @file STFF-Replay.h
3 ///
4 /// Header file for the STFF::Replay class.
5 ///
6 /// @copyright
7 /// Copyright (c) 2012-2015 Sifferman Technology, LLC. All rights reserved.
8 ///
9 
10 #ifndef STFF_Replay_h_
11 #define STFF_Replay_h_
12 
13 
14 // TODO:
15 // Need the following member functions:
16 // - Play() ?
17 // - GetDurationMs()
18 // - SetCounterMs()
19 // - GetCounterMs()
20 // Do we want to specify the frequency to play (200 kHz/ 50 kHz)?
21 // In the original data, the frequency was specified by STFishFinder::SetFrequencyMode().
22 // Maybe when recording, we save the frequency mode in the Replay object,
23 // and when playing back, the frequency mode is initialized from the Replay object.
24 //
25 // Maybe when playing back, we give the user the choice to playback with original settings,
26 // or to playback with current settings. (Now we're back to full API playback)
27 //
28 // Simulator mode doesn't need to track original settings. Only current settings
29 // matter.
30 //
31 // A Replay object should contain API calls, not Json messages.
32 //
33 // When creating a Replay object, store the API version in the object, in case it
34 // is played back with a different API version.
35 //
36 
37 
38 namespace STFF {
39 
40  ////////////////////////////////////////////////////////////////////
41  /// @class Replay
42  /// Replay class.
43  ///
44  /// The Replay class contains data and methods pertaining to the
45  /// recording and playback of data received from a black box
46  /// fish finder.
47  ///
48  class Replay {
49 
50  public:
51 
52  ////////////////////////////////////////////////////////////////////
53  /// @fn Replay ()
54  ///
55  /// This is the @ref Replay class constructor.
56  /// The Replay object created with this constructor
57  /// is empty, containing no data.
58  ///
59  /// @returns (not applicable)
60  ///
61  ///
62  Replay ();
63 
64 
65  ////////////////////////////////////////////////////////////////////
66  /// @fn ~Replay ()
67  ///
68  /// This is the @ref Replay destructor.
69  ///
70  /// @returns (not applicable)
71  ///
72  ~Replay ();
73 
74 
75  ////////////////////////////////////////////////////////////////////
76  /// @fn Replay (const Replay &)
77  ///
78  /// This is the @ref Replay copy constructor.
79  ///
80  /// @param const Replay &
81  /// reference to an existing Replay object
82  ///
83  /// @returns Replay
84  /// a new Replay object that is a copy of the
85  /// original
86  ///
87  Replay (const Replay &);
88 
89 
90  ////////////////////////////////////////////////////////////////////
91  /// @fn Replay &operator= (const Replay &)
92  ///
93  /// This is the @ref Replay assignment operator.
94  ///
95  /// @param const Replay &
96  /// reference to a first existing Replay object
97  /// (right hand side of assignment)
98  ///
99  /// @returns const Replay &
100  /// reference to a second existing Replay object
101  /// (left hand side of assignment)
102  ///
103  const Replay &operator= (const Replay &);
104 
105 
106  private:
107 
108  class impl;
109  impl *m_pimpl;
110 
111  }; // class Replay
112 
113 } // namespace STFF
114 
115 #endif // #defined (STFF_Replay_h_)
Replay()
This is the Replay class constructor.
Replay class.
Definition: STFF-Replay.h:48
~Replay()
This is the Replay destructor.
This is the namespace containing the platform-independent STFishFinder API.
const Replay & operator=(const Replay &)
This is the Replay assignment operator.