Utility Structure for the parsing of Flight-Date structures. More...
#include <airrac/bom/YieldRuleStruct.hpp>
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 |
Utility Structure for the parsing of Flight-Date structures.
Definition at line 24 of file YieldRuleStruct.hpp.
AIRRAC::YieldRuleStruct::YieldRuleStruct | ( | ) |
Constructor.
Definition at line 17 of file YieldRuleStruct.cpp.
AIRRAC::YieldRuleStruct::~YieldRuleStruct | ( | ) |
Destructor.
Definition at line 34 of file YieldRuleStruct.cpp.
|
inline |
Get the yield ID.
Definition at line 40 of file YieldRuleStruct.hpp.
|
inline |
Get the origin.
Definition at line 45 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storePOS::operator()().
|
inline |
Get the destination.
Definition at line 50 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storePOS::operator()().
|
inline |
Get the trip type.
Definition at line 55 of file YieldRuleStruct.hpp.
|
inline |
Get the date range start.
Definition at line 60 of file YieldRuleStruct.hpp.
|
inline |
Get the date range end.
Definition at line 65 of file YieldRuleStruct.hpp.
|
inline |
Get the time range start.
Definition at line 70 of file YieldRuleStruct.hpp.
|
inline |
Get the time range end.
Definition at line 75 of file YieldRuleStruct.hpp.
|
inline |
Get the cabin code.
Definition at line 80 of file YieldRuleStruct.hpp.
|
inline |
Get the point-of-sale.
Definition at line 85 of file YieldRuleStruct.hpp.
|
inline |
Get the channel.
Definition at line 90 of file YieldRuleStruct.hpp.
|
inline |
Get the yield.
Definition at line 95 of file YieldRuleStruct.hpp.
|
inline |
Get the airline code.
Definition at line 100 of file YieldRuleStruct.hpp.
|
inline |
Get the class code.
Definition at line 105 of file YieldRuleStruct.hpp.
|
inline |
Get the size of the airline code list.
Definition at line 110 of file YieldRuleStruct.hpp.
|
inline |
Get the size of the class code list.
Definition at line 115 of file YieldRuleStruct.hpp.
|
inline |
Get the airline code list.
Definition at line 120 of file YieldRuleStruct.hpp.
|
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()().
|
inline |
Set the yield ID.
Definition at line 143 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().
|
inline |
Set the origin.
Definition at line 148 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeOrigin::operator()().
|
inline |
Set the destination.
Definition at line 153 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeDestination::operator()().
|
inline |
Set the trip type.
Definition at line 158 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeTripType::operator()().
|
inline |
Set the date range start.
Definition at line 163 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeDateRangeStart::operator()().
|
inline |
Set the date range end.
Definition at line 168 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeDateRangeEnd::operator()().
|
inline |
Set the time range start.
Definition at line 173 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeStartRangeTime::operator()().
|
inline |
Set the time range end.
Definition at line 178 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeEndRangeTime::operator()().
|
inline |
Set the cabin code.
Definition at line 183 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeCabinCode::operator()().
|
inline |
Set the point-of-sale.
Definition at line 188 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storePOS::operator()().
|
inline |
Set the channel.
Definition at line 193 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeChannel::operator()().
|
inline |
Set the yield.
Definition at line 198 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeYield::operator()().
|
inline |
Set the airline code.
Definition at line 203 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()(), and AIRRAC::YieldParserHelper::storeAirlineCode::operator()().
|
inline |
Set the class code.
Definition at line 208 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().
|
inline |
Empty the airline code list.
Definition at line 213 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().
|
inline |
Empty the class code list.
Definition at line 218 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeYieldId::operator()().
|
inline |
Add an airline code to the list.
Definition at line 223 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeAirlineCode::operator()().
|
inline |
Add a class code to the list.
Definition at line 228 of file YieldRuleStruct.hpp.
Referenced by AIRRAC::YieldParserHelper::storeClass::operator()().
stdair::year_t AIRRAC::YieldRuleStruct::_itYear |
Staging Date.
Definition at line 235 of file YieldRuleStruct.hpp.
Referenced by calculateDate(), and AIRRAC::YieldParserHelper::YieldRuleParser::YieldRuleParser().
stdair::month_t AIRRAC::YieldRuleStruct::_itMonth |
Definition at line 236 of file YieldRuleStruct.hpp.
Referenced by calculateDate(), and AIRRAC::YieldParserHelper::YieldRuleParser::YieldRuleParser().
stdair::day_t AIRRAC::YieldRuleStruct::_itDay |
Definition at line 237 of file YieldRuleStruct.hpp.
Referenced by calculateDate(), and AIRRAC::YieldParserHelper::YieldRuleParser::YieldRuleParser().
stdair::hour_t AIRRAC::YieldRuleStruct::_itHours |
Staging Time.
Definition at line 241 of file YieldRuleStruct.hpp.
Referenced by calculateTime(), and AIRRAC::YieldParserHelper::YieldRuleParser::YieldRuleParser().
stdair::minute_t AIRRAC::YieldRuleStruct::_itMinutes |
Definition at line 242 of file YieldRuleStruct.hpp.
Referenced by calculateTime(), and AIRRAC::YieldParserHelper::YieldRuleParser::YieldRuleParser().
stdair::second_t AIRRAC::YieldRuleStruct::_itSeconds |
Definition at line 243 of file YieldRuleStruct.hpp.
Referenced by calculateTime(), AIRRAC::YieldParserHelper::storeYieldId::operator()(), AIRRAC::YieldParserHelper::storeStartRangeTime::operator()(), AIRRAC::YieldParserHelper::storeEndRangeTime::operator()(), and AIRRAC::YieldParserHelper::YieldRuleParser::YieldRuleParser().