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(
15 std::string supervisorApplicationUID,
16 std::string bufferUID,
17 std::string processorUID,
19 const std::string& configurationPath)
21 , DataDecoder(supervisorApplicationUID, bufferUID, processorUID)
23 supervisorApplicationUID, bufferUID, processorUID, HighConsumerPriority)
24 ,
Configurable(theXDAQContextConfigTree, configurationPath)
29 DataDecoderConsumer::~DataDecoderConsumer(
void) {}
32 bool DataDecoderConsumer::workLoopThread(toolbox::task::WorkLoop* workLoop)
37 std::map<std::string, std::string> header;
43 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << processorUID_
44 <<
" Buffer: " << buffer << std::endl;
int read(D &buffer, H &header)
Copies the buffer into the passed parameters.