Belle II Software
development
NSMCommand.h
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
#ifndef _Belle2_NSMCommand_hh
9
#define _Belle2_NSMCommand_hh
10
11
#include "daq/slc/base/Enum.h"
12
13
namespace
Belle2
{
18
19
class
NSMCommand :
public
Enum {
20
21
public
:
22
static
const
NSMCommand OK;
23
static
const
NSMCommand STATE;
24
static
const
NSMCommand ERROR;
25
static
const
NSMCommand FATAL;
26
static
const
NSMCommand LOG;
27
static
const
NSMCommand LOGSET;
28
static
const
NSMCommand LOGGET;
29
static
const
NSMCommand VLISTGET;
30
static
const
NSMCommand VLISTSET;
31
static
const
NSMCommand VGET;
32
static
const
NSMCommand VSET;
33
static
const
NSMCommand VREPLY;
34
35
public
:
36
static
const
NSMCommand DATAGET;
37
static
const
NSMCommand DATASET;
38
static
const
NSMCommand DBGET;
39
static
const
NSMCommand DBSET;
40
static
const
NSMCommand DBLISTGET;
41
static
const
NSMCommand DBLISTSET;
42
static
const
NSMCommand LOGLIST;
43
44
public
:
45
static
const
int
SUGGESTED = 2;
46
static
const
int
ENABLED = 1;
47
static
const
int
DISABLED = 0;
48
49
public
:
50
NSMCommand() {}
51
// cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
52
NSMCommand(
const
Enum& e) : Enum(e) {}
53
NSMCommand(
const
NSMCommand& cmd) : Enum(cmd) {}
54
// cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
55
NSMCommand(
const
char
* label) { *
this
= label; }
56
explicit
NSMCommand(
const
std::string& label) { *
this
= label; }
57
explicit
NSMCommand(
int
id
) { *
this
= id; }
58
~NSMCommand() {}
59
60
public
:
61
NSMCommand(
int
id
,
const
char
* label)
62
: Enum(
id
, label) {}
63
64
public
:
65
69
const
NSMCommand&
operator=
(
const
NSMCommand& command);
70
const
NSMCommand&
operator=
(
const
std::string& label);
71
const
NSMCommand&
operator=
(
const
char
* label);
72
const
NSMCommand&
operator=
(
int
id
);
73
74
};
75
77
}
78
79
#endif
Belle2::NSMCommand::operator=
const NSMCommand & operator=(const NSMCommand &command)
Operator =.
Definition
NSMCommand.cc:32
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
daq
slc
nsm
include
NSMCommand.h
Generated on Sun Nov 22 2026 03:12:39 for Belle II Software by
1.13.2