0.45.1
C++ Standard Airline IT Object Library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
7
#include <
stdair/basic/BasConst_BookingClass.hpp
>
8
#include <
stdair/bom/SegmentPeriod.hpp
>
9
10
namespace
stdair {
11
12
// ////////////////////////////////////////////////////////////////////
13
SegmentPeriod::SegmentPeriod
(
const
Key_T
& iKey)
14
: _key (iKey), _parent (NULL), _boardingDateOffset (0), _offDateOffset (0) {
15
}
16
17
// ////////////////////////////////////////////////////////////////////
18
SegmentPeriod::~SegmentPeriod
() {
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::
30
addCabinBookingClassList
(
const
CabinCode_T
& iCabinCode,
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
}
Generated on Mon Aug 27 2012 21:34:04 for StdAir by
1.8.1.2