0.45.1
C++ Standard Airline IT Object Library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
YieldFeatures.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_YIELDFEATURES_HPP
2
#define __STDAIR_BOM_YIELDFEATURES_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// StdAir
8
#include <
stdair/bom/BomAbstract.hpp
>
9
#include <
stdair/bom/YieldFeaturesKey.hpp
>
10
#include <
stdair/bom/YieldFeaturesTypes.hpp
>
11
12
// Forward declaration
13
namespace
stdair {
14
19
class
YieldFeatures
:
public
BomAbstract
{
20
template
<
typename
BOM>
friend
class
FacBom
;
21
friend
class
FacBomManager
;
22
23
public
:
24
// /////// Type definitions
28
typedef
YieldFeaturesKey
Key_T
;
29
30
public
:
31
// /////////// Display support methods /////////
37
void
toStream
(std::ostream& ioOut)
const
{
38
ioOut <<
toString
();
39
}
40
46
void
fromStream
(std::istream& ioIn) {
47
}
48
52
std::string
toString
()
const
;
53
57
const
std::string
describeKey
()
const
{
58
return
_key
.
toString
();
59
}
60
61
public
:
62
// ////////// Getters ////////////
66
const
Key_T
&
getKey
()
const
{
67
return
_key
;
68
}
69
73
BomAbstract
*
const
getParent
()
const
{
74
return
_parent
;
75
}
76
80
const
HolderMap_T
&
getHolderMap
()
const
{
81
return
_holderMap
;
82
}
83
87
const
CabinCode_T
&
getCabinCode
()
const
{
88
return
_key
.
getCabinCode
();
89
}
90
94
const
TripType_T
&
getTripType
()
const
{
95
return
_key
.
getTripType
();
96
}
97
98
99
public
:
100
// ////////////// Business methods ///////////////
105
bool
isTripTypeValid
(
const
TripType_T
&)
const
;
106
107
108
protected
:
109
// ////////// Constructors and destructors /////////
113
YieldFeatures
(
const
Key_T
&);
114
118
virtual
~YieldFeatures
();
119
120
private
:
124
YieldFeatures
();
125
129
YieldFeatures
(
const
YieldFeatures
&);
130
131
132
protected
:
133
// ////////// Attributes /////////
137
Key_T
_key
;
138
142
BomAbstract
*
_parent
;
143
147
HolderMap_T
_holderMap
;
148
};
149
150
}
151
#endif // __STDAIR_BOM_YIELDFEATURES_HPP
152
Generated on Fri Aug 17 2012 16:00:34 for StdAir by
1.8.1.2