DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
iomanager_wrapper.hpp
Go to the documentation of this file.
1
10#ifndef SNBMODULES_INCLUDE_SNBMODULES_IOMANAGER_WRAPPER_HPP_
11#define SNBMODULES_INCLUDE_SNBMODULES_IOMANAGER_WRAPPER_HPP_
12
15
17#include "confmodel/Queue.hpp"
21
22#include <string>
23
24namespace dunedaq::snbmodules {
25// Singleton
27{
28
29public:
31 {
32 static IOManagerWrapper instance;
33 return instance;
34 }
35
36 // not cloneable
38 // not assignable
39 void operator=(const IOManagerWrapper&) = delete;
40
45 // TEMP_REMOVED//void init_connection_interface(const std::string &session_name, bool use_connectivity_service =
46 // false, const IPFormat &ip = IPFormat("localhost", 5000));
47
53
59 // TEMP_REMOVED//void add_connection(const IPFormat &ip, std::string id, std::string data_type);
60
61protected:
63 std::vector<const confmodel::NetworkConnection*> m_connections;
65 std::vector<const confmodel::Queue*> m_queues;
66
67private:
68 IOManagerWrapper() = default;
69};
70
71} // namespace dunedaq::snbmodules
72
73#endif // SNBMODULES_INCLUDE_SNBMODULES_IOMANAGER_WRAPPER_HPP_
std::vector< const confmodel::Queue * > m_queues
List of queues.
iomanager::ConnectionResponse lookups_connection(const iomanager::ConnectionId &conn_id, bool restrict_single)
init IOManager instance, Only used for stand alone application
IOManagerWrapper(IOManagerWrapper &other)=delete
void operator=(const IOManagerWrapper &)=delete
std::vector< const confmodel::NetworkConnection * > m_connections
add a connection to the list of connections, Only used for stand alone application