EUDAQ
 All Classes Namespaces Files Functions Variables Pages
TransportServer.hh
1 #ifndef EUDAQ_INCLUDED_TransportServer
2 #define EUDAQ_INCLUDED_TransportServer
3 
4 #include "eudaq/TransportBase.hh"
5 #include <string>
6 #include <memory>
7 
8 namespace eudaq {
9 
10  class TransportServer : public TransportBase {
11  public:
12  virtual ~TransportServer();
13  virtual std::string ConnectionString() const = 0;
14  size_t NumConnections() const { return m_conn.size(); }
15  const ConnectionInfo &GetConnection(size_t i) const { return *m_conn[i]; }
16 
17  protected:
18  std::vector<std::shared_ptr<ConnectionInfo>> m_conn;
19  };
20 }
21 
22 #endif // EUDAQ_INCLUDED_TransportServer
Definition: TransportBase.hh:168
Definition: TransportServer.hh:10
Definition: TransportBase.hh:22