18 : _segmentPath (iSegPath), _classList (iList), _partySize (iSize),
19 _datetime (iDateTime) {
27 : _segmentPath (iSegPath), _classIDList (iIDList), _partySize (iSize),
28 _datetime (iDateTime) {
46 std::ostringstream oStr;
48 oStr <<
"Segment path: ";
49 unsigned short idx = 0;
50 for (SegmentPath_T::const_iterator lItSegmentPath = _segmentPath.begin();
51 lItSegmentPath != _segmentPath.end(); ++lItSegmentPath, ++idx) {
55 const std::string& lSegmentKey = *lItSegmentPath;
58 if (_classList ==
"") {
60 BookingClassIDList_T::const_iterator lItBookingClassIDList =
63 for (; lItBookingClassIDList != _classIDList.end();
64 ++lItBookingClassIDList, ++idx) {
73 oStr <<
";" << _partySize <<
";" << _datetime;
75 oStr <<
";" << _classList <<
";" << _partySize <<
";" << _datetime;
82 std::ostringstream oStr;
85 unsigned short idx = 0;
86 for (SegmentPath_T::const_iterator itSegPath = _segmentPath.begin();
87 itSegPath != _segmentPath.end(); ++itSegPath, ++idx) {
91 const std::string& lSegmentKey = *itSegPath;
92 oStr <<
"[" << idx <<
"] " << lSegmentKey;
94 if (_classList ==
"") {
96 BookingClassIDList_T::const_iterator lItBookingClassIDList =
99 for (; lItBookingClassIDList != _classIDList.end();
100 ++lItBookingClassIDList, ++idx) {
109 oStr <<
";" << _partySize <<
";" << _datetime;
111 oStr <<
";" << _classList <<
";" << _partySize <<
";" << _datetime;
boost::posix_time::ptime DateTime_T
Handle on the StdAir library context.
void fromStream(std::istream &ioIn)
std::list< BookingClassID_T > BookingClassIDList_T
Class wrapper of bom ID (e.g. pointer to object).
const std::string display() const
const std::string describe() const
CancellationStruct(const SegmentPath_T &, const ClassList_String_T &, const PartySize_T &, const DateTime_T &)
std::string ClassList_String_T
const ClassCode_T & getClassCode() const
void toStream(std::ostream &ioOut) const