Class representing the actual attributes for a yield date-period. More...
#include <stdair/bom/YieldFeatures.hpp>
Inheritance diagram for stdair::YieldFeatures:Public Types | |
| typedef YieldFeaturesKey | Key_T |
Public Member Functions | |
| void | toStream (std::ostream &ioOut) const |
| void | fromStream (std::istream &ioIn) |
| std::string | toString () const |
| const std::string | describeKey () const |
| const Key_T & | getKey () const |
| BomAbstract *const | getParent () const |
| const HolderMap_T & | getHolderMap () const |
| const CabinCode_T & | getCabinCode () const |
| const TripType_T & | getTripType () const |
| bool | isTripTypeValid (const TripType_T &) const |
Protected Member Functions | |
| YieldFeatures (const Key_T &) | |
| virtual | ~YieldFeatures () |
Protected Attributes | |
| Key_T | _key |
| BomAbstract * | _parent |
| HolderMap_T | _holderMap |
Friends | |
| class | FacBom |
| class | FacCloneBom |
| class | FacBomManager |
Class representing the actual attributes for a yield date-period.
Definition at line 19 of file YieldFeatures.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 29 of file YieldFeatures.hpp.
|
protected |
Main constructor.
Definition at line 28 of file YieldFeatures.cpp.
|
protectedvirtual |
Destructor.
Definition at line 33 of file YieldFeatures.cpp.
|
inlinevirtual |
Dump a Business Object into an output stream.
| ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 38 of file YieldFeatures.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
| istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 47 of file YieldFeatures.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 37 of file YieldFeatures.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 58 of file YieldFeatures.hpp.
References _key, and stdair::YieldFeaturesKey::toString().
Referenced by toString().
|
inline |
Get the primary key (trip type, cabin code).
Definition at line 67 of file YieldFeatures.hpp.
References _key.
|
inline |
Get a reference on the parent object instance.
Definition at line 74 of file YieldFeatures.hpp.
References _parent.
|
inline |
Get a reference on the children holder.
Definition at line 81 of file YieldFeatures.hpp.
References _holderMap.
|
inline |
Get the cabin code.
Definition at line 88 of file YieldFeatures.hpp.
References _key, and stdair::YieldFeaturesKey::getCabinCode().
|
inline |
Get the trip type.
Definition at line 95 of file YieldFeatures.hpp.
References _key, and stdair::YieldFeaturesKey::getTripType().
Referenced by isTripTypeValid().
| bool stdair::YieldFeatures::isTripTypeValid | ( | const TripType_T & | iBookingRequestTripType | ) | const |
Check whether the fare rule trip type corresponds to the booking request trip type.
Definition at line 45 of file YieldFeatures.cpp.
References getTripType(), stdair::TRIP_TYPE_INBOUND, stdair::TRIP_TYPE_OUTBOUND, and stdair::TRIP_TYPE_ROUND_TRIP.
|
friend |
Definition at line 20 of file YieldFeatures.hpp.
|
friend |
Definition at line 21 of file YieldFeatures.hpp.
|
friend |
Definition at line 22 of file YieldFeatures.hpp.
|
protected |
Primary key (flight number and departure date).
Definition at line 138 of file YieldFeatures.hpp.
Referenced by describeKey(), getCabinCode(), getKey(), and getTripType().
|
protected |
Pointer on the parent class.
Definition at line 143 of file YieldFeatures.hpp.
Referenced by getParent().
|
protected |
Map holding the children.
Definition at line 148 of file YieldFeatures.hpp.
Referenced by getHolderMap().
1.8.1.1