CMS 3D CMS Logo

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

#include <OAQuality.h>

Static Public Member Functions

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

Detailed Description

Definition at line 6 of file OAQuality.h.

Member Function Documentation

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

Definition at line 8 of file OAQuality.h.

References EnergyCorrector::c.

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

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