DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::ipm Namespace Reference

An ERS Error indicating that an exception was thrown from ZMQ while performing an operation. More...

Namespaces

namespace  opmon
 

Classes

class  CallbackAdapter
 
class  Receiver
 
class  Sender
 
class  Subscriber
 
class  ZmqContext
 

Enumerations

enum class  IpmPluginType { Sender , Receiver , Publisher , Subscriber }
 

Functions

std::string get_recommended_plugin_name (IpmPluginType type)
 
std::shared_ptr< Receivermake_ipm_receiver (std::string const &plugin_name)
 
std::shared_ptr< Sendermake_ipm_sender (std::string const &plugin_name)
 
std::shared_ptr< Subscribermake_ipm_subscriber (std::string const &plugin_name)
 

Variables

const std::map< IpmPluginType, std::string > ZmqPluginNames
 

Detailed Description

An ERS Error indicating that an exception was thrown from ZMQ while performing an operation.

Parameters
operationThe operation that failed (connect/bind/disconnect/unbind)
directionThe direction of the socket (send/receive)
whatThe zmq::error_t exception message
connection_stringThe connection string that caused the error

An ERS Error indicating that an exception was thrown from ZMQ while sending

Parameters
whatThe zmq::error_t exception message
Nnumber of bytes in attempted send
topicSend topic

An ERS Error indicating that an exception was thrown from ZMQ while receiving

Parameters
whatThe zmq::error_t exception message
whichWhich receive had an issue

An ERS Error indicating that an exception was thrown from ZMQ during a subscribe

Parameters
whatThe zmq::error_t exception message
topicTopic being subscribed to

An ERS Error indicating that an exception was thrown from ZMQ during an unsubscribe

Parameters
whatThe zmq::error_t exception message
topicTopic being unsubscribed from

Enumeration Type Documentation

◆ IpmPluginType

enum class dunedaq::ipm::IpmPluginType
strong
Enumerator
Sender 
Receiver 
Publisher 
Subscriber 

Definition at line 24 of file PluginInfo.hpp.

Function Documentation

◆ get_recommended_plugin_name()

std::string dunedaq::ipm::get_recommended_plugin_name ( IpmPluginType type)

Definition at line 38 of file PluginInfo.hpp.

39{
40 return ZmqPluginNames.at(type);
41}
const std::map< IpmPluginType, std::string > ZmqPluginNames

◆ make_ipm_receiver()

std::shared_ptr< Receiver > dunedaq::ipm::make_ipm_receiver ( std::string const & plugin_name)
inline

Definition at line 124 of file Receiver.hpp.

125{
126 static cet::BasicPluginFactory bpf("duneIPM", "make");
127 return bpf.makePlugin<std::shared_ptr<Receiver>>(plugin_name);
128}

◆ make_ipm_sender()

std::shared_ptr< Sender > dunedaq::ipm::make_ipm_sender ( std::string const & plugin_name)
inline

Definition at line 119 of file Sender.hpp.

120{
121 static cet::BasicPluginFactory bpf("duneIPM", "make");
122 return bpf.makePlugin<std::shared_ptr<Sender>>(plugin_name);
123}

◆ make_ipm_subscriber()

std::shared_ptr< Subscriber > dunedaq::ipm::make_ipm_subscriber ( std::string const & plugin_name)
inline

Definition at line 59 of file Subscriber.hpp.

60{
61 static cet::BasicPluginFactory bpf("duneIPM", "make");
62 auto receiver_ptr = bpf.makePlugin<std::shared_ptr<Receiver>>(plugin_name);
63 return std::dynamic_pointer_cast<Subscriber>(receiver_ptr);
64}

Variable Documentation

◆ ZmqPluginNames

const std::map<IpmPluginType, std::string> dunedaq::ipm::ZmqPluginNames
Initial value:
{ { IpmPluginType::Sender, "ZmqSender" },
{ IpmPluginType::Receiver, "ZmqReceiver" },
{ IpmPluginType::Publisher, "ZmqPublisher" },
{ IpmPluginType::Subscriber, "ZmqSubscriber" } }

Definition at line 32 of file PluginInfo.hpp.

32 { { IpmPluginType::Sender, "ZmqSender" },
33 { IpmPluginType::Receiver, "ZmqReceiver" },
34 { IpmPluginType::Publisher, "ZmqPublisher" },
35 { IpmPluginType::Subscriber, "ZmqSubscriber" } };