1 #include "otsdaq/DataProcessorPlugins/DataDecoderConsumer.h"
2 #include "otsdaq/Macros/CoutMacros.h"
3 #include "otsdaq/Macros/ProcessorPluginMacros.h"
4 #include "otsdaq/MessageFacility/MessageFacility.h"
5 #include "otsdaq/TablePlugins/DataDecoderConsumerTable.h"
14 DataDecoderConsumer::DataDecoderConsumer(std::string supervisorApplicationUID,
15 std::string bufferUID,
16 std::string processorUID,
18 const std::string& configurationPath)
20 , DataDecoder(supervisorApplicationUID, bufferUID, processorUID)
21 ,
DataConsumer(supervisorApplicationUID, bufferUID, processorUID, HighConsumerPriority)
22 ,
Configurable(theXDAQContextConfigTree, configurationPath)
27 DataDecoderConsumer::~DataDecoderConsumer(
void) {}
30 bool DataDecoderConsumer::workLoopThread(toolbox::task::WorkLoop* workLoop)
35 std::map<std::string, std::string> header;
37 if(DataConsumer::read(buffer, header) < 0)
41 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << processorUID_ <<
" Buffer: " << buffer << std::endl;