DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ZmqUri.hpp
Go to the documentation of this file.
1
10#ifndef UTILITIES_INCLUDE_UTILITIES_ZMQURI_HPP_
11#define UTILITIES_INCLUDE_UTILITIES_ZMQURI_HPP_
12
13#include "logging/Logging.hpp"
14#include "utilities/Issues.hpp"
15
16#include <string>
17#include <vector>
18
19namespace dunedaq::utilities {
20
21struct ZmqUri
22{
23 std::string scheme{ "" };
24 std::string host{ "" };
25 std::string port{ "" };
26 std::string to_string()
27 {
28 auto tmp = scheme + "://" + host;
29 if (port != "")
30 return tmp + ":" + port;
31 return tmp;
32 }
33
34 explicit ZmqUri(std::string connection_string);
35
36 std::vector<std::string> get_uri_ip_addresses();
37};
38
39} // namespace dunedaq::utilities
40
41#endif // UTILITIES_INCLUDE_UTILITIES_ZMQURI_HPP_
std::string to_string()
Definition ZmqUri.hpp:26
ZmqUri(std::string connection_string)
Definition ZmqUri.cpp:19
std::vector< std::string > get_uri_ip_addresses()
Definition ZmqUri.cpp:36