1.00.15
C++ Simulated Airline Inventory Management System Library
Toggle main menu visibility
Loading...
Searching...
No Matches
FlightTypeCode.hpp
Go to the documentation of this file.
1
#ifndef __AIRINV_BAS_FLIGHTTYPECODE_HPP
2
#define __AIRINV_BAS_FLIGHTTYPECODE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
// StdAir
10
#include <stdair/basic/StructAbstract.hpp>
11
12
namespace
AIRINV
{
13
15
struct
FlightTypeCode
:
public
stdair::StructAbstract {
16
public
:
17
typedef
enum
{
18
DOMESTIC
= 0,
19
INTERNATIONAL
,
20
GROUND_HANDLING
,
21
LAST_VALUE
22
} EN_FlightTypeCode;
23
25
static
const
std::string&
getLabel
(
const
EN_FlightTypeCode&);
26
28
static
const
std::string&
getCodeLabel
(
const
EN_FlightTypeCode&);
29
31
static
std::string
describeLabels
();
32
34
EN_FlightTypeCode
getCode
()
const
;
35
37
const
std::string
describe
()
const
;
38
39
40
public
:
42
FlightTypeCode
(
const
EN_FlightTypeCode&);
44
FlightTypeCode
(
const
std::string& iCode);
45
46
47
private
:
49
static
const
std::string _labels[
LAST_VALUE
];
51
static
const
std::string _codeLabels[
LAST_VALUE
];
52
53
54
private
:
55
// //////// Attributes /////////
57
EN_FlightTypeCode _code;
58
};
59
60
}
61
#endif
// __AIRINV_BAS_FLIGHTTYPECODE_HPP
AIRINV
Definition
AIRINV_Master_Service.hpp:38
AIRINV::FlightTypeCode::getLabel
static const std::string & getLabel(const EN_FlightTypeCode &)
Definition
FlightTypeCode.cpp:54
AIRINV::FlightTypeCode::getCode
EN_FlightTypeCode getCode() const
Definition
FlightTypeCode.cpp:77
AIRINV::FlightTypeCode::getCodeLabel
static const std::string & getCodeLabel(const EN_FlightTypeCode &)
Definition
FlightTypeCode.cpp:60
AIRINV::FlightTypeCode::FlightTypeCode
FlightTypeCode(const EN_FlightTypeCode &)
Definition
FlightTypeCode.cpp:24
AIRINV::FlightTypeCode::describeLabels
static std::string describeLabels()
Definition
FlightTypeCode.cpp:65
AIRINV::FlightTypeCode::GROUND_HANDLING
@ GROUND_HANDLING
Definition
FlightTypeCode.hpp:20
AIRINV::FlightTypeCode::LAST_VALUE
@ LAST_VALUE
Definition
FlightTypeCode.hpp:21
AIRINV::FlightTypeCode::DOMESTIC
@ DOMESTIC
Definition
FlightTypeCode.hpp:18
AIRINV::FlightTypeCode::INTERNATIONAL
@ INTERNATIONAL
Definition
FlightTypeCode.hpp:19
AIRINV::FlightTypeCode::describe
const std::string describe() const
Definition
FlightTypeCode.cpp:82
Generated on
for AirInv by
1.17.0