1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
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
template
<
typename
BOM>
friend
class
FacCloneBom
;
22
friend
class
FacBomManager
;
23
24
public
:
25
// /////// Type definitions
29
typedef
YieldFeaturesKey
Key_T
;
30
31
public
:
32
// /////////// Display support methods /////////
38
void
toStream
(std::ostream& ioOut)
const
{
39
ioOut <<
toString
();
40
}
41
47
void
fromStream
(std::istream& ioIn) {
48
}
49
53
std::string
toString
()
const
;
54
58
const
std::string
describeKey
()
const
{
59
return
_key
.toString();
60
}
61
62
public
:
63
// ////////// Getters ////////////
67
const
Key_T
&
getKey
()
const
{
68
return
_key
;
69
}
70
74
BomAbstract
*
const
getParent
()
const
{
75
return
_parent
;
76
}
77
81
const
HolderMap_T
&
getHolderMap
()
const
{
82
return
_holderMap
;
83
}
84
88
const
CabinCode_T
&
getCabinCode
()
const
{
89
return
_key
.getCabinCode();
90
}
91
95
const
TripType_T
&
getTripType
()
const
{
96
return
_key
.getTripType();
97
}
98
99
100
public
:
101
// ////////////// Business methods ///////////////
106
bool
isTripTypeValid
(
const
TripType_T
&)
const
;
107
108
109
protected
:
110
// ////////// Constructors and destructors /////////
114
YieldFeatures
(
const
Key_T
&);
115
119
virtual
~YieldFeatures
();
120
121
private
:
125
YieldFeatures
();
126
130
YieldFeatures
(
const
YieldFeatures
&);
131
132
133
protected
:
134
// ////////// Attributes /////////
138
Key_T
_key
;
139
143
BomAbstract
*
_parent
;
144
148
HolderMap_T
_holderMap
;
149
};
150
151
}
152
#endif
// __STDAIR_BOM_YIELDFEATURES_HPP
153
BomAbstract.hpp
YieldFeaturesKey.hpp
YieldFeaturesTypes.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::TripType_T
std::string TripType_T
Definition
stdair_basic_types.hpp:64
stdair::HolderMap_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition
BomAbstract.hpp:63
stdair::CabinCode_T
std::string CabinCode_T
Definition
stdair_basic_types.hpp:41
stdair::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:53
stdair::YieldFeatures
Class representing the actual attributes for a yield date-period.
Definition
YieldFeatures.hpp:19
stdair::YieldFeatures::~YieldFeatures
virtual ~YieldFeatures()
Definition
YieldFeatures.cpp:33
stdair::YieldFeatures::_holderMap
HolderMap_T _holderMap
Definition
YieldFeatures.hpp:148
stdair::YieldFeatures::toString
std::string toString() const
Definition
YieldFeatures.cpp:37
stdair::YieldFeatures::getParent
BomAbstract *const getParent() const
Definition
YieldFeatures.hpp:74
stdair::YieldFeatures::fromStream
void fromStream(std::istream &ioIn)
Definition
YieldFeatures.hpp:47
stdair::YieldFeatures::getTripType
const TripType_T & getTripType() const
Definition
YieldFeatures.hpp:95
stdair::YieldFeatures::Key_T
YieldFeaturesKey Key_T
Definition
YieldFeatures.hpp:29
stdair::YieldFeatures::isTripTypeValid
bool isTripTypeValid(const TripType_T &) const
Definition
YieldFeatures.cpp:45
stdair::YieldFeatures::getCabinCode
const CabinCode_T & getCabinCode() const
Definition
YieldFeatures.hpp:88
stdair::YieldFeatures::getHolderMap
const HolderMap_T & getHolderMap() const
Definition
YieldFeatures.hpp:81
stdair::YieldFeatures::describeKey
const std::string describeKey() const
Definition
YieldFeatures.hpp:58
stdair::YieldFeatures::toStream
void toStream(std::ostream &ioOut) const
Definition
YieldFeatures.hpp:38
stdair::YieldFeatures::_key
Key_T _key
Definition
YieldFeatures.hpp:138
stdair::YieldFeatures::getKey
const Key_T & getKey() const
Definition
YieldFeatures.hpp:67
stdair::YieldFeatures::FacBom
friend class FacBom
Definition
YieldFeatures.hpp:20
stdair::YieldFeatures::FacCloneBom
friend class FacCloneBom
Definition
YieldFeatures.hpp:21
stdair::YieldFeatures::FacBomManager
friend class FacBomManager
Definition
YieldFeatures.hpp:22
stdair::YieldFeatures::_parent
BomAbstract * _parent
Definition
YieldFeatures.hpp:143
stdair::YieldFeatures::YieldFeatures
YieldFeatures(const Key_T &)
Definition
YieldFeatures.cpp:28
stdair::YieldFeaturesKey
Key of date-period.
Definition
YieldFeaturesKey.hpp:18
Generated for StdAir by
1.17.0