StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
SampleType.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_SAMPLETYPE_HPP
2 #define __STDAIR_BAS_SAMPLETYPE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
11 
12 namespace stdair {
13 
25  struct SampleType : public StructAbstract {
26  public:
27  typedef enum {
28  ALL = 0,
29  A4P,
30  RMS,
31  INV,
32  SCH,
33  RAC,
34  FQT,
35  CRS,
36  DEM,
37  EVT,
38  CCM,
40  } EN_SampleType;
41 
45  static const std::string& getLabel (const EN_SampleType&);
46 
50  static char getTypeLabel (const EN_SampleType&);
51 
55  static std::string getTypeLabelAsString (const EN_SampleType&);
56 
60  static std::string describeLabels();
61 
65  EN_SampleType getType() const;
66 
70  std::string getTypeAsString() const;
71 
75  const std::string describe() const;
76 
77  public:
81  bool operator== (const EN_SampleType&) const;
82 
83  public:
87  SampleType (const EN_SampleType&);
91  SampleType (const char iType);
95  SampleType (const SampleType&);
96 
97  private:
101  SampleType();
102 
103 
104  private:
108  static const std::string _labels[LAST_VALUE];
109 
113  static const char _typeLabels[LAST_VALUE];
114 
115 
116  private:
117  // //////// Attributes /////////
121  EN_SampleType _type;
122  };
123 
124 }
125 #endif // __STDAIR_BAS_SAMPLETYPE_HPP
stdair::SampleType::CRS
@ CRS
Definition: SampleType.hpp:35
stdair::SampleType::getType
EN_SampleType getType() const
Definition: SampleType.cpp:96
stdair::SampleType::EN_SampleType
EN_SampleType
Definition: SampleType.hpp:27
stdair::SampleType::getTypeLabel
static char getTypeLabel(const EN_SampleType &)
Definition: SampleType.cpp:72
stdair::SampleType::CCM
@ CCM
Definition: SampleType.hpp:38
stdair::SampleType::RMS
@ RMS
Definition: SampleType.hpp:30
stdair::SampleType::getTypeLabelAsString
static std::string getTypeLabelAsString(const EN_SampleType &)
Definition: SampleType.cpp:77
stdair::SampleType::ALL
@ ALL
Definition: SampleType.hpp:28
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::SampleType::DEM
@ DEM
Definition: SampleType.hpp:36
stdair::SampleType::getLabel
static const std::string & getLabel(const EN_SampleType &)
Definition: SampleType.cpp:67
stdair::SampleType
Enumeration of BOM sample types.
Definition: SampleType.hpp:25
stdair::SampleType::INV
@ INV
Definition: SampleType.hpp:31
StructAbstract.hpp
stdair::SampleType::SCH
@ SCH
Definition: SampleType.hpp:32
stdair::SampleType::describe
const std::string describe() const
Definition: SampleType.cpp:108
stdair::SampleType::LAST_VALUE
@ LAST_VALUE
Definition: SampleType.hpp:39
stdair::SampleType::describeLabels
static std::string describeLabels()
Definition: SampleType.cpp:84
stdair::StructAbstract
Base class for the light structures.
Definition: StructAbstract.hpp:16
stdair::SampleType::operator==
bool operator==(const EN_SampleType &) const
Definition: SampleType.cpp:115
stdair::SampleType::EVT
@ EVT
Definition: SampleType.hpp:37
stdair::SampleType::FQT
@ FQT
Definition: SampleType.hpp:34
stdair::SampleType::RAC
@ RAC
Definition: SampleType.hpp:33
stdair::SampleType::A4P
@ A4P
Definition: SampleType.hpp:29
stdair::SampleType::getTypeAsString
std::string getTypeAsString() const
Definition: SampleType.cpp:101