EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | List of all members
eudaq::Producer Class Reference

#include <Producer.hh>

Inheritance diagram for eudaq::Producer:
eudaq::CommandReceiver eudaq::DataSender eudaq::DummyProducer ExampleProducer PyProducer TestProducer

Public Member Functions

 Producer (const std::string &name, const std::string &runcontrol)
 
virtual void OnData (const std::string &param)
 
- Public Member Functions inherited from eudaq::CommandReceiver
 CommandReceiver (const std::string &type, const std::string &name, const std::string &runcontrol, bool startthread=true)
 
void SetConnectionState (ConnectionState::State state=ConnectionState::STATE_UNCONF, const std::string &info="")
 
int GetConnectionState ()
 
virtual void OnInitialise (const Configuration &param)
 
virtual void OnConfigure (const Configuration &param)
 
virtual void OnPrepareRun (unsigned)
 
virtual void OnStartRun (unsigned)
 
virtual void OnStopRun ()
 
virtual void OnTerminate ()
 
virtual void OnReset ()
 
virtual void OnStatus ()
 
virtual void OnLog (const std::string &)
 
virtual void OnServer ()
 
virtual void OnGetRun ()
 
virtual void OnIdle ()
 
virtual void OnClear ()
 
virtual void OnUnrecognised (const std::string &, const std::string &)
 
void Process (int timeout)
 
void CommandThread ()
 
void StartThread ()
 
- Public Member Functions inherited from eudaq::DataSender
 DataSender (const std::string &type, const std::string &name)
 
void Connect (const std::string &server)
 
void SendEvent (const Event &)
 
void SendPacket (const AidaPacket &)
 

Additional Inherited Members

- Protected Attributes inherited from eudaq::CommandReceiver
ConnectionState m_connectionstate
 
TransportClientm_cmdclient
 

Detailed Description

The base class from which all Producers should inherit. It is both a CommandReceiver, listening to commands from RunControl, and a DataSender, sending data to a DataCollector.

Constructor & Destructor Documentation

eudaq::Producer::Producer ( const std::string &  name,
const std::string &  runcontrol 
)

The constructor.

Parameters
runcontrolA string containing the address of the RunControl to connect to.

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