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
13namespace Belle2 {
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 NSMCommand(const Enum& e) : Enum(e) {}
52 NSMCommand(const NSMCommand& cmd) : Enum(cmd) {}
53 NSMCommand(const char* label) { *this = label; }
54 explicit NSMCommand(const std::string& label) { *this = label; }
55 explicit NSMCommand(int id) { *this = id; }
56 ~NSMCommand() {}
57
58 public:
59 NSMCommand(int id, const char* label)
60 : Enum(id, label) {}
61
62 public:
63
67 const NSMCommand& operator=(const NSMCommand& command);
68 const NSMCommand& operator=(const std::string& label);
69 const NSMCommand& operator=(const char* label);
70 const NSMCommand& operator=(int id);
71
72 };
73
75}
76
77#endif
const NSMCommand & operator=(const NSMCommand &command)
Operator =.
Definition: NSMCommand.cc:32
Abstract base class for different kinds of events.