OpenDaVINCI  4.15.3
PlaybackContainer.h
Go to the documentation of this file.
1 
20 #ifndef CONTEXT_BASE_PLAYBACKCONTAINER_H_
21 #define CONTEXT_BASE_PLAYBACKCONTAINER_H_
22 
23 #include <memory>
24 #include <string>
25 
28 
29 namespace odcore { namespace wrapper { class Time; } }
30 namespace odtools { namespace player { class Player; } }
31 
32 namespace odcontext {
33  namespace base {
34 
35 class SendContainerToSystemsUnderTest;
36 
37  using namespace std;
38 
43  private:
50 
56  PlaybackContainer& operator=(const PlaybackContainer&);
57 
58  public:
65  PlaybackContainer(const float &freq, const string &urlFileName, const uint32_t &memorySegmentSize, const uint32_t &numberOfSegments);
66 
67  virtual ~PlaybackContainer();
68 
69  virtual void setup();
70 
71  virtual void tearDown();
72 
73  virtual void step(const odcore::wrapper::Time &t, SendContainerToSystemsUnderTest &sender);
74 
75  private:
76  virtual float getFrequency() const;
77 
78  private:
79  float m_freq;
80  string m_urlFileName;
81  uint32_t m_memorySegmentSize;
82  uint32_t m_numberOfSegments;
83  unique_ptr<odtools::player::Player> m_player;
84  };
85 
86  }
87 } // odcontext::base
88 
89 #endif /*CONTEXT_BASE_PLAYBACKCONTAINER_H_*/
Definition: Time.h:34
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: PlaybackContainer.h:42
Definition: SystemFeedbackComponent.h:38
Definition: Player.h:64
Definition: SendContainerToSystemsUnderTest.h:34