 |
Belle II Software
release-05-01-25
|
10 #include <daq/hbasf2/apps/ZMQClasses.h>
11 #include <framework/logging/Logger.h>
26 (
"input", boost::program_options::value<std::string>(&
m_inputAddress)->required(),
27 "where to read the events from")
29 "how many events to keep in the buffer");
43 (
"input", boost::program_options::value<std::string>(&
m_inputAddress)->required(),
44 "where to read the events from");
58 (
"input", boost::program_options::value<std::string>(&
m_inputAddress)->required(),
59 "where to read the events from")
60 (
"output", boost::program_options::value<std::string>(&
m_outputAddress)->required(),
61 "where to send the events to")
63 "how many events to keep in the buffer");
68 auto message =
m_input->handleIncomingData();
69 B2ASSERT(
"There should always be a message", message);
71 if (message->isMessage(EMessageTypes::c_terminateMessage)) {
75 m_output->handleEvent(std::move(message));
std::unique_ptr< ZMQNullConnection > m_output
Pointer to the output connection. Should be set in initialize.
Output part of a confirmed connection.
void initialize() final
Initialize the two connections using the command line arguments.
void addOptions(po::options_description &desc) final
Add the parameters to the cmd line arguments.
unsigned int m_bufferSize
Parameter: buffer size.
std::string m_inputAddress
Parameter: input address.
bool m_terminate
Can be set by functions to terminate the main loop at the next possibility.
void addOptions(po::options_description &desc) final
Add the parameters to the cmd line arguments.
std::shared_ptr< ZMQParent > m_parent
Pointer to the ZMQParent to be used as base for all connections.
std::string m_inputAddress
Parameter: input address.
virtual void addOptions(po::options_description &desc)
Override in a derived class to add the command line arguments. Do not forget to call this base functi...
Connection doing just nothing: without the capability to pull, send or receive. Useful for template i...
Abstract base class for different kinds of events.
std::string m_outputAddress
Parameter: output address.
void initialize() final
Initialize the two connections using the command line arguments.
unsigned int m_bufferSize
Parameter: buffer size.
void handleInput() final
Transport the message from the input to the output connection.
void addOptions(po::options_description &desc) final
Add the parameters to the cmd line arguments.
virtual void initialize()
Override in a derived class to initialize the connections from the given command line arguments....
void initialize() final
Initialize the two connections using the command line arguments.
std::unique_ptr< ZMQLoadBalancedInput > m_input
Pointer to the input connection. Should be set in initialize.
std::string m_inputAddress
Parameter: input address.