Belle II Software development
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
13namespace 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 char* label) { *this = label; }
33 ERRORNo(int id) { *this = id; }
34 ~ERRORNo() {}
35
36 protected:
37 ERRORNo(int id, const char* label)
38 : Enum(id, label) {}
39
40 public:
41 const ERRORNo& operator=(const std::string& label);
42 const ERRORNo& operator=(const char* label);
43 const ERRORNo& operator=(int id);
44
45 };
46
48}
49
50#endif
Abstract base class for different kinds of events.