1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
PassengerChoiceModel.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BAS_PASSENGERCHOICEMODEL_HPP
2
#define __STDAIR_BAS_PASSENGERCHOICEMODEL_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
15
struct
PassengerChoiceModel
:
public
stdair::StructAbstract
{
16
public
:
17
typedef
enum
{
18
HARD_RESTRICTION
= 0,
19
PRICE_ORIENTED
,
20
HYBRID
,
21
LAST_VALUE
22
} EN_PassengerChoiceModel;
23
26
static
const
std::string&
getLabel
(
const
EN_PassengerChoiceModel&);
27
29
static
char
getModelLabel
(
const
EN_PassengerChoiceModel&);
30
32
static
std::string
getModelLabelAsString
(
const
EN_PassengerChoiceModel&);
33
35
static
std::string
describeLabels
();
36
38
EN_PassengerChoiceModel
getModel
()
const
;
39
41
std::string
getModelAsString
()
const
;
42
45
const
std::string
describe
()
const
;
46
47
public
:
49
bool
operator==
(
const
EN_PassengerChoiceModel&)
const
;
50
51
public
:
53
PassengerChoiceModel
(
const
EN_PassengerChoiceModel&);
55
PassengerChoiceModel
(
const
char
iModel);
57
PassengerChoiceModel
(
const
PassengerChoiceModel
&);
58
59
private
:
61
PassengerChoiceModel
();
62
63
64
private
:
66
static
const
std::string _labels[
LAST_VALUE
];
68
static
const
char
_modelLabels[
LAST_VALUE
];
69
70
71
private
:
72
// //////// Attributes /////////
74
EN_PassengerChoiceModel _model;
75
};
76
}
77
78
#endif
// __STDAIR_BAS_PASSENGERCHOICEMODEL_HPP
StructAbstract.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::PassengerChoiceModel
Definition
PassengerChoiceModel.hpp:15
stdair::PassengerChoiceModel::describe
const std::string describe() const
Definition
PassengerChoiceModel.cpp:102
stdair::PassengerChoiceModel::PassengerChoiceModel
PassengerChoiceModel(const EN_PassengerChoiceModel &)
Definition
PassengerChoiceModel.cpp:36
stdair::PassengerChoiceModel::getModel
EN_PassengerChoiceModel getModel() const
Definition
PassengerChoiceModel.cpp:90
stdair::PassengerChoiceModel::getLabel
static const std::string & getLabel(const EN_PassengerChoiceModel &)
Definition
PassengerChoiceModel.cpp:60
stdair::PassengerChoiceModel::PRICE_ORIENTED
@ PRICE_ORIENTED
Definition
PassengerChoiceModel.hpp:19
stdair::PassengerChoiceModel::HYBRID
@ HYBRID
Definition
PassengerChoiceModel.hpp:20
stdair::PassengerChoiceModel::LAST_VALUE
@ LAST_VALUE
Definition
PassengerChoiceModel.hpp:21
stdair::PassengerChoiceModel::HARD_RESTRICTION
@ HARD_RESTRICTION
Definition
PassengerChoiceModel.hpp:18
stdair::PassengerChoiceModel::getModelAsString
std::string getModelAsString() const
Definition
PassengerChoiceModel.cpp:95
stdair::PassengerChoiceModel::getModelLabel
static char getModelLabel(const EN_PassengerChoiceModel &)
Definition
PassengerChoiceModel.cpp:65
stdair::PassengerChoiceModel::describeLabels
static std::string describeLabels()
Definition
PassengerChoiceModel.cpp:78
stdair::PassengerChoiceModel::getModelLabelAsString
static std::string getModelLabelAsString(const EN_PassengerChoiceModel &)
Definition
PassengerChoiceModel.cpp:71
stdair::PassengerChoiceModel::operator==
bool operator==(const EN_PassengerChoiceModel &) const
Definition
PassengerChoiceModel.cpp:110
stdair::StructAbstract
Base class for the light structures.
Definition
StructAbstract.hpp:16
Generated for StdAir by
1.17.0