StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
stdair::YieldRange Class Reference

#include <stdair/basic/YieldRange.hpp>

+ Inheritance diagram for stdair::YieldRange:

Public Member Functions

 YieldRange ()
 
 YieldRange (const YieldRange &)
 
 YieldRange (const Yield_T iUpperYield)
 
 YieldRange (const Yield_T iUpperYield, const Yield_T iAverageYield)
 
 YieldRange (const Yield_T iUpperYield, const Yield_T iAverageYield, const Yield_T iLowerYield)
 
virtual ~YieldRange ()
 
Yield_T getUpperYield () const
 
Yield_T getAverageYield () const
 
Yield_T getLowerYield () const
 
void setUpperYield (const Yield_T iUpperYield)
 
void setAverageYield (const Yield_T iAverageYield)
 
void setLowerYield (const Yield_T iLowerYield)
 
void toStream (std::ostream &) const
 
void fromStream (std::istream &)
 
const std::string describe () const
 

Detailed Description

Class representing a range of yields.
Typically, bookings are priced according to rules (e.g., fare rules), leading to slight variations of revenues for a given product. The "yield range" captures the extent of revenues earned for a given product.
When no average and lower yields are defined, they are assumed to be equal to the upper yield.
Note that the lower yield is generally not defined, as it corresponds to the upper yield of the lower yield range.

Definition at line 23 of file YieldRange.hpp.

Constructor & Destructor Documentation

stdair::YieldRange::YieldRange ( )

Constructors.

Definition at line 13 of file YieldRange.cpp.

stdair::YieldRange::YieldRange ( const YieldRange iYieldRange)

Definition at line 20 of file YieldRange.cpp.

stdair::YieldRange::YieldRange ( const Yield_T  iUpperYield)

Definition at line 27 of file YieldRange.cpp.

stdair::YieldRange::YieldRange ( const Yield_T  iUpperYield,
const Yield_T  iAverageYield 
)

Definition at line 33 of file YieldRange.cpp.

stdair::YieldRange::YieldRange ( const Yield_T  iUpperYield,
const Yield_T  iAverageYield,
const Yield_T  iLowerYield 
)

Definition at line 40 of file YieldRange.cpp.

stdair::YieldRange::~YieldRange ( )
virtual

Constructors.

Definition at line 48 of file YieldRange.cpp.

Member Function Documentation

Yield_T stdair::YieldRange::getUpperYield ( ) const
inline

Getter for the upper yield of the range.

Definition at line 39 of file YieldRange.hpp.

Yield_T stdair::YieldRange::getAverageYield ( ) const
inline

Getter for the average yield of the range.

Definition at line 43 of file YieldRange.hpp.

Yield_T stdair::YieldRange::getLowerYield ( ) const
inline

Getter for the lower yield of the range.

Definition at line 47 of file YieldRange.hpp.

void stdair::YieldRange::setUpperYield ( const Yield_T  iUpperYield)
inline

Setter for the upper yield of the range.

Definition at line 53 of file YieldRange.hpp.

void stdair::YieldRange::setAverageYield ( const Yield_T  iAverageYield)
inline

Setter for the average yield of the range.

Definition at line 57 of file YieldRange.hpp.

void stdair::YieldRange::setLowerYield ( const Yield_T  iLowerYield)
inline

Setter for the lower yield of the range.

Definition at line 61 of file YieldRange.hpp.

void stdair::YieldRange::toStream ( std::ostream &  ioOut) const

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Definition at line 52 of file YieldRange.cpp.

void stdair::YieldRange::fromStream ( std::istream &  ioIn)
virtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Reimplemented from stdair::StructAbstract.

Definition at line 58 of file YieldRange.cpp.

const std::string stdair::YieldRange::describe ( ) const
virtual

Display of the structure.

Implements stdair::StructAbstract.

Definition at line 62 of file YieldRange.cpp.


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