StdAir Logo  0.44.0
C++ Standard Airline IT Object Library
stdair::AirlineClassList Class Reference

Class representing the actual attributes for a segment-features. More...

#include <stdair/bom/AirlineClassList.hpp>

Inheritance diagram for stdair::AirlineClassList:

List of all members.

Public Types

typedef AirlineClassListKey Key_T

Public Member Functions

const Key_TgetKey () const
BomAbstract *const getParent () const
const AirlineCodeList_TgetAirlineCodeList () const
const ClassList_StringList_TgetClassCodeList () const
const HolderMap_TgetHolderMap () const
const stdair::Yield_TgetYield () const
const stdair::Fare_TgetFare () 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

Detailed Description

Class representing the actual attributes for a segment-features.

Definition at line 27 of file AirlineClassList.hpp.


Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 37 of file AirlineClassList.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Get the parent object.

Definition at line 48 of file AirlineClassList.hpp.

References _parent.

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]

Get the yield.

Definition at line 68 of file AirlineClassList.hpp.

References _yield.

const stdair::Fare_T& stdair::AirlineClassList::getFare ( ) const [inline]

Get the fare.

Definition at line 73 of file AirlineClassList.hpp.

References _fare.

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.

Parameters:
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.

Parameters:
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 _fare, _yield, and describeKey().

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().

template<class Archive >
void stdair::AirlineClassList::serialize ( Archive &  ar,
const unsigned int  iFileVersion 
)

Serialisation.

Definition at line 63 of file AirlineClassList.cpp.

References _fare, _key, and _yield.


Friends And Related Function Documentation

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.


Member Data Documentation

Primary key (flight number and departure date).

Definition at line 164 of file AirlineClassList.hpp.

Referenced by describeKey(), getAirlineCodeList(), getClassCodeList(), getKey(), and serialize().

Pointer on the parent class (Inventory).

Definition at line 169 of file AirlineClassList.hpp.

Referenced by getParent().

Map holding the children (SegmentDate and LegDate objects).

Definition at line 174 of file AirlineClassList.hpp.

Referenced by getHolderMap().

Definition at line 179 of file AirlineClassList.hpp.

Referenced by getYield(), serialize(), setYield(), and toString().

Definition at line 184 of file AirlineClassList.hpp.

Referenced by getFare(), serialize(), setFare(), and toString().


The documentation for this class was generated from the following files: