StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
stdair::OnDDate Class Reference

Class representing the actual attributes for an airline flight-date. More...

#include <stdair/bom/OnDDate.hpp>

+ Inheritance diagram for stdair::OnDDate:

List of all members.

Public Types

typedef OnDDateKey Key_T

Public Member Functions

const Key_TgetKey () const
BomAbstract *const getParent () const
const AirlineCode_TgetAirlineCode () const
const stdair::Date_T getDate () const
const stdair::AirportCode_T getOrigin () const
const stdair::AirportCode_T getDestination () const
const HolderMap_TgetHolderMap () const
const StringDemandStructMap_TgetDemandInfoMap () const
const CabinForecastMap_TgetTotalForecastMap () const
const WTPDemandPair_TgetTotalForecast (const CabinCode_T &iCC) const
const CabinClassPairList_TgetCabinClassPairList (const std::string &iStr) const
const short getNbOfSegments () const
void setDemandInformation (const CabinClassPairList_T &, const YieldDemandPair_T &)
void setTotalForecast (const CabinCode_T &, const WTPDemandPair_T &)
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

 OnDDate (const Key_T &)
virtual ~OnDDate ()

Protected Attributes

Key_T _key
BomAbstract_parent
HolderMap_T _holderMap
StringDemandStructMap_T _classPathDemandMap
StringCabinClassPairListMap_T _stringCabinClassPairListMap
CabinForecastMap_T _cabinForecastMap

Friends

class FacBom
class FacBomManager
class boost::serialization::access

Detailed Description

Class representing the actual attributes for an airline flight-date.

Definition at line 33 of file OnDDate.hpp.


Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 43 of file OnDDate.hpp.


Constructor & Destructor Documentation

stdair::OnDDate::OnDDate ( const Key_T iKey) [protected]

Main constructor.

Definition at line 29 of file OnDDate.cpp.

stdair::OnDDate::~OnDDate ( ) [protected, virtual]

Destructor.

Definition at line 34 of file OnDDate.cpp.


Member Function Documentation

const Key_T& stdair::OnDDate::getKey ( ) const [inline]

Get the O&D date key.

Definition at line 49 of file OnDDate.hpp.

References _key.

BomAbstract* const stdair::OnDDate::getParent ( ) const [inline]

Get the parent object.

Definition at line 54 of file OnDDate.hpp.

References _parent.

Referenced by getAirlineCode().

Get the airline code (key of the parent object).

Note:
That method assumes that the parent object derives from the Inventory class, as it needs to have access to the getAirlineCode() method.

Definition at line 45 of file OnDDate.cpp.

References stdair::Inventory::getAirlineCode(), and getParent().

const stdair::Date_T stdair::OnDDate::getDate ( ) const [inline]

Get the boarding date.

Definition at line 69 of file OnDDate.hpp.

References _key, and stdair::OnDDateKey::getDate().

Get the origin.

Definition at line 74 of file OnDDate.hpp.

References _key, and stdair::OnDDateKey::getOrigin().

Get the destination.

Definition at line 79 of file OnDDate.hpp.

References _key, and stdair::OnDDateKey::getDestination().

const HolderMap_T& stdair::OnDDate::getHolderMap ( ) const [inline]

Get the map of children holders.

Definition at line 86 of file OnDDate.hpp.

References _holderMap.

Get the map of demand information.

Definition at line 93 of file OnDDate.hpp.

References _classPathDemandMap.

Get the map of total forecast.

Definition at line 100 of file OnDDate.hpp.

References _cabinForecastMap.

const WTPDemandPair_T& stdair::OnDDate::getTotalForecast ( const CabinCode_T iCC) const [inline]

Get the total forecast for a given cabin.

Definition at line 107 of file OnDDate.hpp.

References _cabinForecastMap.

const CabinClassPairList_T& stdair::OnDDate::getCabinClassPairList ( const std::string &  iStr) const [inline]

Get the cabin-class pair out of a string.

Definition at line 115 of file OnDDate.hpp.

References _stringCabinClassPairListMap.

const short stdair::OnDDate::getNbOfSegments ( ) const [inline]

Get the number of segments of the O&D.

Definition at line 123 of file OnDDate.hpp.

References _key, and stdair::OnDDateKey::getNbOfSegments().

void stdair::OnDDate::setDemandInformation ( const CabinClassPairList_T iCabinClassPairList,
const YieldDemandPair_T iYieldDemandPair 
)

Set demand information.

Definition at line 54 of file OnDDate.cpp.

References _classPathDemandMap, and _stringCabinClassPairListMap.

void stdair::OnDDate::setTotalForecast ( const CabinCode_T iCabinCode,
const WTPDemandPair_T iWTPDemandPair 
)

Set forecast information per cabin.

Definition at line 77 of file OnDDate.cpp.

References _cabinForecastMap.

void stdair::OnDDate::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 146 of file OnDDate.hpp.

References toString().

void stdair::OnDDate::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 155 of file OnDDate.hpp.

std::string stdair::OnDDate::toString ( ) const [virtual]

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 38 of file OnDDate.cpp.

References describeKey().

Referenced by toStream().

const std::string stdair::OnDDate::describeKey ( ) const [inline]

Get a string describing the key.

Definition at line 166 of file OnDDate.hpp.

References _key, and stdair::OnDDateKey::toString().

Referenced by toString().

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

Serialisation.


Friends And Related Function Documentation

friend class FacBom [friend]

Definition at line 34 of file OnDDate.hpp.

friend class FacBomManager [friend]

Definition at line 35 of file OnDDate.hpp.

friend class boost::serialization::access [friend]

Definition at line 36 of file OnDDate.hpp.


Member Data Documentation

Primary key (list of OnD string keys).

Definition at line 216 of file OnDDate.hpp.

Referenced by describeKey(), getDate(), getDestination(), getKey(), getNbOfSegments(), and getOrigin().

Pointer on the parent class (Inventory).

Definition at line 221 of file OnDDate.hpp.

Referenced by getParent().

Map holding the children (SegmentDate and LegDate objects).

Definition at line 226 of file OnDDate.hpp.

Referenced by getHolderMap().

O&D demand information.

Definition at line 231 of file OnDDate.hpp.

Referenced by getDemandInfoMap(), and setDemandInformation().

O&D cabin and associated class map.

Definition at line 236 of file OnDDate.hpp.

Referenced by getCabinClassPairList(), and setDemandInformation().

O&D demand total forecast.

Definition at line 241 of file OnDDate.hpp.

Referenced by getTotalForecast(), getTotalForecastMap(), and setTotalForecast().


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