StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
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 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 28 of file YieldFeatures.hpp.


Constructor & Destructor Documentation

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

Main constructor.

Definition at line 29 of file YieldFeatures.cpp.

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

Destructor.

Definition at line 34 of file YieldFeatures.cpp.


Member Function Documentation

void stdair::YieldFeatures::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 37 of file YieldFeatures.hpp.

References toString().

void stdair::YieldFeatures::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 46 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 38 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 57 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 66 of file YieldFeatures.hpp.

References _key.

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

Get a reference on the parent object instance.

Definition at line 73 of file YieldFeatures.hpp.

References _parent.

Get a reference on the children holder.

Definition at line 80 of file YieldFeatures.hpp.

References _holderMap.

Get the cabin code.

Definition at line 87 of file YieldFeatures.hpp.

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

Get the trip type.

Definition at line 94 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 46 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 FacBomManager [friend]

Definition at line 21 of file YieldFeatures.hpp.


Member Data Documentation

Primary key (flight number and departure date).

Definition at line 137 of file YieldFeatures.hpp.

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

Pointer on the parent class.

Definition at line 142 of file YieldFeatures.hpp.

Referenced by getParent().

Map holding the children.

Definition at line 147 of file YieldFeatures.hpp.

Referenced by getHolderMap().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines