otsdaq  v2_05_02_indev
ots::TCPDataListenerProducer Class Reference
Inheritance diagram for ots::TCPDataListenerProducer:
ots::DataProducer ots::Configurable ots::TCPSubscribeClient ots::DataProducerBase ots::WorkLoop ots::TCPReceiverSocket ots::TCPClientBase ots::DataProcessor ots::TCPSocket ots::TCPSocket

Public Member Functions

 TCPDataListenerProducer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, const ConfigurationTree &theXDAQContextConfigTree, const std::string &configurationPath)
 
virtual void startProcessingData (std::string runNumber) override
 
virtual void stopProcessingData (void) override
 
- Public Member Functions inherited from ots::DataProducer
 DataProducer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, unsigned int bufferSize=100)
 
- Public Member Functions inherited from ots::DataProducerBase
 DataProducerBase (const std::string &supervisorApplicationUID, const std::string &bufferUID, const std::string &processorUID, unsigned int bufferSize=100)
 
virtual void registerToBuffer (void)
 
template<class D , class H >
int attachToEmptySubBuffer (D *&data, H *&header)
 
template<class D , class H >
int setWrittenSubBuffer (void)
 
template<class D , class H >
int write (const D &buffer)
 
template<class D , class H >
int write (const D &buffer, const H &header)
 
unsigned int getBufferSize (void) const
 
- Public Member Functions inherited from ots::DataProcessor
 DataProcessor (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID)
 
virtual void pauseProcessingData (void)
 
virtual void resumeProcessingData (void)
 
const std::string & getProcessorID (void) const
 
void setCircularBuffer (CircularBufferBase *circularBuffer)
 
- Public Member Functions inherited from ots::WorkLoop
 WorkLoop (const std::string &name)
 
void startWorkLoop (void)
 
bool stopWorkLoop (void)
 
bool isActive (void) const
 
- Public Member Functions inherited from ots::Configurable
 Configurable (const ConfigurationTree &theXDAQContextConfigTree, const std::string &theConfigurationPath)
 
ConfigurationTree getSelfNode () const
 
const ConfigurationManagergetConfigurationManager () const
 
const std::string & getContextUID () const
 
const std::string & getApplicationUID () const
 
unsigned int getApplicationLID () const
 
std::string getContextAddress () const
 
unsigned int getContextPort () const
 
- Public Member Functions inherited from ots::TCPSubscribeClient
 TCPSubscribeClient (const std::string &serverIP, int serverPort)
 
- Public Member Functions inherited from ots::TCPReceiverSocket
 TCPReceiverSocket (int socketId=invalidSocketId)
 
 TCPReceiverSocket (TCPReceiverSocket &&theTCPReceiverSocket)=default
 
template<class T >
receive (void)
 
std::string receivePacket ()
 
void setReceiveTimeout (unsigned int timeoutSeconds, unsigned int timeoutMicroSeconds)
 
- Public Member Functions inherited from ots::TCPSocket
 TCPSocket (int socketId=invalidSocketId)
 
 TCPSocket (TCPSocket &&move)
 
TCPSocketoperator= (TCPSocket &&move)
 
void swap (TCPSocket &other)
 
 TCPSocket (TCPSocket const &)=delete
 
TCPSocketoperator= (TCPSocket const &)=delete
 
int getSocketId (void) const
 
void open (void)
 
void close (void)
 
void sendClose (void)
 
- Public Member Functions inherited from ots::TCPClientBase
 TCPClientBase (const std::string &serverIP, int serverPort)
 
bool connect (int retry=-1, unsigned int sleepMilliSeconds=1000)
 
bool disconnect (void)
 

Protected Member Functions

bool workLoopThread (toolbox::task::WorkLoop *workLoop) override
 
void slowWrite (void)
 
void fastWrite (void)
 
- Protected Member Functions inherited from ots::WorkLoop
const std::string & getWorkLoopName (void) const
 

Protected Attributes

std::string data_
 
std::map< std::string,
std::string > 
header_
 
std::string * dataP_
 
std::map< std::string,
std::string > * 
headerP_
 
std::string ipAddress_
 
unsigned short port_
 
std::string dataType_
 
- Protected Attributes inherited from ots::DataProcessor
const std::string supervisorApplicationUID_
 
const std::string bufferUID_
 
const std::string processorUID_
 
CircularBufferBasetheCircularBuffer_
 
- Protected Attributes inherited from ots::WorkLoop
volatile bool continueWorkLoop_
 
- Protected Attributes inherited from ots::Configurable
const ConfigurationTree theXDAQContextConfigTree_
 
const std::string theConfigurationPath_
 
const std::string theConfigurationRecordName_
 

Additional Inherited Members

- Static Protected Attributes inherited from ots::TCPSocket
static constexpr int invalidSocketId = -1
 

Detailed Description

Definition at line 14 of file TCPDataListenerProducer.h.


The documentation for this class was generated from the following files: