1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
PassengerType.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BAS_PASSENGERTYPE_HPP
2
#define __STDAIR_BAS_PASSENGERTYPE_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
PassengerType
:
public
StructAbstract
{
16
public
:
17
typedef
enum
{
18
LEISURE
= 0,
19
BUSINESS
,
20
FIRST
,
21
LAST_VALUE
22
} EN_PassengerType;
23
25
static
const
std::string&
getLabel
(
const
EN_PassengerType&);
26
28
static
char
getTypeLabel
(
const
EN_PassengerType&);
29
31
static
std::string
getTypeLabelAsString
(
const
EN_PassengerType&);
32
34
static
std::string
describeLabels
();
35
37
EN_PassengerType
getType
()
const
;
38
40
std::string
getTypeAsString
()
const
;
41
43
const
std::string
describe
()
const
;
44
45
public
:
47
bool
operator==
(
const
EN_PassengerType&)
const
;
48
49
public
:
51
PassengerType
(
const
EN_PassengerType&);
53
PassengerType
(
const
char
iType);
54
55
56
private
:
58
static
const
std::string _labels[
LAST_VALUE
];
60
static
const
char
_typeLabels[
LAST_VALUE
];
61
62
63
private
:
64
// //////// Attributes /////////
66
EN_PassengerType _type;
67
};
68
69
}
70
#endif
// __STDAIR_BAS_PASSENGERTYPE_HPP
StructAbstract.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::PassengerType::LEISURE
@ LEISURE
Definition
PassengerType.hpp:18
stdair::PassengerType::BUSINESS
@ BUSINESS
Definition
PassengerType.hpp:19
stdair::PassengerType::FIRST
@ FIRST
Definition
PassengerType.hpp:20
stdair::PassengerType::LAST_VALUE
@ LAST_VALUE
Definition
PassengerType.hpp:21
stdair::PassengerType::describe
const std::string describe() const
Definition
PassengerType.cpp:86
stdair::PassengerType::operator==
bool operator==(const EN_PassengerType &) const
Definition
PassengerType.cpp:93
stdair::PassengerType::getType
EN_PassengerType getType() const
Definition
PassengerType.cpp:74
stdair::PassengerType::getTypeAsString
std::string getTypeAsString() const
Definition
PassengerType.cpp:79
stdair::PassengerType::getLabel
static const std::string & getLabel(const EN_PassengerType &)
Definition
PassengerType.cpp:44
stdair::PassengerType::describeLabels
static std::string describeLabels()
Definition
PassengerType.cpp:62
stdair::PassengerType::PassengerType
PassengerType(const EN_PassengerType &)
Definition
PassengerType.cpp:21
stdair::PassengerType::getTypeLabelAsString
static std::string getTypeLabelAsString(const EN_PassengerType &)
Definition
PassengerType.cpp:55
stdair::PassengerType::getTypeLabel
static char getTypeLabel(const EN_PassengerType &)
Definition
PassengerType.cpp:49
stdair::StructAbstract::StructAbstract
StructAbstract()
Definition
StructAbstract.hpp:49
Generated for StdAir by
1.17.0