CMS 3D CMS Logo

OAQuality.h
Go to the documentation of this file.
1 #ifndef OAQuality_H
2 #define OAQuality_H
3 
5 
7 
8  constexpr static const char * const name(OAQuality oaq)
9  {
10  constexpr const char * const c[] = {
11  "fixed",
12  "calibrated",
13  "unknown"
14  };
15  return c[oaq];
16  }
17 
18  static constexpr const OAQuality index(int ind ) {
19  switch (ind) {
20  case 0:
21  return oa_fixed;
22  break;
23  case 1:
24  return oa_calibrated;
25  break;
26  case 2:
27  return oa_unknown;
28  break;
29  default:
30  return oa_unknown;
31  break;
32  }
33  }
34 
35 };
36 #endif
static constexpr const OAQuality index(int ind)
Definition: OAQuality.h:18
static constexpr const char *const name(OAQuality oaq)
Definition: OAQuality.h:8
#define constexpr
OAQuality
Definition: OAQuality.h:4