OpenDaVINCI  4.15.3
RecordingContainer.h
Go to the documentation of this file.
1 
20 #ifndef CONTEXT_BASE_RECORDINGCONTAINER_H_
21 #define CONTEXT_BASE_RECORDINGCONTAINER_H_
22 
23 #include <memory>
24 #include <string>
25 
28 
29 namespace odcore { namespace wrapper { class Time; } }
30 namespace odtools { namespace recorder { class Recorder; } }
31 
32 namespace odcontext {
33  namespace base {
34 
35  using namespace std;
36 
41  private:
48 
54  RecordingContainer& operator=(const RecordingContainer&);
55 
56  public:
63  RecordingContainer(const float &freq, const string &urlFileName, const uint32_t &memorySegmentSize, const uint32_t &numberOfSegments);
64 
65  virtual ~RecordingContainer();
66 
67  virtual void setup();
68 
69  virtual void tearDown();
70 
71  virtual void report(const odcore::wrapper::Time &t);
72 
73  private:
74  virtual float getFrequency() const;
75 
76  private:
77  float m_freq;
78  string m_urlFileName;
79  uint32_t m_memorySegmentSize;
80  uint32_t m_numberOfSegments;
81  unique_ptr<odtools::recorder::Recorder> m_recorder;
82  };
83 
84  }
85 } // odcontext::base
86 
87 #endif /*CONTEXT_BASE_RECORDINGCONTAINER_H_*/
Definition: Recorder.h:44
Definition: SystemReportingComponent.h:36
Definition: Time.h:34
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: RecordingContainer.h:40