1 #ifndef EUDAQ_INCLUDED_ConnectionState
2 #define EUDAQ_INCLUDED_ConnectionState
4 #include "eudaq/Serializable.hh"
8 #include "eudaq/Platform.hh"
26 :m_msg(msg), m_state(state) {}
31 ConnectionState &SetTag(
const std::string &name,
const std::string &val);
32 std::string GetTag(
const std::string &name,
33 const std::string &def =
"")
const;
35 static std::string State2String(
int state);
37 static int String2State(
const std::string &);
40 virtual void print(std::ostream &)
const;
42 int GetState()
const {
return m_state; }
44 bool isBusy(){
return isbusy;}
48 typedef std::map<std::string, std::string> map_t;
57 inline std::ostream &operator<<(std::ostream &os,
const ConnectionState &s) {
63 #endif // EUDAQ_INCLUDED_ConnectionState
Definition: Serializer.hh:156
map_t m_tags
Metadata tags in (name=value) pairs of strings.
Definition: ConnectionState.hh:54
Definition: Serializable.hh:13
Definition: ConnectionState.hh:15
Definition: Serializer.hh:19