Belle II Software
release-05-02-19
Connection.h
1
#ifndef _Belle2_Connection_hh
2
#define _Belle2_Connection_hh
3
4
#include "daq/slc/base/Enum.h"
5
6
namespace
Belle2
{
12
class
Connection
:
public
Enum
{
13
14
public
:
15
static
const
Connection
ONLINE;
16
static
const
Connection
OFFLINE;
17
18
public
:
19
Connection
();
20
Connection
(
const
Enum
& st) ;
21
Connection
(
const
Connection
& st) ;
22
Connection
(
const
std::string& st) { *
this
= st; }
23
Connection
(
int
id
) { *
this
= id; }
24
~
Connection
() ;
25
26
private
:
27
Connection
(
int
id
,
const
char
* label);
28
29
public
:
30
bool
operator==(
const
Connection
& st)
const
;
31
bool
operator!=(
const
Connection
& st)
const
;
32
const
Connection
& operator=(
const
std::string& msg);
33
const
Connection
& operator=(
const
char
* msg);
34
const
Connection
& operator=(
int
i);
35
36
};
37
38
inline
bool
Connection::operator==(
const
Connection
& st)
const
39
{
40
return
(getId() == st.getId());
41
}
42
43
inline
bool
Connection::operator!=(
const
Connection& st)
const
44
{
45
return
(getId() != st.getId());
46
}
47
49
}
50
51
#endif
Belle2::Enum
Definition:
Enum.h:12
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::Connection
Definition:
Connection.h:12
daq
slc
base
include
Connection.h
Generated on Tue Jan 4 2022 02:54:13 for Belle II Software by
1.8.17