8#include "daq/slc/base/Connection.h"
12const Connection Connection::ONLINE(10000,
"ONLINE");
13const Connection Connection::OFFLINE(20000,
"OFFLINE");
15Connection::Connection() :
Enum()
20Connection::Connection(
const Enum& st)
21 :
Enum(st.getId(), st.getLabel())
27 :
Enum(st.getId(), st.getLabel())
32Connection::Connection(
int id,
const char* label)
38Connection::~Connection()
45 Enum::operator=(connection);
51 if (msg == ONLINE.getLabel()) *
this = ONLINE;
52 else if (msg == OFFLINE.getLabel()) *
this = OFFLINE;
59 if (msg != NULL) *
this = std::string(msg);
66 if (i == ONLINE.getId()) *
this = ONLINE;
67 else if (i == OFFLINE.getId()) *
this = OFFLINE;
const Connection & operator=(const Connection &connection)
Operator =.
Abstract base class for different kinds of events.