Class representing the actual attributes for a segment-features. More...
#include <stdair/bom/AirlineClassList.hpp>
Public Types | |
typedef AirlineClassListKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const AirlineCodeList_T & | getAirlineCodeList () const |
const ClassList_StringList_T & | getClassCodeList () const |
const HolderMap_T & | getHolderMap () const |
const stdair::Yield_T & | getYield () const |
const stdair::Fare_T & | getFare () const |
void | setYield (const Yield_T &iYield) |
void | setFare (const Fare_T &iFare) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
AirlineClassList (const Key_T &) | |
virtual | ~AirlineClassList () |
Protected Attributes | |
Key_T | _key |
BomAbstract * | _parent |
HolderMap_T | _holderMap |
Yield_T | _yield |
Fare_T | _fare |
Friends | |
class | FacBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for a segment-features.
Definition allowing to retrieve the associated BOM key type.
Definition at line 37 of file AirlineClassList.hpp.
stdair::AirlineClassList::AirlineClassList | ( | const Key_T & | iKey | ) | [protected] |
Main constructor.
Definition at line 32 of file AirlineClassList.cpp.
stdair::AirlineClassList::~AirlineClassList | ( | ) | [protected, virtual] |
Destructor.
Definition at line 37 of file AirlineClassList.cpp.
const Key_T& stdair::AirlineClassList::getKey | ( | ) | const [inline] |
Get the airline class list key.
Definition at line 43 of file AirlineClassList.hpp.
References _key.
BomAbstract* const stdair::AirlineClassList::getParent | ( | ) | const [inline] |
const AirlineCodeList_T& stdair::AirlineClassList::getAirlineCodeList | ( | ) | const [inline] |
Get the airline code list (part of the primary key).
Definition at line 53 of file AirlineClassList.hpp.
References _key, and stdair::AirlineClassListKey::getAirlineCodeList().
const ClassList_StringList_T& stdair::AirlineClassList::getClassCodeList | ( | ) | const [inline] |
Get the class code list (part of the primary key).
Definition at line 58 of file AirlineClassList.hpp.
References _key, and stdair::AirlineClassListKey::getClassCodeList().
const HolderMap_T& stdair::AirlineClassList::getHolderMap | ( | ) | const [inline] |
Get the map of children holders.
Definition at line 63 of file AirlineClassList.hpp.
References _holderMap.
const stdair::Yield_T& stdair::AirlineClassList::getYield | ( | ) | const [inline] |
const stdair::Fare_T& stdair::AirlineClassList::getFare | ( | ) | const [inline] |
void stdair::AirlineClassList::setYield | ( | const Yield_T & | iYield | ) | [inline] |
Definition at line 79 of file AirlineClassList.hpp.
References _yield.
void stdair::AirlineClassList::setFare | ( | const Fare_T & | iFare | ) | [inline] |
Definition at line 83 of file AirlineClassList.hpp.
References _fare.
void stdair::AirlineClassList::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 94 of file AirlineClassList.hpp.
References toString().
void stdair::AirlineClassList::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 103 of file AirlineClassList.hpp.
std::string stdair::AirlineClassList::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 41 of file AirlineClassList.cpp.
References describeKey(), _yield, and _fare.
Referenced by toStream().
const std::string stdair::AirlineClassList::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 114 of file AirlineClassList.hpp.
References _key, and stdair::AirlineClassListKey::toString().
Referenced by toString().
void stdair::AirlineClassList::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
Serialisation.
Definition at line 60 of file AirlineClassList.cpp.
friend class FacBom [friend] |
Definition at line 28 of file AirlineClassList.hpp.
friend class FacBomManager [friend] |
Definition at line 29 of file AirlineClassList.hpp.
friend class boost::serialization::access [friend] |
Definition at line 30 of file AirlineClassList.hpp.
Key_T stdair::AirlineClassList::_key [protected] |
Primary key (flight number and departure date).
Definition at line 163 of file AirlineClassList.hpp.
Referenced by serialize(), getKey(), getAirlineCodeList(), getClassCodeList(), and describeKey().
BomAbstract* stdair::AirlineClassList::_parent [protected] |
Pointer on the parent class (Inventory).
Definition at line 168 of file AirlineClassList.hpp.
Referenced by getParent().
HolderMap_T stdair::AirlineClassList::_holderMap [protected] |
Map holding the children (SegmentDate and LegDate objects).
Definition at line 173 of file AirlineClassList.hpp.
Referenced by getHolderMap().
Yield_T stdair::AirlineClassList::_yield [protected] |
Definition at line 178 of file AirlineClassList.hpp.
Referenced by toString(), serialize(), getYield(), and setYield().
Fare_T stdair::AirlineClassList::_fare [protected] |
Definition at line 183 of file AirlineClassList.hpp.
Referenced by toString(), serialize(), getFare(), and setFare().