1 #ifndef EUDAQ_INCLUDED_Status
2 #define EUDAQ_INCLUDED_Status
4 #include "eudaq/Serializable.hh"
8 #include "eudaq/Platform.hh"
30 Status(
int level = LVL_OK,
const std::string &msg =
"")
31 : m_level(level), m_msg(msg) {}
36 Status &SetTag(
const std::string &name,
const std::string &val);
37 std::string GetTag(
const std::string &name,
38 const std::string &def =
"")
const;
40 static std::string Level2String(
int level);
42 static int String2Level(
const std::string &);
45 virtual void print(std::ostream &)
const;
47 int GetLevel()
const {
return m_level; }
51 typedef std::map<std::string, std::string> map_t;
59 inline std::ostream &operator<<(std::ostream &os,
const Status &s) {
65 #endif // EUDAQ_INCLUDED_Status
Definition: Serializer.hh:156
Definition: Serializable.hh:13
map_t m_tags
Metadata tags in (name=value) pairs of strings.
Definition: Status.hh:56
Definition: Serializer.hh:19