StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
DemandGenerationMethod.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_DEMANDGENERATIONMETHOD_HPP
2 #define __STDAIR_BAS_DEMANDGENERATIONMETHOD_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
11 
12 namespace stdair {
13 
18  public:
19  typedef enum {
20  POI_PRO = 0,
24 
28  static const std::string& getLabel (const EN_DemandGenerationMethod&);
29 
33  static EN_DemandGenerationMethod getMethod (const char);
34 
38  static char getMethodLabel (const EN_DemandGenerationMethod&);
39 
43  static std::string getMethodLabelAsString (const EN_DemandGenerationMethod&);
44 
48  static std::string describeLabels();
49 
54 
58  char getMethodAsChar() const;
59 
63  std::string getMethodAsString() const;
64 
69  const std::string describe() const;
70 
71  public:
75  bool operator== (const EN_DemandGenerationMethod&) const;
76 
77  public:
85  DemandGenerationMethod (const char iMethod);
89  DemandGenerationMethod (const std::string& iMethod);
94 
95  private:
100 
101 
102  private:
106  static const std::string _labels[LAST_VALUE];
110  static const char _methodLabels[LAST_VALUE];
111 
112  private:
113  // //////// Attributes /////////
118  };
119 
120 }
121 #endif // __STDAIR_BAS_DEMANDGENERATIONMETHOD_HPP
Handle on the StdAir library context.
bool operator==(const EN_DemandGenerationMethod &) const
static char getMethodLabel(const EN_DemandGenerationMethod &)
Base class for the light structures.
Enumeration of demand (booking request) generation methods.
const std::string describe() const
static const std::string & getLabel(const EN_DemandGenerationMethod &)
EN_DemandGenerationMethod getMethod() const
static std::string getMethodLabelAsString(const EN_DemandGenerationMethod &)