1 #ifndef _ots_DataConsumer_h_
2 #define _ots_DataConsumer_h_
6 #include "otsdaq/DataManager/DataProcessor.h"
23 DataConsumer(std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, ConsumerPriority priority);
26 virtual void registerToBuffer(
void);
29 virtual void startProcessingData(std::string runNumber);
30 virtual void stopProcessingData(
void);
33 template<
class D,
class H>
34 int read(D& buffer, H& header)
36 return static_cast<CircularBuffer<D, H>*
>(theCircularBuffer_)->read(buffer, header, processorUID_);
40 template<
class D,
class H>
41 int read(D*& buffer, H*& header)
43 return static_cast<CircularBuffer<D, H>*
>(theCircularBuffer_)->read(buffer, header, processorUID_);
46 template<
class D,
class H>
47 int setReadSubBuffer(
void)
50 ->getLastReadBuffer(DataProcessor::processorUID_)
51 .setReadSubBuffer(DataProcessor::processorUID_);
54 template<
class D,
class H>
60 ConsumerPriority getPriority(
void);
63 ConsumerPriority priority_;