1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
EventType.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BAS_EVENTTYPE_HPP
2
#define __STDAIR_BAS_EVENTTYPE_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
EventType
:
public
StructAbstract
{
16
public
:
17
typedef
enum
{
18
BKG_REQ
= 0,
19
CX
,
20
OPT_NOT_4_FD
,
21
OPT_NOT_4_NET
,
22
SKD_CHG
,
23
SNAPSHOT
,
24
RM
,
25
BRK_PT
,
26
LAST_VALUE
27
} EN_EventType;
28
34
static
const
std::string&
getLabel
(
const
EN_EventType&);
35
39
static
char
getTypeLabel
(
const
EN_EventType&);
40
44
static
std::string
getTypeLabelAsString
(
const
EN_EventType&);
45
47
static
std::string
describeLabels
();
48
50
EN_EventType
getType
()
const
;
51
55
std::string
getTypeAsString
()
const
;
56
62
const
std::string
describe
()
const
;
63
64
public
:
66
bool
operator==
(
const
EN_EventType&)
const
;
67
68
public
:
70
EventType
(
const
EN_EventType&);
72
EventType
(
const
char
iType);
74
EventType
(
const
std::string& iTypeStr);
76
EventType
(
const
EventType
&);
77
78
private
:
80
EventType
();
81
82
83
private
:
85
static
const
std::string _labels[
LAST_VALUE
];
87
static
const
char
_typeLabels[
LAST_VALUE
];
88
89
90
private
:
91
// //////// Attributes /////////
93
EN_EventType _type;
94
};
95
96
}
97
#endif
// __STDAIR_BAS_EVENTTYPE_HPP
StructAbstract.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::EventType
Definition
EventType.hpp:15
stdair::EventType::getTypeLabel
static char getTypeLabel(const EN_EventType &)
Definition
EventType.cpp:88
stdair::EventType::getTypeLabelAsString
static std::string getTypeLabelAsString(const EN_EventType &)
Definition
EventType.cpp:93
stdair::EventType::SKD_CHG
@ SKD_CHG
Definition
EventType.hpp:22
stdair::EventType::LAST_VALUE
@ LAST_VALUE
Definition
EventType.hpp:26
stdair::EventType::BKG_REQ
@ BKG_REQ
Definition
EventType.hpp:18
stdair::EventType::SNAPSHOT
@ SNAPSHOT
Definition
EventType.hpp:23
stdair::EventType::OPT_NOT_4_NET
@ OPT_NOT_4_NET
Definition
EventType.hpp:21
stdair::EventType::CX
@ CX
Definition
EventType.hpp:19
stdair::EventType::BRK_PT
@ BRK_PT
Definition
EventType.hpp:25
stdair::EventType::OPT_NOT_4_FD
@ OPT_NOT_4_FD
Definition
EventType.hpp:20
stdair::EventType::RM
@ RM
Definition
EventType.hpp:24
stdair::EventType::describeLabels
static std::string describeLabels()
Definition
EventType.cpp:100
stdair::EventType::getTypeAsString
std::string getTypeAsString() const
Definition
EventType.cpp:117
stdair::EventType::EventType
EventType(const EN_EventType &)
Definition
EventType.cpp:36
stdair::EventType::operator==
bool operator==(const EN_EventType &) const
Definition
EventType.cpp:131
stdair::EventType::describe
const std::string describe() const
Definition
EventType.cpp:124
stdair::EventType::getLabel
static const std::string & getLabel(const EN_EventType &)
Definition
EventType.cpp:83
stdair::EventType::getType
EN_EventType getType() const
Definition
EventType.cpp:112
stdair::StructAbstract::StructAbstract
StructAbstract()
Definition
StructAbstract.hpp:49
Generated for StdAir by
1.17.0