StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SegmentPeriod.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
4 // STL
5 #include <cassert>
6 // STDAIR
9 
10 namespace stdair {
11 
12  // ////////////////////////////////////////////////////////////////////
14  : _key (iKey), _parent (NULL), _boardingDateOffset (0), _offDateOffset (0) {
15  }
16 
17  // ////////////////////////////////////////////////////////////////////
19  }
20 
21  // ////////////////////////////////////////////////////////////////////
22  std::string SegmentPeriod::toString() const {
23  std::ostringstream oStr;
24  oStr << describeKey();
25  return oStr.str();
26  }
27 
28  // ////////////////////////////////////////////////////////////////////
29  void SegmentPeriod::
31  const ClassList_String_T& iClassCodeList) {
32  const bool insert = _cabinBookingClassMap.
33  insert (CabinBookingClassMap_T::value_type (iCabinCode,
34  iClassCodeList)).second;
35  assert (insert == true);
36  }
37 
38 }