8#ifndef _Belle2_Connection_hh
9#define _Belle2_Connection_hh
11#include "daq/slc/base/Enum.h"
19 class Connection :
public Enum {
22 static const Connection ONLINE;
23 static const Connection OFFLINE;
28 Connection(
const Enum& st) ;
29 Connection(
const Connection& st) ;
30 explicit Connection(
const std::string& st) { *
this = st; }
31 explicit Connection(
int id) { *
this = id; }
35 Connection(
int id,
const char* label);
38 bool operator==(
const Connection& st)
const;
39 bool operator!=(
const Connection& st)
const;
44 const Connection&
operator=(
const Connection& connection);
45 const Connection&
operator=(
const std::string& msg);
46 const Connection&
operator=(
const char* msg);
51 inline bool Connection::operator==(
const Connection& st)
const
53 return (getId() == st.getId());
56 inline bool Connection::operator!=(
const Connection& st)
const
58 return (getId() != st.getId());
const Connection & operator=(const Connection &connection)
Operator =.
Abstract base class for different kinds of events.