StdAir Logo  1.00.3
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
static char getTypeLabel(const EN_SampleType &)
Definition: SampleType.cpp:72
std::string getTypeAsString() const
Definition: SampleType.cpp:101
Handle on the StdAir library context.
Enumeration of BOM sample types.
Definition: SampleType.hpp:25
static const std::string & getLabel(const EN_SampleType &)
Definition: SampleType.cpp:67
Base class for the light structures.
static std::string describeLabels()
Definition: SampleType.cpp:84
const std::string describe() const
Definition: SampleType.cpp:108
EN_SampleType getType() const
Definition: SampleType.cpp:96
bool operator==(const EN_SampleType &) const
Definition: SampleType.cpp:115
static std::string getTypeLabelAsString(const EN_SampleType &)
Definition: SampleType.cpp:77