StdAir Logo  1.00.16
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
12namespace stdair {
13
25 struct SampleType : public StructAbstract {
26 public:
27 typedef enum {
28 ALL = 0,
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
Handle on the StdAir library context.
Enumeration of BOM sample types.
SampleType(const EN_SampleType &)
static std::string describeLabels()
bool operator==(const EN_SampleType &) const
const std::string describe() const
EN_SampleType getType() const
static char getTypeLabel(const EN_SampleType &)
static const std::string & getLabel(const EN_SampleType &)
std::string getTypeAsString() const
static std::string getTypeLabelAsString(const EN_SampleType &)