DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <IOManager.hpp>
Public Member Functions | |
IOManager (const IOManager &)=delete | |
IOManager is not copy-constructible. | |
IOManager & | operator= (const IOManager &)=delete |
IOManager is not copy-assignable. | |
IOManager (IOManager &&)=delete | |
IOManager is not move-constructible. | |
IOManager & | operator= (IOManager &&)=delete |
IOManager is not move-assignable. | |
void | configure (std::string session, std::vector< const confmodel::Queue * > queues, std::vector< const confmodel::NetworkConnection * > connections, const confmodel::ConnectivityService *connection_service, opmonlib::OpMonManager &) |
void | reset () |
void | shutdown () |
template<typename Datatype > | |
std::shared_ptr< SenderConcept< Datatype > > | get_sender (ConnectionId id) |
template<typename Datatype > | |
std::shared_ptr< SenderConcept< Datatype > > | get_sender (std::string const &uid) |
template<typename Datatype > | |
std::shared_ptr< ReceiverConcept< Datatype > > | get_receiver (ConnectionId id) |
template<typename Datatype > | |
std::shared_ptr< ReceiverConcept< Datatype > > | get_receiver (std::string const &uid) |
template<typename Datatype > | |
std::shared_ptr< ReceiverConcept< Datatype > > | get_receiver (std::string const &uid, std::string const &tag) |
template<typename Datatype > | |
void | add_callback (ConnectionId const &id, std::function< void(Datatype &)> callback) |
template<typename Datatype > | |
void | add_callback (std::string const &uid, std::function< void(Datatype &)> callback) |
template<typename Datatype > | |
void | add_callback (std::string const &uid, std::string const &tag, std::function< void(Datatype &)> callback) |
template<typename Datatype > | |
void | remove_callback (ConnectionId const &id) |
template<typename Datatype > | |
void | remove_callback (std::string const &uid) |
template<typename Datatype > | |
void | remove_callback (std::string const &uid, std::string const &tag) |
std::set< std::string > | get_datatypes (std::string const &uid) |
Static Public Member Functions | |
static std::shared_ptr< IOManager > | get () |
Private Types | |
using | SenderMap = std::map<ConnectionId, std::shared_ptr<Sender>> |
using | ReceiverMap = std::map<ConnectionId, std::shared_ptr<Receiver>> |
Private Member Functions | |
IOManager () | |
Private Attributes | |
SenderMap | m_senders |
ReceiverMap | m_receivers |
std::string | m_session |
Static Private Attributes | |
static std::shared_ptr< IOManager > | s_instance = nullptr |
Wrapper class for sockets and SPSC circular buffers. Makes the communication between DAQ processes easier and scalable.
Definition at line 36 of file IOManager.hpp.
|
private |
Definition at line 99 of file IOManager.hpp.
|
private |
Definition at line 98 of file IOManager.hpp.
|
delete |
IOManager is not copy-constructible.
|
delete |
IOManager is not move-constructible.
|
inlineprivate |
Definition at line 96 of file IOManager.hpp.
|
inline |
Definition at line 24 of file IOManager.hxx.
|
inline |
Definition at line 124 of file IOManager.hxx.
|
inline |
Definition at line 132 of file IOManager.hxx.
void dunedaq::iomanager::IOManager::configure | ( | std::string | session, |
std::vector< const confmodel::Queue * > | queues, | ||
std::vector< const confmodel::NetworkConnection * > | connections, | ||
const confmodel::ConnectivityService * | connection_service, | ||
opmonlib::OpMonManager & | opmgr ) |
Definition at line 16 of file IOManager.cpp.
|
inlinestatic |
Definition at line 40 of file IOManager.hpp.
std::set< std::string > dunedaq::iomanager::IOManager::get_datatypes | ( | std::string const & | uid | ) |
Definition at line 48 of file IOManager.cpp.
|
inline |
Definition at line 56 of file IOManager.hxx.
|
inline |
Definition at line 32 of file IOManager.hxx.
|
inline |
Definition at line 43 of file IOManager.hxx.
|
inline |
Definition at line 96 of file IOManager.hxx.
|
inline |
Definition at line 84 of file IOManager.hxx.
IOManager is not copy-assignable.
IOManager is not move-assignable.
|
inline |
Definition at line 140 of file IOManager.hxx.
|
inline |
Definition at line 148 of file IOManager.hxx.
|
inline |
Definition at line 155 of file IOManager.hxx.
void dunedaq::iomanager::IOManager::reset | ( | ) |
Definition at line 38 of file IOManager.cpp.
void dunedaq::iomanager::IOManager::shutdown | ( | ) |
Definition at line 29 of file IOManager.cpp.
|
private |
Definition at line 101 of file IOManager.hpp.
|
private |
Definition at line 100 of file IOManager.hpp.
|
private |
Definition at line 102 of file IOManager.hpp.
|
staticprivate |
Definition at line 104 of file IOManager.hpp.