Belle II Software  release-08-01-10
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 
13 namespace Belle2 {
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  RFCommand(const Enum& e) : NSMCommand(e) {}
36  RFCommand(const NSMCommand& cmd) : NSMCommand(cmd) {}
37  RFCommand(const RFCommand& cmd) : NSMCommand(cmd) {}
38  RFCommand(const char* label) { *this = label; }
39  ~RFCommand() {}
40 
41  protected:
42  RFCommand(int id, const char* label)
43  : NSMCommand(id, label) {}
44 
45  public:
46  //virtual int isAvailable(const State& state) const;
47  State nextState() const;
48 
49  public:
50 
54  const RFCommand& operator=(const RFCommand& command);
55  const RFCommand& operator=(const std::string& label);
56  const RFCommand& operator=(const char* label);
57 
58  };
59 
61 }
62 
63 #endif
64 
65 
const RFCommand & operator=(const RFCommand &command)
Operator =.
Definition: RFCommand.cc:21
Abstract base class for different kinds of events.