StdAir Logo  1.00.10
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
stdair::DemandGenerationMethod::describe
const std::string describe() const
Definition: DemandGenerationMethod.cpp:128
stdair::DemandGenerationMethod::LAST_VALUE
@ LAST_VALUE
Definition: DemandGenerationMethod.hpp:22
stdair::DemandGenerationMethod::describeLabels
static std::string describeLabels()
Definition: DemandGenerationMethod.cpp:97
stdair::DemandGenerationMethod::getMethod
EN_DemandGenerationMethod getMethod() const
Definition: DemandGenerationMethod.cpp:110
stdair::DemandGenerationMethod::POI_PRO
@ POI_PRO
Definition: DemandGenerationMethod.hpp:20
stdair::DemandGenerationMethod::getMethodLabel
static char getMethodLabel(const EN_DemandGenerationMethod &)
Definition: DemandGenerationMethod.cpp:84
stdair::DemandGenerationMethod::getMethodAsChar
char getMethodAsChar() const
Definition: DemandGenerationMethod.cpp:115
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::DemandGenerationMethod::getLabel
static const std::string & getLabel(const EN_DemandGenerationMethod &)
Definition: DemandGenerationMethod.cpp:78
stdair::DemandGenerationMethod
Enumeration of demand (booking request) generation methods.
Definition: DemandGenerationMethod.hpp:17
stdair::DemandGenerationMethod::STA_ORD
@ STA_ORD
Definition: DemandGenerationMethod.hpp:21
StructAbstract.hpp
stdair::DemandGenerationMethod::operator==
bool operator==(const EN_DemandGenerationMethod &) const
Definition: DemandGenerationMethod.cpp:136
stdair::DemandGenerationMethod::EN_DemandGenerationMethod
EN_DemandGenerationMethod
Definition: DemandGenerationMethod.hpp:19
stdair::DemandGenerationMethod::getMethodLabelAsString
static std::string getMethodLabelAsString(const EN_DemandGenerationMethod &)
Definition: DemandGenerationMethod.cpp:90
stdair::DemandGenerationMethod::getMethodAsString
std::string getMethodAsString() const
Definition: DemandGenerationMethod.cpp:121
stdair::StructAbstract
Base class for the light structures.
Definition: StructAbstract.hpp:16