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
BookingClassStruct.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/basic/BasConst_General.hpp>
9
#include <stdair/bom/BookingClass.hpp>
10
// AirInv
11
#include <
airinv/bom/BookingClassStruct.hpp
>
12
13
namespace
AIRINV {
14
15
// //////////////////////////////////////////////////////////////////////
16
BookingClassStruct::BookingClassStruct
() {
17
}
18
19
// //////////////////////////////////////////////////////////////////////
20
stdair::ClassCode_T
BookingClassStruct::getFullSubclassCode
()
const
{
21
std::ostringstream oStr;
22
oStr <<
_classCode
<<
_subclassCode
;
23
return
oStr.str();
24
}
25
26
// //////////////////////////////////////////////////////////////////////
27
const
std::string
BookingClassStruct::describe
()
const
{
28
std::ostringstream ostr;
29
ostr <<
" "
<<
_classCode
<<
_subclassCode
30
<<
" ("
<<
_parentClassCode
<<
_parentSubclassCode
<<
")"
31
<<
", "
<<
_cumulatedProtection
<<
":"
<<
_protection
32
<<
", "
<<
_nego
33
<<
", "
<<
_noShowPercentage
<<
":"
<<
_overbookingPercentage
34
<<
", "
<<
_nbOfBookings
<<
":"
<<
_nbOfGroupBookings
35
<<
":"
<<
_nbOfPendingGroupBookings
<<
":"
<<
_nbOfStaffBookings
36
<<
":"
<<
_nbOfWLBookings
<<
":"
<<
_etb
37
<<
", "
<<
_netClassAvailability
<<
":"
<<
_segmentAvailability
38
<<
":"
<<
_netRevenueAvailability
39
<< std::endl;
40
return
ostr.str();
41
}
42
43
// //////////////////////////////////////////////////////////////////////
44
void
BookingClassStruct::fill
(stdair::BookingClass& ioBookingClass)
const
{
45
// Set the Yield Range Upper Value
46
// ioBookingClass.setYieldRangeValue (_yieldRangeUpperValue);
47
48
// Set the Availability
49
// ioBookingClass.setAvailability (_availability);
50
51
// Set the number of seats
52
// ioBookingClass.setNbOfSeats (_nbOfSeats);
53
54
// Set the Seat Index
55
// ioBookingClass.setSeatIndex (_seatIndex);
56
}
57
58
}
Generated on Tue Dec 25 2012 22:19:41 for AirInv by
1.8.1.1