1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
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
10
#include <
stdair/basic/StructAbstract.hpp
>
11
12
namespace
stdair
{
13
17
struct
DemandGenerationMethod
:
public
StructAbstract
{
18
public
:
19
typedef
enum
{
20
POI_PRO
= 0,
21
STA_ORD
,
22
LAST_VALUE
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);
93
DemandGenerationMethod
(
const
DemandGenerationMethod
&);
94
95
private
:
99
DemandGenerationMethod
();
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
StructAbstract.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DemandGenerationMethod
Enumeration of demand (booking request) generation methods.
Definition
DemandGenerationMethod.hpp:17
stdair::DemandGenerationMethod::describe
const std::string describe() const
Definition
DemandGenerationMethod.cpp:128
stdair::DemandGenerationMethod::getMethodLabelAsString
static std::string getMethodLabelAsString(const EN_DemandGenerationMethod &)
Definition
DemandGenerationMethod.cpp:90
stdair::DemandGenerationMethod::getLabel
static const std::string & getLabel(const EN_DemandGenerationMethod &)
Definition
DemandGenerationMethod.cpp:78
stdair::DemandGenerationMethod::LAST_VALUE
@ LAST_VALUE
Definition
DemandGenerationMethod.hpp:22
stdair::DemandGenerationMethod::STA_ORD
@ STA_ORD
Definition
DemandGenerationMethod.hpp:21
stdair::DemandGenerationMethod::POI_PRO
@ POI_PRO
Definition
DemandGenerationMethod.hpp:20
stdair::DemandGenerationMethod::getMethod
EN_DemandGenerationMethod getMethod() const
Definition
DemandGenerationMethod.cpp:110
stdair::DemandGenerationMethod::DemandGenerationMethod
DemandGenerationMethod(const EN_DemandGenerationMethod &)
Definition
DemandGenerationMethod.cpp:34
stdair::DemandGenerationMethod::getMethodAsChar
char getMethodAsChar() const
Definition
DemandGenerationMethod.cpp:115
stdair::DemandGenerationMethod::describeLabels
static std::string describeLabels()
Definition
DemandGenerationMethod.cpp:97
stdair::DemandGenerationMethod::operator==
bool operator==(const EN_DemandGenerationMethod &) const
Definition
DemandGenerationMethod.cpp:136
stdair::DemandGenerationMethod::getMethodAsString
std::string getMethodAsString() const
Definition
DemandGenerationMethod.cpp:121
stdair::DemandGenerationMethod::getMethodLabel
static char getMethodLabel(const EN_DemandGenerationMethod &)
Definition
DemandGenerationMethod.cpp:84
stdair::StructAbstract::StructAbstract
StructAbstract()
Definition
StructAbstract.hpp:49
Generated for StdAir by
1.17.0