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
LegCabinStruct.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/LegCabin.hpp>
9
// AirInv
10
#include <
airinv/bom/LegCabinStruct.hpp
>
11
12
namespace
AIRINV {
13
14
// //////////////////////////////////////////////////////////////////////
15
const
std::string
LegCabinStruct::describe
()
const
{
16
std::ostringstream ostr;
17
ostr <<
" "
<<
_cabinCode
<<
", "
<<
_saleableCapacity
18
<<
", "
<<
_adjustment
<<
", "
<<
_dcsRegrade
19
<<
", "
<<
_au
<<
", "
<<
_avPool
20
<<
", "
<<
_upr
<<
", "
<<
_nbOfBookings
<<
", "
<<
_nav
21
<<
", "
<<
_gav
<<
", "
<<
_acp
<<
", "
<<
_etb
22
<<
", "
<<
_staffNbOfBookings
<<
", "
<<
_wlNbOfBookings
23
<<
", "
<<
_groupNbOfBookings
24
<< std::endl;
25
26
for
(BucketStructList_T::const_iterator itBucket =
_bucketList
.begin();
27
itBucket !=
_bucketList
.end(); ++itBucket) {
28
const
BucketStruct
& lBucket = *itBucket;
29
ostr << lBucket.
describe
();
30
}
31
if
(
_bucketList
.empty() ==
false
) {
32
ostr << std::endl;
33
}
34
return
ostr.str();
35
}
36
37
// //////////////////////////////////////////////////////////////////////
38
void
LegCabinStruct::fill
(stdair::LegCabin& ioLegCabin)
const
{
39
// Set the Capacity
40
ioLegCabin.setCapacities (
_saleableCapacity
);
41
}
42
43
}
Generated on Tue Dec 25 2012 22:19:42 for AirInv by
1.8.1.1