SimFQT Logo  1.00.4
C++ Simulated Fare Quote System Library
SIMFQT::FareRuleStruct Struct Reference

#include <simfqt/bom/FareRuleStruct.hpp>

+ Inheritance diagram for SIMFQT::FareRuleStruct:

Public Member Functions

 FareRuleStruct ()
 
SIMFQT::FareQuoteID_T getFareID () 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::DayDuration_T getAdvancePurchase () const
 
stdair::SaturdayStay_T getSaturdayStay () const
 
stdair::ChangeFees_T getChangeFees () const
 
stdair::NonRefundable_T getNonRefundable () const
 
stdair::DayDuration_T getMinimumStay () const
 
stdair::PriceValue_T getFare () 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 setFareID (const SIMFQT::FareQuoteID_T &iFareQuoteID)
 
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 setAdvancePurchase (const stdair::DayDuration_T &iAdvancePurchase)
 
void setSaturdayStay (const stdair::SaturdayStay_T &iSaturdayStay)
 
void setChangeFees (const stdair::ChangeFees_T &iChangeFees)
 
void setNonRefundable (const stdair::NonRefundable_T &iNonRefundable)
 
void setMinimumStay (const stdair::DayDuration_T &iMinimumStay)
 
void setFare (const stdair::PriceValue_T &iFare)
 
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 fare-rule structures.

Definition at line 21 of file FareRuleStruct.hpp.

Constructor & Destructor Documentation

◆ FareRuleStruct()

SIMFQT::FareRuleStruct::FareRuleStruct ( )

Default constructor.

Definition at line 17 of file FareRuleStruct.cpp.

Member Function Documentation

◆ getFareID()

SIMFQT::FareQuoteID_T SIMFQT::FareRuleStruct::getFareID ( ) const
inline

Get the fare ID.

Definition at line 30 of file FareRuleStruct.hpp.

◆ getOrigin()

stdair::AirportCode_T SIMFQT::FareRuleStruct::getOrigin ( ) const
inline

Get the origin.

Definition at line 35 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storePOS::operator()().

◆ getDestination()

stdair::AirportCode_T SIMFQT::FareRuleStruct::getDestination ( ) const
inline

Get the destination.

Definition at line 40 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storePOS::operator()().

◆ getTripType()

stdair::TripType_T SIMFQT::FareRuleStruct::getTripType ( ) const
inline

Get the trip type.

Definition at line 45 of file FareRuleStruct.hpp.

◆ getDateRangeStart()

stdair::Date_T SIMFQT::FareRuleStruct::getDateRangeStart ( ) const
inline

Get the date range start.

Definition at line 50 of file FareRuleStruct.hpp.

◆ getDateRangeEnd()

stdair::Date_T SIMFQT::FareRuleStruct::getDateRangeEnd ( ) const
inline

Get the date range end.

Definition at line 55 of file FareRuleStruct.hpp.

◆ getTimeRangeStart()

stdair::Duration_T SIMFQT::FareRuleStruct::getTimeRangeStart ( ) const
inline

Get the time range start.

Definition at line 60 of file FareRuleStruct.hpp.

◆ getTimeRangeEnd()

stdair::Duration_T SIMFQT::FareRuleStruct::getTimeRangeEnd ( ) const
inline

Get the time range end.

Definition at line 65 of file FareRuleStruct.hpp.

◆ getCabinCode()

stdair::CabinCode_T SIMFQT::FareRuleStruct::getCabinCode ( ) const
inline

Get the cabin code.

Definition at line 70 of file FareRuleStruct.hpp.

◆ getPOS()

const stdair::CityCode_T SIMFQT::FareRuleStruct::getPOS ( ) const
inline

Get the point-of-sale.

Definition at line 75 of file FareRuleStruct.hpp.

◆ getChannel()

stdair::ChannelLabel_T SIMFQT::FareRuleStruct::getChannel ( ) const
inline

Get the channel.

Definition at line 80 of file FareRuleStruct.hpp.

◆ getAdvancePurchase()

stdair::DayDuration_T SIMFQT::FareRuleStruct::getAdvancePurchase ( ) const
inline

Get the advance purchase.

Definition at line 85 of file FareRuleStruct.hpp.

◆ getSaturdayStay()

stdair::SaturdayStay_T SIMFQT::FareRuleStruct::getSaturdayStay ( ) const
inline

Get the saturday stay option.

Definition at line 90 of file FareRuleStruct.hpp.

◆ getChangeFees()

stdair::ChangeFees_T SIMFQT::FareRuleStruct::getChangeFees ( ) const
inline

Get the change fees.

Definition at line 95 of file FareRuleStruct.hpp.

◆ getNonRefundable()

stdair::NonRefundable_T SIMFQT::FareRuleStruct::getNonRefundable ( ) const
inline

Get the refundable option.

Definition at line 100 of file FareRuleStruct.hpp.

◆ getMinimumStay()

stdair::DayDuration_T SIMFQT::FareRuleStruct::getMinimumStay ( ) const
inline

Get the minimum stay.

Definition at line 105 of file FareRuleStruct.hpp.

◆ getFare()

stdair::PriceValue_T SIMFQT::FareRuleStruct::getFare ( ) const
inline

Get the fare.

Definition at line 110 of file FareRuleStruct.hpp.

◆ getAirlineCode()

stdair::AirlineCode_T SIMFQT::FareRuleStruct::getAirlineCode ( ) const
inline

Get the airline code.

Definition at line 115 of file FareRuleStruct.hpp.

◆ getClassCode()

stdair::ClassCode_T SIMFQT::FareRuleStruct::getClassCode ( ) const
inline

Get the class code.

Definition at line 120 of file FareRuleStruct.hpp.

◆ getAirlineListSize()

const unsigned int SIMFQT::FareRuleStruct::getAirlineListSize ( ) const
inline

Get the size of the airline code list.

Definition at line 125 of file FareRuleStruct.hpp.

◆ getClassCodeListSize()

const unsigned int SIMFQT::FareRuleStruct::getClassCodeListSize ( ) const
inline

Get the size of the class code list.

Definition at line 130 of file FareRuleStruct.hpp.

◆ getAirlineList()

stdair::AirlineCodeList_T SIMFQT::FareRuleStruct::getAirlineList ( ) const
inline

Get the airline code list.

Definition at line 135 of file FareRuleStruct.hpp.

◆ getClassCodeList()

stdair::ClassList_StringList_T SIMFQT::FareRuleStruct::getClassCodeList ( ) const
inline

Get the class code list.

Definition at line 140 of file FareRuleStruct.hpp.

◆ calculateDate()

stdair::Date_T SIMFQT::FareRuleStruct::calculateDate ( ) const

Calculate the date from the staging details.

Definition at line 39 of file FareRuleStruct.cpp.

References _itDay, _itMonth, and _itYear.

Referenced by SIMFQT::FareParserHelper::storeDateRangeStart::operator()(), and SIMFQT::FareParserHelper::storeDateRangeEnd::operator()().

◆ calculateTime()

stdair::Duration_T SIMFQT::FareRuleStruct::calculateTime ( ) const

Calculate the time from the staging details.

Definition at line 45 of file FareRuleStruct.cpp.

References _itHours, _itMinutes, and _itSeconds.

Referenced by SIMFQT::FareParserHelper::storeStartRangeTime::operator()(), and SIMFQT::FareParserHelper::storeEndRangeTime::operator()().

◆ describe()

const std::string SIMFQT::FareRuleStruct::describe ( ) const

Display of the structure.

Definition at line 54 of file FareRuleStruct.cpp.

Referenced by SIMFQT::FareParserHelper::doEndFare::operator()().

◆ setFareID()

void SIMFQT::FareRuleStruct::setFareID ( const SIMFQT::FareQuoteID_T iFareQuoteID)
inline

Set the fare ID.

Definition at line 158 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().

◆ setOrigin()

void SIMFQT::FareRuleStruct::setOrigin ( const stdair::AirportCode_T &  iOrigin)
inline

Set the origin.

Definition at line 163 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeOrigin::operator()().

◆ setDestination()

void SIMFQT::FareRuleStruct::setDestination ( const stdair::AirportCode_T &  iDestination)
inline

Set the destination.

Definition at line 168 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeDestination::operator()().

◆ setTripType()

void SIMFQT::FareRuleStruct::setTripType ( const stdair::TripType_T &  iTripType)
inline

Set the trip type.

Definition at line 173 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeTripType::operator()().

◆ setDateRangeStart()

void SIMFQT::FareRuleStruct::setDateRangeStart ( const stdair::Date_T &  iDateRangeStart)
inline

Set the date range start.

Definition at line 178 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeDateRangeStart::operator()().

◆ setDateRangeEnd()

void SIMFQT::FareRuleStruct::setDateRangeEnd ( const stdair::Date_T &  iDateRangeEnd)
inline

Set the date range end.

Definition at line 183 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeDateRangeEnd::operator()().

◆ setTimeRangeStart()

void SIMFQT::FareRuleStruct::setTimeRangeStart ( const stdair::Duration_T &  iTimeRangeStart)
inline

Set the time range start.

Definition at line 188 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeStartRangeTime::operator()().

◆ setTimeRangeEnd()

void SIMFQT::FareRuleStruct::setTimeRangeEnd ( const stdair::Duration_T &  iTimeRangeEnd)
inline

Set the time range end.

Definition at line 193 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeEndRangeTime::operator()().

◆ setCabinCode()

void SIMFQT::FareRuleStruct::setCabinCode ( const stdair::CabinCode_T &  iCabinCode)
inline

Set the cabin code.

Definition at line 198 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeCabinCode::operator()().

◆ setPOS()

void SIMFQT::FareRuleStruct::setPOS ( const stdair::CityCode_T &  iPOS)
inline

Set the point-of-sale.

Definition at line 203 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storePOS::operator()().

◆ setChannel()

void SIMFQT::FareRuleStruct::setChannel ( const stdair::ChannelLabel_T &  iChannel)
inline

Set the channel.

Definition at line 208 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeChannel::operator()().

◆ setAdvancePurchase()

void SIMFQT::FareRuleStruct::setAdvancePurchase ( const stdair::DayDuration_T &  iAdvancePurchase)
inline

Set the advance purchase.

Definition at line 213 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeAdvancePurchase::operator()().

◆ setSaturdayStay()

void SIMFQT::FareRuleStruct::setSaturdayStay ( const stdair::SaturdayStay_T &  iSaturdayStay)
inline

Set the saturday stay option.

Definition at line 218 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeSaturdayStay::operator()().

◆ setChangeFees()

void SIMFQT::FareRuleStruct::setChangeFees ( const stdair::ChangeFees_T &  iChangeFees)
inline

Set the change fees.

Definition at line 223 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeChangeFees::operator()().

◆ setNonRefundable()

void SIMFQT::FareRuleStruct::setNonRefundable ( const stdair::NonRefundable_T &  iNonRefundable)
inline

Set the refundable option.

Definition at line 228 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeNonRefundable::operator()().

◆ setMinimumStay()

void SIMFQT::FareRuleStruct::setMinimumStay ( const stdair::DayDuration_T &  iMinimumStay)
inline

Set the minimum stay.

Definition at line 233 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeMinimumStay::operator()().

◆ setFare()

void SIMFQT::FareRuleStruct::setFare ( const stdair::PriceValue_T &  iFare)
inline

Set the fare.

Definition at line 238 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeFare::operator()().

◆ setAirlineCode()

void SIMFQT::FareRuleStruct::setAirlineCode ( const stdair::AirlineCode_T &  iAirlineCode)
inline

Set the airline code.

Definition at line 243 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().

◆ setClassCode()

void SIMFQT::FareRuleStruct::setClassCode ( const stdair::ClassCode_T &  iClassCode)
inline

Set the class code.

Definition at line 248 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().

◆ clearAirlineCodeList()

void SIMFQT::FareRuleStruct::clearAirlineCodeList ( )
inline

Empty the airline code list.

Definition at line 253 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().

◆ clearClassCodeList()

void SIMFQT::FareRuleStruct::clearClassCodeList ( )
inline

Empty the class code list.

Definition at line 258 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().

◆ addAirlineCode()

void SIMFQT::FareRuleStruct::addAirlineCode ( const stdair::AirlineCode_T &  iAirlineCode)
inline

Add an airline code to the list.

Definition at line 263 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeAirlineCode::operator()().

◆ addClassCode()

void SIMFQT::FareRuleStruct::addClassCode ( const stdair::ClassCode_T &  iClassCode)
inline

Add a class code to the list.

Definition at line 268 of file FareRuleStruct.hpp.

Referenced by SIMFQT::FareParserHelper::storeClass::operator()().

Member Data Documentation

◆ _itYear

stdair::year_t SIMFQT::FareRuleStruct::_itYear

◆ _itMonth

stdair::month_t SIMFQT::FareRuleStruct::_itMonth

◆ _itDay

stdair::day_t SIMFQT::FareRuleStruct::_itDay

◆ _itHours

stdair::hour_t SIMFQT::FareRuleStruct::_itHours

◆ _itMinutes

stdair::minute_t SIMFQT::FareRuleStruct::_itMinutes

◆ _itSeconds


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