AirRAC Logo  0.2.3
C++ Simulated Revenue Accounting (RAC) System Library
AIRRAC::YieldRuleStruct Struct Reference

Utility Structure for the parsing of Flight-Date structures. More...

#include <airrac/bom/YieldRuleStruct.hpp>

+ Inheritance diagram for AIRRAC::YieldRuleStruct:

List of all members.

Public Member Functions

 YieldRuleStruct ()
 ~YieldRuleStruct ()
AIRRAC::YieldID_T getYieldID () const
stdair::AirportCode_T getOrigin () const
stdair::AirportCode_T getDestination () const
stdair::TripType_T getTripType () const
stdair::Date_T getDateRangeStart () const
stdair::Date_T getDateRangeEnd () const
stdair::Duration_T getTimeRangeStart () const
stdair::Duration_T getTimeRangeEnd () const
stdair::CabinCode_T getCabinCode () const
const stdair::CityCode_T getPOS () const
stdair::ChannelLabel_T getChannel () const
stdair::YieldValue_T getYield () const
stdair::AirlineCode_T getAirlineCode () const
stdair::ClassCode_T getClassCode () const
const unsigned int getAirlineListSize () const
const unsigned int getClassCodeListSize () const
stdair::AirlineCodeList_T getAirlineList () const
stdair::ClassList_StringList_T getClassCodeList () const
stdair::Date_T calculateDate () const
stdair::Duration_T calculateTime () const
const std::string describe () const
void setYieldID (const AIRRAC::YieldID_T iYieldID)
void setOrigin (const stdair::AirportCode_T &iOrigin)
void setDestination (const stdair::AirportCode_T &iDestination)
void setTripType (const stdair::TripType_T &iTripType)
void setDateRangeStart (const stdair::Date_T &iDateRangeStart)
void setDateRangeEnd (const stdair::Date_T &iDateRangeEnd)
void setTimeRangeStart (const stdair::Duration_T &iTimeRangeStart)
void setTimeRangeEnd (const stdair::Duration_T &iTimeRangeEnd)
void setCabinCode (const stdair::CabinCode_T &iCabinCode)
void setPOS (const stdair::CityCode_T &iPOS)
void setChannel (const stdair::ChannelLabel_T &iChannel)
void setYield (const stdair::YieldValue_T &iYield)
void setAirlineCode (const stdair::AirlineCode_T &iAirlineCode)
void setClassCode (const stdair::ClassCode_T &iClassCode)
void clearAirlineCodeList ()
void clearClassCodeList ()
void addAirlineCode (const stdair::AirlineCode_T &iAirlineCode)
void addClassCode (const stdair::ClassCode_T &iClassCode)

Public Attributes

stdair::year_t _itYear
stdair::month_t _itMonth
stdair::day_t _itDay
stdair::hour_t _itHours
stdair::minute_t _itMinutes
stdair::second_t _itSeconds

Detailed Description

Utility Structure for the parsing of Flight-Date structures.

Definition at line 24 of file YieldRuleStruct.hpp.


Constructor & Destructor Documentation

Constructor.

Definition at line 17 of file YieldRuleStruct.cpp.

Destructor.

Definition at line 34 of file YieldRuleStruct.cpp.


Member Function Documentation

Get the yield ID.

Definition at line 40 of file YieldRuleStruct.hpp.

stdair::AirportCode_T AIRRAC::YieldRuleStruct::getOrigin ( ) const [inline]

Get the origin.

Definition at line 45 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storePOS::operator()().

stdair::AirportCode_T AIRRAC::YieldRuleStruct::getDestination ( ) const [inline]

Get the destination.

Definition at line 50 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storePOS::operator()().

stdair::TripType_T AIRRAC::YieldRuleStruct::getTripType ( ) const [inline]

Get the trip type.

Definition at line 55 of file YieldRuleStruct.hpp.

stdair::Date_T AIRRAC::YieldRuleStruct::getDateRangeStart ( ) const [inline]

Get the date range start.

Definition at line 60 of file YieldRuleStruct.hpp.

stdair::Date_T AIRRAC::YieldRuleStruct::getDateRangeEnd ( ) const [inline]

Get the date range end.

Definition at line 65 of file YieldRuleStruct.hpp.

stdair::Duration_T AIRRAC::YieldRuleStruct::getTimeRangeStart ( ) const [inline]

Get the time range start.

Definition at line 70 of file YieldRuleStruct.hpp.

stdair::Duration_T AIRRAC::YieldRuleStruct::getTimeRangeEnd ( ) const [inline]

Get the time range end.

Definition at line 75 of file YieldRuleStruct.hpp.

stdair::CabinCode_T AIRRAC::YieldRuleStruct::getCabinCode ( ) const [inline]

Get the cabin code.

Definition at line 80 of file YieldRuleStruct.hpp.

const stdair::CityCode_T AIRRAC::YieldRuleStruct::getPOS ( ) const [inline]

Get the point-of-sale.

Definition at line 85 of file YieldRuleStruct.hpp.

stdair::ChannelLabel_T AIRRAC::YieldRuleStruct::getChannel ( ) const [inline]

Get the channel.

Definition at line 90 of file YieldRuleStruct.hpp.

stdair::YieldValue_T AIRRAC::YieldRuleStruct::getYield ( ) const [inline]

Get the yield.

Definition at line 95 of file YieldRuleStruct.hpp.

stdair::AirlineCode_T AIRRAC::YieldRuleStruct::getAirlineCode ( ) const [inline]

Get the airline code.

Definition at line 100 of file YieldRuleStruct.hpp.

stdair::ClassCode_T AIRRAC::YieldRuleStruct::getClassCode ( ) const [inline]

Get the class code.

Definition at line 105 of file YieldRuleStruct.hpp.

const unsigned int AIRRAC::YieldRuleStruct::getAirlineListSize ( ) const [inline]

Get the size of the airline code list.

Definition at line 110 of file YieldRuleStruct.hpp.

const unsigned int AIRRAC::YieldRuleStruct::getClassCodeListSize ( ) const [inline]

Get the size of the class code list.

Definition at line 115 of file YieldRuleStruct.hpp.

stdair::AirlineCodeList_T AIRRAC::YieldRuleStruct::getAirlineList ( ) const [inline]

Get the airline code list.

Definition at line 120 of file YieldRuleStruct.hpp.

stdair::ClassList_StringList_T AIRRAC::YieldRuleStruct::getClassCodeList ( ) const [inline]

Get the class code list.

Definition at line 125 of file YieldRuleStruct.hpp.

stdair::Date_T AIRRAC::YieldRuleStruct::calculateDate ( ) const

Calculate the date from the staging details.

Definition at line 38 of file YieldRuleStruct.cpp.

References _itDay, _itMonth, and _itYear.

Referenced by AIRRAC::YieldParserHelper::storeDateRangeStart::operator()(), and AIRRAC::YieldParserHelper::storeDateRangeEnd::operator()().

stdair::Duration_T AIRRAC::YieldRuleStruct::calculateTime ( ) const

Calculate the time from the staging details.

Definition at line 44 of file YieldRuleStruct.cpp.

References _itHours, _itMinutes, and _itSeconds.

Referenced by AIRRAC::YieldParserHelper::storeStartRangeTime::operator()(), and AIRRAC::YieldParserHelper::storeEndRangeTime::operator()().

const std::string AIRRAC::YieldRuleStruct::describe ( ) const

Give a description of the structure (for display purposes).

Definition at line 52 of file YieldRuleStruct.cpp.

Referenced by AIRRAC::YieldParserHelper::doEndYield::operator()().

void AIRRAC::YieldRuleStruct::setYieldID ( const AIRRAC::YieldID_T  iYieldID) [inline]

Set the yield ID.

Definition at line 143 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().

void AIRRAC::YieldRuleStruct::setOrigin ( const stdair::AirportCode_T &  iOrigin) [inline]

Set the origin.

Definition at line 148 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeOrigin::operator()().

void AIRRAC::YieldRuleStruct::setDestination ( const stdair::AirportCode_T &  iDestination) [inline]

Set the destination.

Definition at line 153 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeDestination::operator()().

void AIRRAC::YieldRuleStruct::setTripType ( const stdair::TripType_T &  iTripType) [inline]

Set the trip type.

Definition at line 158 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeTripType::operator()().

void AIRRAC::YieldRuleStruct::setDateRangeStart ( const stdair::Date_T &  iDateRangeStart) [inline]

Set the date range start.

Definition at line 163 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeDateRangeStart::operator()().

void AIRRAC::YieldRuleStruct::setDateRangeEnd ( const stdair::Date_T &  iDateRangeEnd) [inline]

Set the date range end.

Definition at line 168 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeDateRangeEnd::operator()().

void AIRRAC::YieldRuleStruct::setTimeRangeStart ( const stdair::Duration_T &  iTimeRangeStart) [inline]

Set the time range start.

Definition at line 173 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeStartRangeTime::operator()().

void AIRRAC::YieldRuleStruct::setTimeRangeEnd ( const stdair::Duration_T &  iTimeRangeEnd) [inline]

Set the time range end.

Definition at line 178 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeEndRangeTime::operator()().

void AIRRAC::YieldRuleStruct::setCabinCode ( const stdair::CabinCode_T &  iCabinCode) [inline]

Set the cabin code.

Definition at line 183 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeCabinCode::operator()().

void AIRRAC::YieldRuleStruct::setPOS ( const stdair::CityCode_T &  iPOS) [inline]

Set the point-of-sale.

Definition at line 188 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storePOS::operator()().

void AIRRAC::YieldRuleStruct::setChannel ( const stdair::ChannelLabel_T &  iChannel) [inline]

Set the channel.

Definition at line 193 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeChannel::operator()().

void AIRRAC::YieldRuleStruct::setYield ( const stdair::YieldValue_T &  iYield) [inline]

Set the yield.

Definition at line 198 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeYield::operator()().

void AIRRAC::YieldRuleStruct::setAirlineCode ( const stdair::AirlineCode_T &  iAirlineCode) [inline]
void AIRRAC::YieldRuleStruct::setClassCode ( const stdair::ClassCode_T &  iClassCode) [inline]

Set the class code.

Definition at line 208 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().

Empty the airline code list.

Definition at line 213 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().

Empty the class code list.

Definition at line 218 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().

void AIRRAC::YieldRuleStruct::addAirlineCode ( const stdair::AirlineCode_T &  iAirlineCode) [inline]

Add an airline code to the list.

Definition at line 223 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeAirlineCode::operator()().

void AIRRAC::YieldRuleStruct::addClassCode ( const stdair::ClassCode_T &  iClassCode) [inline]

Add a class code to the list.

Definition at line 228 of file YieldRuleStruct.hpp.

Referenced by AIRRAC::YieldParserHelper::storeClass::operator()().


Member Data Documentation


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