otsdaq  v2_04_01
DataProducer.h
1 #ifndef _ots_DataProducer_h_
2 #define _ots_DataProducer_h_
3 
4 #include "otsdaq-core/DataManager/DataProducerBase.h"
5 #include "otsdaq-core/WorkLoopManager/WorkLoop.h"
6 
7 namespace ots
8 {
9 // DataProducer
10 // This class provides base class functionality for Data Producer plugin classes to
11 // receive incoming streaming data and places it in a Buffer.
12 class DataProducer : public DataProducerBase, public virtual WorkLoop
13 {
14  public:
15  DataProducer(std::string supervisorApplicationUID,
16  std::string bufferUID,
17  std::string processorUID,
18  unsigned int bufferSize = 100);
19  virtual ~DataProducer(void);
20 
21  virtual void startProcessingData(std::string runNumber);
22  virtual void stopProcessingData(void);
23 };
24 
25 } // namespace ots
26 
27 #endif