1 #include "otsdaq/DataProcessorPlugins/TCPDataStreamerConsumer.h"
2 #include "otsdaq/Macros/CoutMacros.h"
3 #include "otsdaq/Macros/ProcessorPluginMacros.h"
4 #include "otsdaq/MessageFacility/MessageFacility.h"
14 std::string supervisorApplicationUID,
15 std::string bufferUID,
16 std::string processorUID,
18 const std::string& configurationPath)
20 , TCPDataStreamerBase(theXDAQContextConfigTree.getNode(configurationPath)
21 .getNode(
"StreamToPort")
22 .getValue<unsigned int>())
24 supervisorApplicationUID, bufferUID, processorUID, HighConsumerPriority)
25 ,
Configurable(theXDAQContextConfigTree, configurationPath)
30 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << std::endl;
31 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << std::endl;
32 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << std::endl;
33 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << std::endl;
34 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << std::endl;
35 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ << std::endl;
37 std::cout << __COUT_HDR_FL__ << __PRETTY_FUNCTION__ <<
"done!" << std::endl;
41 TCPDataStreamerConsumer::~TCPDataStreamerConsumer(
void) {}
44 bool TCPDataStreamerConsumer::workLoopThread(toolbox::task::WorkLoop* workLoop)
47 return WorkLoop::continueWorkLoop_;
51 void TCPDataStreamerConsumer::fastRead(
void)
68 TCPDataStreamerBase::send(*
dataP_);
69 DataConsumer::setReadSubBuffer<std::string, std::map<std::string, std::string>>();
73 void TCPDataStreamerConsumer::slowRead(
void)
89 TCPDataStreamerBase::send(
data_);
int read(D &buffer, H &header)
Copies the buffer into the passed parameters.
std::string data_
For slow read.
TCPDataStreamerConsumer(std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, const ConfigurationTree &theXDAQContextConfigTree, const std::string &configurationPath)
std::string * dataP_
For fast read.