otsdaq  v2_05_02_indev
DataProducer.h
1 #ifndef _ots_DataProducer_h_
2 #define _ots_DataProducer_h_
3 
4 #include "otsdaq/DataManager/DataProducerBase.h"
5 #include "otsdaq/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, std::string bufferUID, std::string processorUID, unsigned int bufferSize = 100);
16  virtual ~DataProducer(void);
17 
18  virtual void startProcessingData(std::string runNumber);
19  virtual void stopProcessingData(void);
20 };
21 
22 } // namespace ots
23 
24 #endif