1 #ifndef _ots_DataConsumer_h_
2 #define _ots_DataConsumer_h_
6 #include "otsdaq/DataManager/DataProcessor.h"
24 std::string bufferUID,
25 std::string processorUID,
32 virtual void configure(
void) { ; }
34 virtual void stopProcessingData(
void);
37 template<
class D,
class H>
38 int read(D& buffer, H& header)
41 ->
read(buffer, header, processorUID_);
45 template<
class D,
class H>
46 int read(D*& buffer, H*& header)
49 ->
read(buffer, header, processorUID_);
52 template<
class D,
class H>
53 int setReadSubBuffer(
void)
56 ->getLastReadBuffer(DataProcessor::processorUID_)
57 .setReadSubBuffer(DataProcessor::processorUID_);
60 template<
class D,
class H>
63 return static_cast<CircularBuffer<D, H>*
>(theCircularBuffer_)
64 ->
read(buffer, processorUID_);
int read(D &buffer, H &header)
Copies the buffer into the passed parameters.
virtual void startProcessingData(std::string runNumber)
virtual void registerToBuffer(void)
mirror DataProducerBase::registerToBuffer
int read(D *&buffer, H *&header)
Fast version where you point to the buffer without copying.