Class representing the actual attributes for a family fare. More...
#include <stdair/bom/FareFamily.hpp>
Public Types | |
typedef FareFamilyKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const FamilyCode_T & | getFamilyCode () const |
const HolderMap_T & | getHolderMap () const |
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) |
Public Attributes | |
Key_T | _key |
BomAbstract * | _parent |
HolderMap_T | _holderMap |
Protected Member Functions | |
FareFamily (const Key_T &) | |
virtual | ~FareFamily () |
Friends | |
class | FacBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for a family fare.
Definition at line 27 of file FareFamily.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 37 of file FareFamily.hpp.
stdair::FareFamily::FareFamily | ( | const Key_T & | iKey | ) | [protected] |
Constructor.
Definition at line 29 of file FareFamily.cpp.
stdair::FareFamily::~FareFamily | ( | ) | [protected, virtual] |
Destructor.
Definition at line 33 of file FareFamily.cpp.
const Key_T& stdair::FareFamily::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::FareFamily::getParent | ( | ) | const [inline] |
const FamilyCode_T& stdair::FareFamily::getFamilyCode | ( | ) | const [inline] |
Get the family fare code (part of the primary key).
Definition at line 53 of file FareFamily.hpp.
References _key, and stdair::FareFamilyKey::getFamilyCode().
const HolderMap_T& stdair::FareFamily::getHolderMap | ( | ) | const [inline] |
Get the map of children holders.
Definition at line 58 of file FareFamily.hpp.
References _holderMap.
void stdair::FareFamily::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 70 of file FareFamily.hpp.
References toString().
void stdair::FareFamily::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 79 of file FareFamily.hpp.
std::string stdair::FareFamily::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 37 of file FareFamily.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::FareFamily::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 90 of file FareFamily.hpp.
References _key, and stdair::FareFamilyKey::toString().
Referenced by toString().
void stdair::FareFamily::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
friend class FacBom [friend] |
Definition at line 28 of file FareFamily.hpp.
friend class FacBomManager [friend] |
Definition at line 29 of file FareFamily.hpp.
friend class boost::serialization::access [friend] |
Definition at line 30 of file FareFamily.hpp.
Primary key (fare family code).
Definition at line 141 of file FareFamily.hpp.
Referenced by describeKey(), getFamilyCode(), getKey(), and serialize().
Pointer on the parent class (SegmentCabin).
Definition at line 146 of file FareFamily.hpp.
Referenced by getParent().
Map holding the children (BookingClass objects).
Definition at line 151 of file FareFamily.hpp.
Referenced by getHolderMap().