8 #include <boost/tokenizer.hpp>
9 #include <boost/lexical_cast.hpp>
10 #include <boost/date_time/gregorian/parsers.hpp>
28 typedef boost::tokenizer<boost::char_separator<char> >
Tokeniser_T;
42 _departureDate (
""), _boardingPoint (
""),
43 _offPoint (
""), _boardingTime (
"") {
66 if (lDateTokens.begin() == lDateTokens.end()) {
75 const Date_T lDepartureDate =
78 const FlightDateKey oFlightDateKey (lFlightNumber, lDepartureDate);
80 return oFlightDateKey;
108 return oSegmentDateKey;
116 if (lTimeTokens.begin() == lTimeTokens.end()) {
123 const Duration_T oBoardingTime (boost::posix_time::
126 return oBoardingTime;
131 ioOut <<
"ParsedKey: " <<
toString();
140 std::ostringstream oStr;