1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1