19 std::cout <<
"Place: " << _name <<
" (" << _code <<
")" << std::endl;
35 Date_T () : _reldays (14), _day(1), _month(1), _year(1970) {}
38 std::cout <<
"Date: " << _date <<
" (" << _day <<
"/" << _month
39 <<
"/" << _year <<
"), i.e. in " << _reldays <<
" days"
44 return boost::gregorian::date (_year, _month, _day);
58 Airline_T () : _isPreferred (true), _name(
""), _code(
"") {}
61 const std::string isPreferredStr = (
_isPreferred)?
"+":
"-";
62 std::cout <<
"Airline: " << isPreferredStr << _name <<
" (" << _code <<
")"
81 std::cout <<
"Passenger: " << _number <<
" (" << _labels[
_type] <<
")"
88 {
"Adult",
"Child",
"Pet" };
106 std::cout << std::endl;
108 for (PlaceList_T::const_iterator itPlace = _placeList.begin();
109 itPlace != _placeList.end(); ++itPlace) {
110 const Place_T& lPlace = *itPlace;
114 for (DateList_T::const_iterator itDate = _dateList.begin();
115 itDate != _dateList.end(); ++itDate) {
116 const Date_T& lDate = *itDate;
120 for (AirlineList_T::const_iterator itAirline = _airlineList.begin();
121 itAirline != _airlineList.end(); ++itAirline) {
126 for (PassengerList_T::const_iterator itPassenger = _passengerList.begin();
127 itPassenger != _passengerList.end(); ++itPassenger) {
132 std::cout <<
"-- Staging --" << std::endl;
SearchString_T parseBookingRequest(const std::string &iSearchString)
PassengerList_T _passengerList
Passenger_T _tmpPassenger
boost::gregorian::date getDate() const
static const std::string _labels[LAST_VALUE]
std::vector< Date_T > DateList_T
std::vector< Passenger_T > PassengerList_T
AirlineList_T _airlineList
boost::gregorian::date _date
std::vector< Airline_T > AirlineList_T
std::vector< Place_T > PlaceList_T