StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stdair::YieldFeatures Class Reference

Class representing the actual attributes for a yield date-period. More...

#include <stdair/bom/YieldFeatures.hpp>

+ Inheritance diagram for stdair::YieldFeatures:

List of all members.

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_TgetKey () const
BomAbstract *const getParent () const
const HolderMap_TgetHolderMap () const
const CabinCode_TgetCabinCode () const
const TripType_TgetTripType () 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

Detailed Description

Class representing the actual attributes for a yield date-period.

Definition at line 19 of file YieldFeatures.hpp.


Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 29 of file YieldFeatures.hpp.


Constructor & Destructor Documentation

stdair::YieldFeatures::YieldFeatures ( const Key_T iKey)
protected

Main constructor.

Definition at line 28 of file YieldFeatures.cpp.

stdair::YieldFeatures::~YieldFeatures ( )
protectedvirtual

Destructor.

Definition at line 33 of file YieldFeatures.cpp.


Member Function Documentation

void stdair::YieldFeatures::toStream ( std::ostream &  ioOut) const
inlinevirtual

Dump a Business Object into an output stream.

Parameters:
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 38 of file YieldFeatures.hpp.

References toString().

void stdair::YieldFeatures::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters:
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 47 of file YieldFeatures.hpp.

std::string stdair::YieldFeatures::toString ( ) const
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().

const std::string stdair::YieldFeatures::describeKey ( ) const
inline

Get a string describing the key.

Definition at line 58 of file YieldFeatures.hpp.

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

Referenced by toString().

const Key_T& stdair::YieldFeatures::getKey ( ) const
inline

Get the primary key (trip type, cabin code).

Definition at line 67 of file YieldFeatures.hpp.

References _key.

BomAbstract* const stdair::YieldFeatures::getParent ( ) const
inline

Get a reference on the parent object instance.

Definition at line 74 of file YieldFeatures.hpp.

References _parent.

const HolderMap_T& stdair::YieldFeatures::getHolderMap ( ) const
inline

Get a reference on the children holder.

Definition at line 81 of file YieldFeatures.hpp.

References _holderMap.

const CabinCode_T& stdair::YieldFeatures::getCabinCode ( ) const
inline

Get the cabin code.

Definition at line 88 of file YieldFeatures.hpp.

References _key, and stdair::YieldFeaturesKey::getCabinCode().

const TripType_T& stdair::YieldFeatures::getTripType ( ) const
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.


Friends And Related Function Documentation

friend class FacBom
friend

Definition at line 20 of file YieldFeatures.hpp.

friend class FacCloneBom
friend

Definition at line 21 of file YieldFeatures.hpp.

friend class FacBomManager
friend

Definition at line 22 of file YieldFeatures.hpp.


Member Data Documentation

Key_T stdair::YieldFeatures::_key
protected

Primary key (flight number and departure date).

Definition at line 138 of file YieldFeatures.hpp.

Referenced by describeKey(), getCabinCode(), getKey(), and getTripType().

BomAbstract* stdair::YieldFeatures::_parent
protected

Pointer on the parent class.

Definition at line 143 of file YieldFeatures.hpp.

Referenced by getParent().

HolderMap_T stdair::YieldFeatures::_holderMap
protected

Map holding the children.

Definition at line 148 of file YieldFeatures.hpp.

Referenced by getHolderMap().


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