#include <airinv/bom/DCPEventStruct.hpp>
Public Member Functions | |
DCPEventStruct () | |
stdair::Date_T | getDate () const |
stdair::Duration_T | getTime () const |
const std::string | describe () const |
const unsigned int | getAirlineListSize () const |
const unsigned int | getClassCodeListSize () const |
const stdair::AirlineCode_T & | getFirstAirlineCode () const |
void | beginAirline () |
bool | hasNotReachedEndAirline () const |
stdair::AirlineCode_T | getCurrentAirlineCode () const |
void | iterateAirline () |
const std::string & | getFirstClassCode () const |
void | beginClassCode () |
bool | hasNotReachedEndClassCode () const |
std::string | getCurrentClassCode () const |
void | iterateClassCode () |
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 |
stdair::AirlineCodeList_T::iterator | _itCurrentAirlineCode |
stdair::ClassList_StringList_T::iterator | _itCurrentClassCode |
stdair::AirportCode_T | _origin |
stdair::AirportCode_T | _destination |
stdair::Date_T | _dateRangeStart |
stdair::Date_T | _dateRangeEnd |
stdair::Duration_T | _timeRangeStart |
stdair::Duration_T | _timeRangeEnd |
stdair::CabinCode_T | _cabinCode |
stdair::CityCode_T | _pos |
stdair::ChannelLabel_T | _channel |
stdair::DayDuration_T | _advancePurchase |
stdair::SaturdayStay_T | _saturdayStay |
stdair::ChangeFees_T | _changeFees |
stdair::NonRefundable_T | _nonRefundable |
stdair::DayDuration_T | _minimumStay |
stdair::PriceValue_T | _DCP |
stdair::AirlineCode_T | _airlineCode |
stdair::ClassCode_T | _classCode |
stdair::AirlineCodeList_T | _airlineCodeList |
stdair::ClassList_StringList_T | _classCodeList |
Utility Structure for the parsing of Flight-Period structures.
Definition at line 21 of file DCPEventStruct.hpp.
AIRINV::DCPEventStruct::DCPEventStruct | ( | ) |
Default constructor.
Definition at line 18 of file DCPEventStruct.cpp.
stdair::Date_T AIRINV::DCPEventStruct::getDate | ( | ) | const |
Get the date from the staging details.
Definition at line 38 of file DCPEventStruct.cpp.
stdair::Duration_T AIRINV::DCPEventStruct::getTime | ( | ) | const |
Get the time from the staging details.
Definition at line 44 of file DCPEventStruct.cpp.
References _itHours, _itMinutes, and _itSeconds.
const std::string AIRINV::DCPEventStruct::describe | ( | ) | const |
Display of the structure.
Definition at line 53 of file DCPEventStruct.cpp.
References _advancePurchase, _airlineCodeList, _cabinCode, _changeFees, _channel, _classCodeList, _dateRangeEnd, _dateRangeStart, _DCP, _destination, _minimumStay, _nonRefundable, _origin, _pos, _saturdayStay, _timeRangeEnd, and _timeRangeStart.
|
inline |
Get the size of the airline code list.
Definition at line 37 of file DCPEventStruct.hpp.
References _airlineCodeList.
|
inline |
Get the size of the class code list.
Definition at line 42 of file DCPEventStruct.hpp.
References _classCodeList.
const stdair::AirlineCode_T & AIRINV::DCPEventStruct::getFirstAirlineCode | ( | ) | const |
Get the first airline code.
Definition at line 87 of file DCPEventStruct.cpp.
References _airlineCodeList.
void AIRINV::DCPEventStruct::beginAirline | ( | ) |
Initialise the internal iterators on airline code: The current iterator is set on the first airline code, the next iterator is set on the second one.
Definition at line 95 of file DCPEventStruct.cpp.
References _airlineCodeList, and _itCurrentAirlineCode.
bool AIRINV::DCPEventStruct::hasNotReachedEndAirline | ( | ) | const |
States whether or not the end of the (airline code) list has been reached.
Definition at line 100 of file DCPEventStruct.cpp.
References _airlineCodeList, and _itCurrentAirlineCode.
stdair::AirlineCode_T AIRINV::DCPEventStruct::getCurrentAirlineCode | ( | ) | const |
Get the current element (airline code).
Definition at line 106 of file DCPEventStruct.cpp.
References _airlineCodeList, and _itCurrentAirlineCode.
void AIRINV::DCPEventStruct::iterateAirline | ( | ) |
Iterate for one element (airline code): increment both internal iterators on Buckets.
Definition at line 112 of file DCPEventStruct.cpp.
References _classCodeList, and _itCurrentAirlineCode.
const std::string & AIRINV::DCPEventStruct::getFirstClassCode | ( | ) | const |
Get the first class code list as a string.
Definition at line 119 of file DCPEventStruct.cpp.
References _classCodeList.
void AIRINV::DCPEventStruct::beginClassCode | ( | ) |
Initialise the internal iterators on class code: The current iterator is set on the first class code, the next iterator is set on the second one.
Definition at line 127 of file DCPEventStruct.cpp.
References _classCodeList, and _itCurrentClassCode.
bool AIRINV::DCPEventStruct::hasNotReachedEndClassCode | ( | ) | const |
States whether or not the end of the (class code) list has been reached.
Definition at line 132 of file DCPEventStruct.cpp.
References _classCodeList, and _itCurrentClassCode.
std::string AIRINV::DCPEventStruct::getCurrentClassCode | ( | ) | const |
Get the current element (class code).
Definition at line 138 of file DCPEventStruct.cpp.
References _classCodeList, and _itCurrentClassCode.
void AIRINV::DCPEventStruct::iterateClassCode | ( | ) |
Iterate for one element (classCode): increment both internal iterators on Buckets.
Definition at line 145 of file DCPEventStruct.cpp.
References _classCodeList, and _itCurrentClassCode.
stdair::year_t AIRINV::DCPEventStruct::_itYear |
stdair::month_t AIRINV::DCPEventStruct::_itMonth |
Definition at line 88 of file DCPEventStruct.hpp.
Referenced by getDate().
stdair::day_t AIRINV::DCPEventStruct::_itDay |
Definition at line 89 of file DCPEventStruct.hpp.
Referenced by getDate().
stdair::hour_t AIRINV::DCPEventStruct::_itHours |
stdair::minute_t AIRINV::DCPEventStruct::_itMinutes |
Definition at line 94 of file DCPEventStruct.hpp.
Referenced by getTime().
stdair::second_t AIRINV::DCPEventStruct::_itSeconds |
Definition at line 95 of file DCPEventStruct.hpp.
Referenced by getTime().
stdair::AirlineCodeList_T::iterator AIRINV::DCPEventStruct::_itCurrentAirlineCode |
Iterator for the current airline code list.
Definition at line 98 of file DCPEventStruct.hpp.
Referenced by beginAirline(), getCurrentAirlineCode(), hasNotReachedEndAirline(), and iterateAirline().
stdair::ClassList_StringList_T::iterator AIRINV::DCPEventStruct::_itCurrentClassCode |
Iterator for the current class code.
Definition at line 101 of file DCPEventStruct.hpp.
Referenced by beginClassCode(), getCurrentClassCode(), hasNotReachedEndClassCode(), and iterateClassCode().
stdair::AirportCode_T AIRINV::DCPEventStruct::_origin |
stdair::AirportCode_T AIRINV::DCPEventStruct::_destination |
stdair::Date_T AIRINV::DCPEventStruct::_dateRangeStart |
Start Range date available for this DCP event.
Definition at line 110 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::Date_T AIRINV::DCPEventStruct::_dateRangeEnd |
Start Range date available for this DCP event.
Definition at line 113 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::Duration_T AIRINV::DCPEventStruct::_timeRangeStart |
Start time from the time range available for this DCP event.
Definition at line 116 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::Duration_T AIRINV::DCPEventStruct::_timeRangeEnd |
End time from the time range available for this DCP event.
Definition at line 119 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::CabinCode_T AIRINV::DCPEventStruct::_cabinCode |
stdair::CityCode_T AIRINV::DCPEventStruct::_pos |
stdair::ChannelLabel_T AIRINV::DCPEventStruct::_channel |
stdair::DayDuration_T AIRINV::DCPEventStruct::_advancePurchase |
Number of days that the ticket is sold before the flightDate.
Definition at line 131 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::SaturdayStay_T AIRINV::DCPEventStruct::_saturdayStay |
Boolean saying whether a saturday is considered during the stay .
Definition at line 134 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::ChangeFees_T AIRINV::DCPEventStruct::_changeFees |
Boolean saying whether the change fees option is requested or not.
Definition at line 137 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::NonRefundable_T AIRINV::DCPEventStruct::_nonRefundable |
Boolean saying whether the refundable option is requested or not.
Definition at line 140 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::DayDuration_T AIRINV::DCPEventStruct::_minimumStay |
Number of days that the customer spent into the destination city.
Definition at line 143 of file DCPEventStruct.hpp.
Referenced by describe().
stdair::PriceValue_T AIRINV::DCPEventStruct::_DCP |
stdair::AirlineCode_T AIRINV::DCPEventStruct::_airlineCode |
Airline code
Definition at line 149 of file DCPEventStruct.hpp.
stdair::ClassCode_T AIRINV::DCPEventStruct::_classCode |
Code
Definition at line 152 of file DCPEventStruct.hpp.
stdair::AirlineCodeList_T AIRINV::DCPEventStruct::_airlineCodeList |
Airline Code List
Definition at line 155 of file DCPEventStruct.hpp.
Referenced by beginAirline(), describe(), getAirlineListSize(), getCurrentAirlineCode(), getFirstAirlineCode(), and hasNotReachedEndAirline().
stdair::ClassList_StringList_T AIRINV::DCPEventStruct::_classCodeList |
Numbers of different Airline Codes Class Code List
Definition at line 161 of file DCPEventStruct.hpp.
Referenced by beginClassCode(), describe(), getClassCodeListSize(), getCurrentClassCode(), getFirstClassCode(), hasNotReachedEndClassCode(), iterateAirline(), and iterateClassCode().