AirInv Logo  1.00.10
C++ Simulated Airline Inventory Management System Library
Loading...
Searching...
No Matches
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
11
12namespace 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}
Utility Structure for the parsing of fare family details.
const std::string describe() const
stdair::NbOfBookings_T _nbOfBookings
void fill(stdair::SegmentCabin &) const
FareFamilyStructList_T _fareFamilies
const std::string describe() const