otsdaq  v1_01_04
 All Classes Namespaces Functions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ots::TCPDataStreamerConsumer Class Reference
+ Inheritance diagram for ots::TCPDataStreamerConsumer:

Public Member Functions

 TCPDataStreamerConsumer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, const ConfigurationTree &theXDAQContextConfigTree, const std::string &configurationPath)
 
- Public Member Functions inherited from ots::TCPDataStreamerBase
 TCPDataStreamerBase (unsigned int port)
 
int send (const std::string &buffer)
 
int send (const std::vector< uint32_t > &buffer)
 
- Public Member Functions inherited from ots::TCPSocket
 TCPSocket (const std::string &senderHost, unsigned int senderPort, int receiveBufferSize=0x10000)
 
 TCPSocket (unsigned int listenPort, int sendBufferSize=0x10000)
 
void connect ()
 
int send (const uint8_t *data, size_t size)
 
int send (const std::string &buffer)
 
int send (const std::vector< uint32_t > &buffer)
 
int send (const std::vector< uint16_t > &buffer)
 
int receive (uint8_t *buffer, unsigned int timeoutSeconds, unsigned int timeoutUSeconds)
 
int receive (std::string &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0)
 
int receive (std::vector< uint32_t > &buffer, unsigned int timeoutSeconds=1, unsigned int timeoutUSeconds=0)
 
- Public Member Functions inherited from ots::DataConsumer
 DataConsumer (std::string supervisorApplicationUID, std::string bufferUID, std::string processorUID, ConsumerPriority priority)
 
void registerToBuffer (void)
 
virtual void startProcessingData (std::string runNumber)
 
virtual void stopProcessingData (void)
 
template<class D , class H >
int read (D &buffer, H &header)
 
template<class D , class H >
int read (D *&buffer, H *&header)
 
template<class D , class H >
int setReadSubBuffer (void)
 
template<class D , class H >
int read (D &buffer)
 
ConsumerPriority getPriority (void)
 
- 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)
 
std::string getProcessorID (void)
 
void setCircularBuffer (CircularBufferBase *circularBuffer)
 
- Public Member Functions inherited from ots::WorkLoop
 WorkLoop (std::string name)
 
void startWorkLoop (void)
 
bool stopWorkLoop (void)
 
bool isActive (void)
 
- Public Member Functions inherited from ots::Configurable
 Configurable (const ConfigurationTree &theXDAQContextConfigTree, const std::string &theConfigurationPath)
 

Protected Member Functions

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

Protected Attributes

std::string * dataP_
 
std::map< std::string,
std::string > * 
headerP_
 
std::string data_
 
std::map< std::string,
std::string > 
header_
 
- Protected Attributes inherited from ots::TCPSocket
std::string host_
 
unsigned int port_
 
int TCPSocketNumber_
 
int SendSocket_
 
bool isSender_
 
int bufferSize_
 
size_t chunkSize_
 
std::mutex socketMutex_
 
- 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_
 

Additional Inherited Members

- Public Types inherited from ots::DataConsumer
enum  ConsumerPriority { LowConsumerPriority, HighConsumerPriority }
 

Detailed Description

Definition at line 15 of file TCPDataStreamerConsumer.h.


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