StdAir Logo  1.00.15
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
Inventory.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <cassert>
6#include <sstream>
7// StdAir
12
13namespace stdair {
14
15 // ////////////////////////////////////////////////////////////////////
16 Inventory::Inventory() :
18 _parent (NULL),
19 _airlineFeature (NULL) {
20 // That constructor is used by the serialisation process
21 }
22
23 // ////////////////////////////////////////////////////////////////////
24 Inventory::Inventory (const Inventory& iInventory)
25 : _key (iInventory._key),
26 _parent (NULL),
27 _airlineFeature (NULL) {
28 }
29
30 // ////////////////////////////////////////////////////////////////////
31 Inventory::Inventory (const Key_T& iKey) :
32 _key (iKey),
33 _parent (NULL),
34 _airlineFeature (NULL) {
35 }
36
37 // ////////////////////////////////////////////////////////////////////
40
41 // ////////////////////////////////////////////////////////////////////
42 std::string Inventory::toString() const {
43 std::ostringstream oStr;
44 oStr << describeKey();
45 return oStr.str();
46 }
47
48 // ////////////////////////////////////////////////////////////////////
50 getFlightDate (const std::string& iFlightDateKeyStr) const {
51 FlightDate* oFlightDate_ptr =
52 BomManager::getObjectPtr<FlightDate> (*this, iFlightDateKeyStr);
53 return oFlightDate_ptr;
54 }
55
56 // ////////////////////////////////////////////////////////////////////
58 getFlightDate (const FlightDateKey& iFlightDateKey) const {
59 return getFlightDate (iFlightDateKey.toString());
60 }
61
62 // ////////////////////////////////////////////////////////////////////
68
69 // ////////////////////////////////////////////////////////////////////
75
76 // ////////////////////////////////////////////////////////////////////
82
83 // ////////////////////////////////////////////////////////////////////
89
90 // ////////////////////////////////////////////////////////////////////
96
97}
98
Handle on the StdAir library context.
const AirlineCode_T DEFAULT_AIRLINE_CODE
ForecastingMethod::EN_ForecastingMethod getForecastingMethod() const
PartnershipTechnique::EN_PartnershipTechnique getPartnershipTechnique() const
OptimisationMethod::EN_OptimisationMethod getOptimisationMethod() const
UnconstrainingMethod::EN_UnconstrainingMethod getUnconstrainingMethod() const
PreOptimisationMethod::EN_PreOptimisationMethod getPreOptimisationMethod() const
Class representing the actual attributes for an airline flight-date.
Key of a given flight-date, made of a flight number and a departure date.
const std::string toString() const
AirlineFeature * _airlineFeature
FlightDate * getFlightDate(const std::string &iFlightDateKeyStr) const
Definition Inventory.cpp:50
std::string toString() const
Definition Inventory.cpp:42
UnconstrainingMethod::EN_UnconstrainingMethod getUnconstrainingMethod() const
Definition Inventory.cpp:71
const std::string describeKey() const
OptimisationMethod::EN_OptimisationMethod getOptimisationMethod() const
Definition Inventory.cpp:85
virtual ~Inventory()
Definition Inventory.cpp:38
ForecastingMethod::EN_ForecastingMethod getForecastingMethod() const
Definition Inventory.cpp:64
PartnershipTechnique::EN_PartnershipTechnique getPartnershipTechnique() const
Definition Inventory.cpp:92
PreOptimisationMethod::EN_PreOptimisationMethod getPreOptimisationMethod() const
Definition Inventory.cpp:78
Key of a given inventory, made of the airline code.