Class representing the actual attributes for an airline inventory. More...
#include <stdair/bom/Inventory.hpp>
Public Types | |
typedef InventoryKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
const AirlineCode_T & | getAirlineCode () const |
ForecastingMethod::EN_ForecastingMethod | getForecastingMethod () const |
UnconstrainingMethod::EN_UnconstrainingMethod | getUnconstrainingMethod () const |
PreOptimisationMethod::EN_PreOptimisationMethod | getPreOptimisationMethod () const |
OptimisationMethod::EN_OptimisationMethod | getOptimisationMethod () const |
PartnershipTechnique::EN_PartnershipTechnique | getPartnershipTechnique () const |
BomAbstract *const | getParent () const |
const HolderMap_T & | getHolderMap () const |
FlightDate * | getFlightDate (const std::string &iFlightDateKeyStr) const |
FlightDate * | getFlightDate (const FlightDateKey &) const |
AirlineFeature * | getAirlineFeature () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
Inventory (const Key_T &) | |
virtual | ~Inventory () |
Protected Attributes | |
Key_T | _key |
BomAbstract * | _parent |
AirlineFeature * | _airlineFeature |
HolderMap_T | _holderMap |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
class | boost::serialization::access |
template<class T > | |
struct | boost::archive::detail::heap_allocation |
Class representing the actual attributes for an airline inventory.
Definition at line 41 of file Inventory.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 53 of file Inventory.hpp.
|
protected |
Constructor.
Definition at line 31 of file Inventory.cpp.
|
protectedvirtual |
Destructor.
Definition at line 38 of file Inventory.cpp.
|
inline |
|
inline |
Get the airline code (inventory/primary key).
Definition at line 64 of file Inventory.hpp.
References _key, and stdair::InventoryKey::getAirlineCode().
Referenced by stdair::FlightDate::getAirlineCode(), stdair::OnDDate::getAirlineCode(), stdair::BomJSONExport::jsonExportFlightDateList(), and stdair::BomRetriever::retrieveSegmentDateFromLongKey().
ForecastingMethod::EN_ForecastingMethod stdair::Inventory::getForecastingMethod | ( | ) | const |
Get the forecasting method.
Definition at line 63 of file Inventory.cpp.
References _airlineFeature, and stdair::AirlineFeature::getForecastingMethod().
UnconstrainingMethod::EN_UnconstrainingMethod stdair::Inventory::getUnconstrainingMethod | ( | ) | const |
Get the unconstraining method.
Definition at line 70 of file Inventory.cpp.
References _airlineFeature, and stdair::AirlineFeature::getUnconstrainingMethod().
PreOptimisationMethod::EN_PreOptimisationMethod stdair::Inventory::getPreOptimisationMethod | ( | ) | const |
Get the pre-optimisation method.
Definition at line 77 of file Inventory.cpp.
References _airlineFeature, and stdair::AirlineFeature::getPreOptimisationMethod().
OptimisationMethod::EN_OptimisationMethod stdair::Inventory::getOptimisationMethod | ( | ) | const |
Get the optimisation method.
Definition at line 84 of file Inventory.cpp.
References _airlineFeature, and stdair::AirlineFeature::getOptimisationMethod().
PartnershipTechnique::EN_PartnershipTechnique stdair::Inventory::getPartnershipTechnique | ( | ) | const |
Get the partnership technique.
Definition at line 91 of file Inventory.cpp.
References _airlineFeature, and stdair::AirlineFeature::getPartnershipTechnique().
|
inline |
|
inline |
FlightDate * stdair::Inventory::getFlightDate | ( | const std::string & | iFlightDateKeyStr | ) | const |
Get a pointer on the FlightDate object corresponding to the given key.
const | std::string& The flight-date key. |
Definition at line 49 of file Inventory.cpp.
References stdair::BomManager::getObjectPtr().
Referenced by getFlightDate(), stdair::BomRetriever::retrieveFlightDateFromKey(), stdair::BomRetriever::retrieveFlightDateFromKey(), stdair::BomRetriever::retrieveFlightDateFromLongKey(), and stdair::BomRetriever::retrieveFlightDateFromLongKey().
FlightDate * stdair::Inventory::getFlightDate | ( | const FlightDateKey & | iFlightDateKey | ) | const |
Get a pointer on the FlightDate object corresponding to the given key.
const | FlightDateKey& The flight-date key |
Definition at line 57 of file Inventory.cpp.
References getFlightDate(), and stdair::FlightDateKey::toString().
|
inline |
Get the airline feature.
Definition at line 120 of file Inventory.hpp.
References _airlineFeature.
Referenced by stdair::BomManager::getObjectPtr().
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 140 of file Inventory.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 149 of file Inventory.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 42 of file Inventory.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 160 of file Inventory.hpp.
References _key, and stdair::InventoryKey::toString().
Referenced by stdair::BomRetriever::retrieveFullKeyFromSegmentDate(), and toString().
void stdair::Inventory::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion ) |
Serialisation.
Definition at line 160 of file CmdBomSerialiser.cpp.
References _key, and stdair::serialiseHelper().
|
friend |
Definition at line 42 of file Inventory.hpp.
|
friend |
Definition at line 43 of file Inventory.hpp.
|
friend |
Definition at line 44 of file Inventory.hpp.
|
friend |
Definition at line 45 of file Inventory.hpp.
|
friend |
Definition at line 46 of file Inventory.hpp.
|
protected |
Primary key (airline code).
Definition at line 213 of file Inventory.hpp.
Referenced by describeKey(), getAirlineCode(), getKey(), and serialize().
|
protected |
Pointer on the parent class (BomRoot).
Definition at line 218 of file Inventory.hpp.
Referenced by getParent().
|
protected |
Features specific to the airline.
Definition at line 223 of file Inventory.hpp.
Referenced by getAirlineFeature(), getForecastingMethod(), getOptimisationMethod(), getPartnershipTechnique(), getPreOptimisationMethod(), and getUnconstrainingMethod().
|
protected |
Map holding the children (FlightDate objects).
Definition at line 228 of file Inventory.hpp.
Referenced by getHolderMap().