StdAir Logo  1.00.21
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
SegmentPeriod.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <cassert>
6// STDAIR
9
10namespace stdair {
11
12 // ////////////////////////////////////////////////////////////////////
14 : _key (iKey), _parent (NULL), _boardingDateOffset (0), _offDateOffset (0) {
15 }
16
17 // ////////////////////////////////////////////////////////////////////
18 SegmentPeriod::SegmentPeriod (const SegmentPeriod& iSegmentPeriod)
19 : _key (iSegmentPeriod.getKey()),
20 _parent (NULL),
21 _boardingTime (iSegmentPeriod._boardingTime),
22 _offTime (iSegmentPeriod._offTime),
23 _boardingDateOffset (iSegmentPeriod._boardingDateOffset),
24 _offDateOffset (iSegmentPeriod._offDateOffset),
25 _elapsedTime (iSegmentPeriod._elapsedTime) {
26 }
27
28 // ////////////////////////////////////////////////////////////////////
31
32 // ////////////////////////////////////////////////////////////////////
33 std::string SegmentPeriod::toString() const {
34 std::ostringstream oStr;
35 oStr << describeKey();
36 return oStr.str();
37 }
38
39 // ////////////////////////////////////////////////////////////////////
41 addCabinBookingClassList (const CabinCode_T& iCabinCode,
42 const ClassList_String_T& iClassCodeList) {
43 const bool insert = _cabinBookingClassMap.
44 insert (CabinBookingClassMap_T::value_type (iCabinCode,
45 iClassCodeList)).second;
46 assert (insert == true);
47 }
48
49}
Handle on the StdAir library context.
std::string ClassList_String_T
std::string CabinCode_T
std::string toString() const
const std::string describeKey() const
DateOffset_T _boardingDateOffset
SegmentPeriod(const Key_T &)
SegmentPeriodKey Key_T
CabinBookingClassMap_T _cabinBookingClassMap
void addCabinBookingClassList(const CabinCode_T &, const ClassList_String_T &)