8 #include <boost/tokenizer.hpp>
9 #include <boost/lexical_cast.hpp>
10 #include <boost/date_time/gregorian/parsers.hpp>
27 typedef boost::tokenizer<boost::char_separator<char> >
Tokeniser_T;
41 _departureDate (
""), _boardingPoint (
""),
42 _offPoint (
""), _boardingTime (
"") {
65 if (lDateTokens.begin() == lDateTokens.end()) {
74 const Date_T lDepartureDate =
77 const FlightDateKey oFlightDateKey (lFlightNumber, lDepartureDate);
79 return oFlightDateKey;
93 return oSegmentDateKey;
101 if (lTimeTokens.begin() == lTimeTokens.end()) {
108 const Duration_T oBoardingTime (boost::posix_time::
111 return oBoardingTime;
116 ioOut <<
"ParsedKey: " <<
toString();
125 std::ostringstream oStr;