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;
27 Connection(
const Enum& st) ;
28 Connection(
const Connection& st) ;
29 Connection(
const std::string& st) { *
this = st; }
30 Connection(
int id) { *
this = id; }
34 Connection(
int id,
const char* label);
37 bool operator==(
const Connection& st)
const;
38 bool operator!=(
const Connection& st)
const;
43 const Connection&
operator=(
const Connection& connection);
44 const Connection&
operator=(
const std::string& msg);
45 const Connection&
operator=(
const char* msg);
50 inline bool Connection::operator==(
const Connection& st)
const
52 return (getId() == st.getId());
55 inline bool Connection::operator!=(
const Connection& st)
const
57 return (getId() != st.getId());
const Connection & operator=(const Connection &connection)
Operator =.
Abstract base class for different kinds of events.