OpenDaVINCI  4.16.0
SharedDataWriter.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_TOOLS_RECORDER_SHAREDDATAWRITER_H_
21 #define OPENDAVINCI_TOOLS_RECORDER_SHAREDDATAWRITER_H_
22 
23 #include <iosfwd>
24 #include <map>
25 
27 #include <memory>
29 
30 namespace odcore { namespace base { class FIFOQueue; } }
31 
32 namespace odtools {
33 
34  namespace recorder {
35 
36  using namespace std;
37 
42  private:
50  SharedDataWriter(const SharedDataWriter &/*obj*/);
51 
60  SharedDataWriter& operator=(const SharedDataWriter &/*obj*/);
61 
62  public:
68  SharedDataWriter(std::shared_ptr<ostream> out, map<uint32_t, char*> &mapOfMemories, odcore::base::FIFOQueue &bufferIn, odcore::base::FIFOQueue &bufferOut);
69 
70  virtual ~SharedDataWriter();
71 
72  void recordEntries();
73 
74  private:
75  virtual void beforeStop();
76 
77  virtual void run();
78 
79  private:
80  std::shared_ptr<ostream> m_out;
81 
82  map<uint32_t, char*> &m_mapOfMemories;
83 
84  odcore::base::FIFOQueue &m_bufferIn;
85  odcore::base::FIFOQueue &m_bufferOut;
86  };
87 
88  } // recorder
89 } // tools
90 
91 #endif /*OPENDAVINCI_TOOLS_RECORDER_SHAREDDATAWRITER_H_*/
Definition: Service.h:62
Definition: SharedDataWriter.h:41
Definition: FIFOQueue.h:38