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 27 of file PluginInfo.hpp.

Function Documentation

◆ get_recommended_plugin_name()

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

Definition at line 41 of file PluginInfo.hpp.

42{
43 return ZmqPluginNames.at(type);
44}
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 126 of file Receiver.hpp.

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

◆ make_ipm_sender()

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

Definition at line 121 of file Sender.hpp.

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

◆ 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 35 of file PluginInfo.hpp.

35 { { IpmPluginType::Sender, "ZmqSender" },
36 { IpmPluginType::Receiver, "ZmqReceiver" },
37 { IpmPluginType::Publisher, "ZmqPublisher" },
38 { IpmPluginType::Subscriber, "ZmqSubscriber" } };