StdAir Logo  1.00.16
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
12namespace stdair {
13
18 public:
19 typedef enum {
23 } EN_DemandGenerationMethod;
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
53 EN_DemandGenerationMethod getMethod() const;
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:
81 DemandGenerationMethod (const EN_DemandGenerationMethod&);
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 /////////
117 EN_DemandGenerationMethod _method;
118 };
119
120}
121#endif // __STDAIR_BAS_DEMANDGENERATIONMETHOD_HPP
Handle on the StdAir library context.
Enumeration of demand (booking request) generation methods.
static std::string getMethodLabelAsString(const EN_DemandGenerationMethod &)
static const std::string & getLabel(const EN_DemandGenerationMethod &)
EN_DemandGenerationMethod getMethod() const
DemandGenerationMethod(const EN_DemandGenerationMethod &)
bool operator==(const EN_DemandGenerationMethod &) const
static char getMethodLabel(const EN_DemandGenerationMethod &)