CMS 3D CMS Logo

List of all members | Static Public Member Functions
OAQualityTranslator Struct Reference

#include <OAQuality.h>

Static Public Member Functions

static constexpr const OAQuality index (int ind)
 
static constexpr const char *const name (OAQuality oaq)
 

Detailed Description

Definition at line 6 of file OAQuality.h.

Member Function Documentation

static constexpr const OAQuality OAQualityTranslator::index ( int  ind)
inlinestatic

Definition at line 18 of file OAQuality.h.

References oa_calibrated, oa_fixed, and oa_unknown.

Referenced by BeautifulSoup.PageElement::insert().

18  {
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  }
static constexpr const char* const OAQualityTranslator::name ( OAQuality  oaq)
inlinestatic

Definition at line 8 of file OAQuality.h.

References EnergyCorrector::c, and constexpr.

Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().

9  {
10  constexpr const char * const c[] = {
11  "fixed",
12  "calibrated",
13  "unknown"
14  };
15  return c[oaq];
16  }
#define constexpr