Belle II Software
development
RCCommand.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_RCCommand_h
9
#define _Belle2_RCCommand_h
10
11
#include <daq/slc/nsm/NSMCommand.h>
12
13
#include "daq/slc/runcontrol/RCState.h"
14
15
namespace
Belle2
{
20
21
class
RCCommand :
public
NSMCommand {
22
23
public
:
24
static
const
RCCommand CONFIGURE;
25
static
const
RCCommand BOOT;
26
static
const
RCCommand LOAD;
27
static
const
RCCommand START;
28
static
const
RCCommand STOP;
29
static
const
RCCommand RECOVER;
30
static
const
RCCommand RESUME;
31
static
const
RCCommand PAUSE;
32
static
const
RCCommand ABORT;
33
static
const
RCCommand STATUS;
34
35
public
:
36
RCCommand() {}
37
// cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
38
RCCommand(
const
Enum
& e) : NSMCommand(e) {}
39
// cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
40
RCCommand(
const
NSMCommand& e) : NSMCommand(e) {}
41
RCCommand(
const
RCCommand& cmd) : NSMCommand(cmd) {}
42
explicit
RCCommand(
const
std::string& label) { *
this
= label; }
43
// cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
44
RCCommand(
const
char
* label) { *
this
= label; }
45
explicit
RCCommand(
int
id
) { *
this
= id; }
46
~RCCommand() {}
47
48
protected
:
49
RCCommand(
int
id
,
const
char
* label)
50
: NSMCommand(
id
, label) {}
51
52
public
:
53
int
isAvailable(
const
RCState
& state)
const
;
54
RCState
nextState()
const
;
55
RCState
nextTState()
const
;
56
57
public
:
58
62
const
RCCommand&
operator=
(
const
RCCommand& command);
63
// cppcheck-suppress duplInheritedMember ; the derived class deliberately provides its own
64
const
RCCommand&
operator=
(
const
std::string& label);
65
// cppcheck-suppress duplInheritedMember ; the derived class deliberately provides its own
66
const
RCCommand&
operator=
(
const
char
* label);
67
// cppcheck-suppress duplInheritedMember ; the derived class deliberately provides its own
68
const
RCCommand&
operator=
(
int
id
);
69
70
};
71
73
}
74
75
#endif
Belle2::Enum
Definition
Enum.h:19
Belle2::RCCommand::operator=
const RCCommand & operator=(const RCCommand &command)
Operator =.
Definition
RCCommand.cc:25
Belle2::RCState
Definition
RCState.h:19
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
daq
slc
runcontrol
include
RCCommand.h
Generated on Sun Nov 22 2026 03:12:45 for Belle II Software by
1.13.2