SimFQT Logo  1.00.0
C++ Simulated Fare Quote System Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
SIMFQT::FareRuleStruct Struct Reference

#include <simfqt/bom/FareRuleStruct.hpp>

+ Inheritance diagram for SIMFQT::FareRuleStruct:

List of all members.

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

SIMFQT::FareRuleStruct::FareRuleStruct ( )

Default constructor.

Definition at line 17 of file FareRuleStruct.cpp.


Member Function Documentation

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

Get the fare ID.

Definition at line 30 of file FareRuleStruct.hpp.

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()().

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()().

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

Get the trip type.

Definition at line 45 of file FareRuleStruct.hpp.

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

Get the date range start.

Definition at line 50 of file FareRuleStruct.hpp.

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

Get the date range end.

Definition at line 55 of file FareRuleStruct.hpp.

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

Get the time range start.

Definition at line 60 of file FareRuleStruct.hpp.

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

Get the time range end.

Definition at line 65 of file FareRuleStruct.hpp.

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

Get the cabin code.

Definition at line 70 of file FareRuleStruct.hpp.

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

Get the point-of-sale.

Definition at line 75 of file FareRuleStruct.hpp.

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

Get the channel.

Definition at line 80 of file FareRuleStruct.hpp.

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

Get the advance purchase.

Definition at line 85 of file FareRuleStruct.hpp.

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

Get the saturday stay option.

Definition at line 90 of file FareRuleStruct.hpp.

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

Get the change fees.

Definition at line 95 of file FareRuleStruct.hpp.

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

Get the refundable option.

Definition at line 100 of file FareRuleStruct.hpp.

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

Get the minimum stay.

Definition at line 105 of file FareRuleStruct.hpp.

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

Get the fare.

Definition at line 110 of file FareRuleStruct.hpp.

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

Get the airline code.

Definition at line 115 of file FareRuleStruct.hpp.

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

Get the class code.

Definition at line 120 of file FareRuleStruct.hpp.

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

Get the size of the airline code list.

Definition at line 125 of file FareRuleStruct.hpp.

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

Get the size of the class code list.

Definition at line 130 of file FareRuleStruct.hpp.

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

Get the airline code list.

Definition at line 135 of file FareRuleStruct.hpp.

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

Get the class code list.

Definition at line 140 of file FareRuleStruct.hpp.

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

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()().

void SIMFQT::FareRuleStruct::clearAirlineCodeList ( )
inline

Empty the airline code list.

Definition at line 253 of file FareRuleStruct.hpp.

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

void SIMFQT::FareRuleStruct::clearClassCodeList ( )
inline

Empty the class code list.

Definition at line 258 of file FareRuleStruct.hpp.

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

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()().

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

stdair::year_t SIMFQT::FareRuleStruct::_itYear
stdair::month_t SIMFQT::FareRuleStruct::_itMonth
stdair::day_t SIMFQT::FareRuleStruct::_itDay
stdair::hour_t SIMFQT::FareRuleStruct::_itHours
stdair::minute_t SIMFQT::FareRuleStruct::_itMinutes

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