Go to the documentation of this file.00001 #ifndef __STDAIR_BAS_SAMPLETYPE_HPP
00002 #define __STDAIR_BAS_SAMPLETYPE_HPP
00003
00004
00005
00006
00007
00008 #include <string>
00009
00010 #include <stdair/basic/StructAbstract.hpp>
00011
00012 namespace stdair {
00013
00025 struct SampleType : public StructAbstract {
00026 public:
00027 typedef enum {
00028 ALL = 0,
00029 A4P,
00030 RMS,
00031 INV,
00032 SCH,
00033 RAC,
00034 FQT,
00035 CRS,
00036 DEM,
00037 EVT,
00038 CCM,
00039 LAST_VALUE
00040 } EN_SampleType;
00041
00045 static const std::string& getLabel (const EN_SampleType&);
00046
00050 static char getTypeLabel (const EN_SampleType&);
00051
00055 static std::string getTypeLabelAsString (const EN_SampleType&);
00056
00060 static std::string describeLabels();
00061
00065 EN_SampleType getType() const;
00066
00070 std::string getTypeAsString() const;
00071
00075 const std::string describe() const;
00076
00077 public:
00081 bool operator== (const EN_SampleType&) const;
00082
00083 public:
00087 SampleType (const EN_SampleType&);
00091 SampleType (const char iType);
00095 SampleType (const SampleType&);
00096
00097 private:
00101 SampleType();
00102
00103
00104 private:
00108 static const std::string _labels[LAST_VALUE];
00109
00113 static const char _typeLabels[LAST_VALUE];
00114
00115
00116 private:
00117
00121 EN_SampleType _type;
00122 };
00123
00124 }
00125 #endif // __STDAIR_BAS_SAMPLETYPE_HPP