#include <simfqt/bom/FareRuleStruct.hpp>
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 |
Utility Structure for the parsing of fare-rule structures.
Definition at line 21 of file FareRuleStruct.hpp.
SIMFQT::FareRuleStruct::FareRuleStruct | ( | ) |
Default constructor.
Definition at line 17 of file FareRuleStruct.cpp.
|
inline |
Get the fare ID.
Definition at line 30 of file FareRuleStruct.hpp.
|
inline |
Get the origin.
Definition at line 35 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storePOS::operator()().
|
inline |
Get the destination.
Definition at line 40 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storePOS::operator()().
|
inline |
Get the trip type.
Definition at line 45 of file FareRuleStruct.hpp.
|
inline |
Get the date range start.
Definition at line 50 of file FareRuleStruct.hpp.
|
inline |
Get the date range end.
Definition at line 55 of file FareRuleStruct.hpp.
|
inline |
Get the time range start.
Definition at line 60 of file FareRuleStruct.hpp.
|
inline |
Get the time range end.
Definition at line 65 of file FareRuleStruct.hpp.
|
inline |
Get the cabin code.
Definition at line 70 of file FareRuleStruct.hpp.
|
inline |
Get the point-of-sale.
Definition at line 75 of file FareRuleStruct.hpp.
|
inline |
Get the channel.
Definition at line 80 of file FareRuleStruct.hpp.
|
inline |
Get the advance purchase.
Definition at line 85 of file FareRuleStruct.hpp.
|
inline |
Get the saturday stay option.
Definition at line 90 of file FareRuleStruct.hpp.
|
inline |
Get the change fees.
Definition at line 95 of file FareRuleStruct.hpp.
|
inline |
Get the refundable option.
Definition at line 100 of file FareRuleStruct.hpp.
|
inline |
Get the minimum stay.
Definition at line 105 of file FareRuleStruct.hpp.
|
inline |
Get the fare.
Definition at line 110 of file FareRuleStruct.hpp.
|
inline |
Get the airline code.
Definition at line 115 of file FareRuleStruct.hpp.
|
inline |
Get the class code.
Definition at line 120 of file FareRuleStruct.hpp.
|
inline |
Get the size of the airline code list.
Definition at line 125 of file FareRuleStruct.hpp.
|
inline |
Get the size of the class code list.
Definition at line 130 of file FareRuleStruct.hpp.
|
inline |
Get the airline code list.
Definition at line 135 of file FareRuleStruct.hpp.
|
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()().
|
inline |
Set the fare ID.
Definition at line 158 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().
|
inline |
Set the origin.
Definition at line 163 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeOrigin::operator()().
|
inline |
Set the destination.
Definition at line 168 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeDestination::operator()().
|
inline |
Set the trip type.
Definition at line 173 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeTripType::operator()().
|
inline |
Set the date range start.
Definition at line 178 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeDateRangeStart::operator()().
|
inline |
Set the date range end.
Definition at line 183 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeDateRangeEnd::operator()().
|
inline |
Set the time range start.
Definition at line 188 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeStartRangeTime::operator()().
|
inline |
Set the time range end.
Definition at line 193 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeEndRangeTime::operator()().
|
inline |
Set the cabin code.
Definition at line 198 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeCabinCode::operator()().
|
inline |
Set the point-of-sale.
Definition at line 203 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storePOS::operator()().
|
inline |
Set the channel.
Definition at line 208 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeChannel::operator()().
|
inline |
Set the advance purchase.
Definition at line 213 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeAdvancePurchase::operator()().
|
inline |
Set the saturday stay option.
Definition at line 218 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeSaturdayStay::operator()().
|
inline |
Set the change fees.
Definition at line 223 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeChangeFees::operator()().
|
inline |
Set the refundable option.
Definition at line 228 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeNonRefundable::operator()().
|
inline |
Set the minimum stay.
Definition at line 233 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeMinimumStay::operator()().
|
inline |
Set the fare.
Definition at line 238 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeFare::operator()().
|
inline |
Set the airline code.
Definition at line 243 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().
|
inline |
Set the class code.
Definition at line 248 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().
|
inline |
Empty the airline code list.
Definition at line 253 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().
|
inline |
Empty the class code list.
Definition at line 258 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeFareId::operator()().
|
inline |
Add an airline code to the list.
Definition at line 263 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeAirlineCode::operator()().
|
inline |
Add a class code to the list.
Definition at line 268 of file FareRuleStruct.hpp.
Referenced by SIMFQT::FareParserHelper::storeClass::operator()().
stdair::year_t SIMFQT::FareRuleStruct::_itYear |
Staging Date.
Definition at line 275 of file FareRuleStruct.hpp.
Referenced by calculateDate(), and SIMFQT::FareParserHelper::FareRuleParser< Iterator >::FareRuleParser().
stdair::month_t SIMFQT::FareRuleStruct::_itMonth |
Definition at line 276 of file FareRuleStruct.hpp.
Referenced by calculateDate(), and SIMFQT::FareParserHelper::FareRuleParser< Iterator >::FareRuleParser().
stdair::day_t SIMFQT::FareRuleStruct::_itDay |
Definition at line 277 of file FareRuleStruct.hpp.
Referenced by calculateDate(), and SIMFQT::FareParserHelper::FareRuleParser< Iterator >::FareRuleParser().
stdair::hour_t SIMFQT::FareRuleStruct::_itHours |
Staging Time.
Definition at line 280 of file FareRuleStruct.hpp.
Referenced by calculateTime(), and SIMFQT::FareParserHelper::FareRuleParser< Iterator >::FareRuleParser().
stdair::minute_t SIMFQT::FareRuleStruct::_itMinutes |
Definition at line 281 of file FareRuleStruct.hpp.
Referenced by calculateTime(), and SIMFQT::FareParserHelper::FareRuleParser< Iterator >::FareRuleParser().
stdair::second_t SIMFQT::FareRuleStruct::_itSeconds |
Definition at line 282 of file FareRuleStruct.hpp.
Referenced by calculateTime(), SIMFQT::FareParserHelper::FareRuleParser< Iterator >::FareRuleParser(), SIMFQT::FareParserHelper::storeFareId::operator()(), SIMFQT::FareParserHelper::storeStartRangeTime::operator()(), and SIMFQT::FareParserHelper::storeEndRangeTime::operator()().