Belle II Software development
RFCommand.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_RFCommand_hh
9#define _Belle2_RFCommand_hh
10
11#include "daq/slc/nsm/NSMCommand.h"
12
13namespace Belle2 {
18
19 class State;
20
21 class RFCommand : public NSMCommand {
22
23 public:
24 static const RFCommand CONFIGURE;
25 static const RFCommand UNCONFIGURE;
26 static const RFCommand START;
27 static const RFCommand STOP;
28 static const RFCommand RESTART;
29 static const RFCommand PAUSE;
30 static const RFCommand RESUME;
31 static const RFCommand STATUS;
32
33 public:
34 RFCommand() {}
35 // cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
36 RFCommand(const Enum& e) : NSMCommand(e) {}
37 // cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
38 RFCommand(const NSMCommand& cmd) : NSMCommand(cmd) {}
39 RFCommand(const RFCommand& cmd) : NSMCommand(cmd) {}
40 // cppcheck-suppress noExplicitConstructor ; implicit conversion is part of the Enum-style API
41 RFCommand(const char* label) { *this = label; }
42 ~RFCommand() {}
43
44 protected:
45 RFCommand(int id, const char* label)
46 : NSMCommand(id, label) {}
47
48 public:
49 //virtual int isAvailable(const State& state) const;
50 State nextState() const;
51
52 public:
53
57 const RFCommand& operator=(const RFCommand& command);
58 // cppcheck-suppress duplInheritedMember ; the derived class deliberately provides its own
59 const RFCommand& operator=(const std::string& label);
60 // cppcheck-suppress duplInheritedMember ; the derived class deliberately provides its own
61 const RFCommand& operator=(const char* label);
62
63 };
64
66}
67
68#endif
69
70
const RFCommand & operator=(const RFCommand &command)
Operator =.
Definition RFCommand.cc:21
Abstract base class for different kinds of events.