1.00.0
C++ Simulated Airline Inventory Management System library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SegmentCabinStruct.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
#include <sstream>
7
// StdAir
8
#include <stdair/bom/SegmentCabin.hpp>
9
// AirInv
10
#include <
airinv/bom/SegmentCabinStruct.hpp
>
11
12
namespace
AIRINV {
13
14
// //////////////////////////////////////////////////////////////////////
15
const
std::string
SegmentCabinStruct::describe
()
const
{
16
std::ostringstream ostr;
17
18
ostr <<
" "
<<
_cabinCode
<<
", "
<<
_nbOfBookings
<< std::endl;
19
20
for
(FareFamilyStructList_T::const_iterator itFF =
_fareFamilies
.begin();
21
itFF !=
_fareFamilies
.end(); ++itFF) {
22
const
FareFamilyStruct
& lFF = *itFF;
23
ostr << lFF.
describe
();
24
}
25
if
(
_fareFamilies
.empty() ==
false
) {
26
ostr << std::endl;
27
}
28
29
return
ostr.str();
30
}
31
32
// //////////////////////////////////////////////////////////////////////
33
void
SegmentCabinStruct::fill
(stdair::SegmentCabin& ioSegmentCabin)
const
{
34
// Set the total number of bookings
35
// ioSegmentCabin.setNbOfBookings (_nbOfBookings);
36
}
37
38
}
Generated on Wed May 22 2013 17:05:54 for AirInv by
1.8.3.1