Belle II Software  release-06-02-00
ERRORNo.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_ERRORNo_hh
9 #define _Belle2_ERRORNo_hh
10 
11 #include "daq/slc/base/Enum.h"
12 
13 namespace Belle2 {
19  class ERRORNo : public Enum {
20 
21  public:
22  static const ERRORNo UNKNOWN;
23  static const ERRORNo NSMONLINE;
24  static const ERRORNo NSMSENDREQ;
25  static const ERRORNo NSMMEMOPEN;
26  static const ERRORNo NSMINIT;
27  static const ERRORNo DATABASE;
28 
29  public:
30  ERRORNo() {}
31  ERRORNo(const Enum& e) : Enum(e) {}
32  ERRORNo(const ERRORNo& cmd) : Enum(cmd) {}
33  ERRORNo(const char* label) { *this = label; }
34  ERRORNo(int id) { *this = id; }
35  ~ERRORNo() {}
36 
37  protected:
38  ERRORNo(int id, const char* label)
39  : Enum(id, label) {}
40 
41  public:
42  const ERRORNo& operator=(const std::string& label);
43  const ERRORNo& operator=(const char* label);
44  const ERRORNo& operator=(int id);
45 
46  };
47 
49 }
50 
51 #endif
Abstract base class for different kinds of events.