CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OAQuality.h
Go to the documentation of this file.
1 #ifndef OAQuality_H
2 #define OAQuality_H
3 
5 
7 
8  static const char * name(OAQuality oaq)
9  {
10  static const char* c[] = {
11  "fixed",
12  "calibrated",
13  "unknown"
14  };
15  return c[oaq];
16  }
17 
18  static const OAQuality index( const 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 const OAQuality index(const int &ind)
Definition: OAQuality.h:18
static const char * name(OAQuality oaq)
Definition: OAQuality.h:8
OAQuality
Definition: OAQuality.h:4