AirRAC Logo  1.00.10
C++ Simulated Revenue Accounting (RAC) System Library
Loading...
Searching...
No Matches
AIRRAC::YieldRuleStruct Struct Reference

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

#include <airrac/bom/YieldRuleStruct.hpp>

+ Inheritance diagram for AIRRAC::YieldRuleStruct:

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

◆ YieldRuleStruct()

AIRRAC::YieldRuleStruct::YieldRuleStruct ( )

Constructor.

Definition at line 17 of file YieldRuleStruct.cpp.

◆ ~YieldRuleStruct()

AIRRAC::YieldRuleStruct::~YieldRuleStruct ( )

Destructor.

Definition at line 34 of file YieldRuleStruct.cpp.

Member Function Documentation

◆ getYieldID()

AIRRAC::YieldID_T AIRRAC::YieldRuleStruct::getYieldID ( ) const
inline

Get the yield ID.

Definition at line 40 of file YieldRuleStruct.hpp.

◆ getOrigin()

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

Get the origin.

Definition at line 45 of file YieldRuleStruct.hpp.

◆ getDestination()

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

Get the destination.

Definition at line 50 of file YieldRuleStruct.hpp.

◆ getTripType()

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

Get the trip type.

Definition at line 55 of file YieldRuleStruct.hpp.

◆ getDateRangeStart()

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

Get the date range start.

Definition at line 60 of file YieldRuleStruct.hpp.

◆ getDateRangeEnd()

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

Get the date range end.

Definition at line 65 of file YieldRuleStruct.hpp.

◆ getTimeRangeStart()

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

Get the time range start.

Definition at line 70 of file YieldRuleStruct.hpp.

◆ getTimeRangeEnd()

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

Get the time range end.

Definition at line 75 of file YieldRuleStruct.hpp.

◆ getCabinCode()

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

Get the cabin code.

Definition at line 80 of file YieldRuleStruct.hpp.

◆ getPOS()

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

Get the point-of-sale.

Definition at line 85 of file YieldRuleStruct.hpp.

◆ getChannel()

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

Get the channel.

Definition at line 90 of file YieldRuleStruct.hpp.

◆ getYield()

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

Get the yield.

Definition at line 95 of file YieldRuleStruct.hpp.

◆ getAirlineCode()

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

Get the airline code.

Definition at line 100 of file YieldRuleStruct.hpp.

◆ getClassCode()

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

Get the class code.

Definition at line 105 of file YieldRuleStruct.hpp.

◆ getAirlineListSize()

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

Get the size of the airline code list.

Definition at line 110 of file YieldRuleStruct.hpp.

◆ getClassCodeListSize()

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

Get the size of the class code list.

Definition at line 115 of file YieldRuleStruct.hpp.

◆ getAirlineList()

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

Get the airline code list.

Definition at line 120 of file YieldRuleStruct.hpp.

◆ getClassCodeList()

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

Get the class code list.

Definition at line 125 of file YieldRuleStruct.hpp.

◆ calculateDate()

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.

◆ calculateTime()

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.

◆ describe()

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

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

Definition at line 52 of file YieldRuleStruct.cpp.

◆ setYieldID()

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

Set the yield ID.

Definition at line 143 of file YieldRuleStruct.hpp.

◆ setOrigin()

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

Set the origin.

Definition at line 148 of file YieldRuleStruct.hpp.

◆ setDestination()

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

Set the destination.

Definition at line 153 of file YieldRuleStruct.hpp.

◆ setTripType()

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

Set the trip type.

Definition at line 158 of file YieldRuleStruct.hpp.

◆ setDateRangeStart()

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

Set the date range start.

Definition at line 163 of file YieldRuleStruct.hpp.

◆ setDateRangeEnd()

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

Set the date range end.

Definition at line 168 of file YieldRuleStruct.hpp.

◆ setTimeRangeStart()

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

Set the time range start.

Definition at line 173 of file YieldRuleStruct.hpp.

◆ setTimeRangeEnd()

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

Set the time range end.

Definition at line 178 of file YieldRuleStruct.hpp.

◆ setCabinCode()

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

Set the cabin code.

Definition at line 183 of file YieldRuleStruct.hpp.

◆ setPOS()

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

Set the point-of-sale.

Definition at line 188 of file YieldRuleStruct.hpp.

◆ setChannel()

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

Set the channel.

Definition at line 193 of file YieldRuleStruct.hpp.

◆ setYield()

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

Set the yield.

Definition at line 198 of file YieldRuleStruct.hpp.

◆ setAirlineCode()

void AIRRAC::YieldRuleStruct::setAirlineCode ( const stdair::AirlineCode_T & iAirlineCode)
inline

Set the airline code.

Definition at line 203 of file YieldRuleStruct.hpp.

◆ setClassCode()

void AIRRAC::YieldRuleStruct::setClassCode ( const stdair::ClassCode_T & iClassCode)
inline

Set the class code.

Definition at line 208 of file YieldRuleStruct.hpp.

◆ clearAirlineCodeList()

void AIRRAC::YieldRuleStruct::clearAirlineCodeList ( )
inline

Empty the airline code list.

Definition at line 213 of file YieldRuleStruct.hpp.

◆ clearClassCodeList()

void AIRRAC::YieldRuleStruct::clearClassCodeList ( )
inline

Empty the class code list.

Definition at line 218 of file YieldRuleStruct.hpp.

◆ addAirlineCode()

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.

◆ addClassCode()

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.

Member Data Documentation

◆ _itYear

stdair::year_t AIRRAC::YieldRuleStruct::_itYear

Staging Date.

Definition at line 235 of file YieldRuleStruct.hpp.

Referenced by calculateDate().

◆ _itMonth

stdair::month_t AIRRAC::YieldRuleStruct::_itMonth

Definition at line 236 of file YieldRuleStruct.hpp.

Referenced by calculateDate().

◆ _itDay

stdair::day_t AIRRAC::YieldRuleStruct::_itDay

Definition at line 237 of file YieldRuleStruct.hpp.

Referenced by calculateDate().

◆ _itHours

stdair::hour_t AIRRAC::YieldRuleStruct::_itHours

Staging Time.

Definition at line 241 of file YieldRuleStruct.hpp.

Referenced by calculateTime().

◆ _itMinutes

stdair::minute_t AIRRAC::YieldRuleStruct::_itMinutes

Definition at line 242 of file YieldRuleStruct.hpp.

Referenced by calculateTime().

◆ _itSeconds

stdair::second_t AIRRAC::YieldRuleStruct::_itSeconds

Definition at line 243 of file YieldRuleStruct.hpp.

Referenced by calculateTime().


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