StdAir Logo  1.00.16
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
stdair::Inventory Class Reference

Class representing the actual attributes for an airline inventory. More...

#include <stdair/bom/Inventory.hpp>

+ Inheritance diagram for stdair::Inventory:

Public Types

typedef InventoryKey Key_T
 

Public Member Functions

const Key_TgetKey () const
 
const AirlineCode_TgetAirlineCode () 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_TgetHolderMap () const
 
FlightDategetFlightDate (const std::string &iFlightDateKeyStr) const
 
FlightDategetFlightDate (const FlightDateKey &) const
 
AirlineFeaturegetAirlineFeature () 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
 

Detailed Description

Class representing the actual attributes for an airline inventory.

Definition at line 41 of file Inventory.hpp.

Member Typedef Documentation

◆ Key_T

Definition allowing to retrieve the associated BOM key type.

Definition at line 53 of file Inventory.hpp.

Constructor & Destructor Documentation

◆ Inventory()

stdair::Inventory::Inventory ( const Key_T & iKey)
protected

Constructor.

Definition at line 31 of file Inventory.cpp.

References _airlineFeature, _key, _parent, and Inventory().

Referenced by Inventory().

◆ ~Inventory()

stdair::Inventory::~Inventory ( )
protectedvirtual

Destructor.

Definition at line 38 of file Inventory.cpp.

Member Function Documentation

◆ getKey()

const Key_T & stdair::Inventory::getKey ( ) const
inline

Get the inventory key (airline code).

Definition at line 59 of file Inventory.hpp.

References _key.

◆ getAirlineCode()

const AirlineCode_T & stdair::Inventory::getAirlineCode ( ) const
inline

◆ getForecastingMethod()

ForecastingMethod::EN_ForecastingMethod stdair::Inventory::getForecastingMethod ( ) const

Get the forecasting method.

Definition at line 63 of file Inventory.cpp.

References _airlineFeature.

◆ getUnconstrainingMethod()

UnconstrainingMethod::EN_UnconstrainingMethod stdair::Inventory::getUnconstrainingMethod ( ) const

Get the unconstraining method.

Definition at line 70 of file Inventory.cpp.

References _airlineFeature.

◆ getPreOptimisationMethod()

PreOptimisationMethod::EN_PreOptimisationMethod stdair::Inventory::getPreOptimisationMethod ( ) const

Get the pre-optimisation method.

Definition at line 77 of file Inventory.cpp.

References _airlineFeature.

◆ getOptimisationMethod()

OptimisationMethod::EN_OptimisationMethod stdair::Inventory::getOptimisationMethod ( ) const

Get the optimisation method.

Definition at line 84 of file Inventory.cpp.

References _airlineFeature.

◆ getPartnershipTechnique()

PartnershipTechnique::EN_PartnershipTechnique stdair::Inventory::getPartnershipTechnique ( ) const

Get the partnership technique.

Definition at line 91 of file Inventory.cpp.

References _airlineFeature.

◆ getParent()

BomAbstract *const stdair::Inventory::getParent ( ) const
inline

Get the parent object.

Definition at line 84 of file Inventory.hpp.

References _parent, and stdair::BomAbstract::BomAbstract().

◆ getHolderMap()

const HolderMap_T & stdair::Inventory::getHolderMap ( ) const
inline

Get the map of children.

Definition at line 89 of file Inventory.hpp.

References _holderMap.

◆ getFlightDate() [1/2]

FlightDate * stdair::Inventory::getFlightDate ( const std::string & iFlightDateKeyStr) const

Get a pointer on the FlightDate object corresponding to the given key.

Note
The FlightDate object can be inherited from, if needed. In that case, a dynamic_cast<> may be needed.
Parameters
conststd::string& The flight-date key.
Returns
FlightDate* Found FlightDate object. NULL if not found.

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().

◆ getFlightDate() [2/2]

FlightDate * stdair::Inventory::getFlightDate ( const FlightDateKey & iFlightDateKey) const

Get a pointer on the FlightDate object corresponding to the given key.

Note
The FlightDate object can be inherited from, if needed. In that case, a dynamic_cast<> may be needed.
Parameters
constFlightDateKey& The flight-date key
Returns
FlightDate* Found FlightDate object. NULL if not found.

Definition at line 57 of file Inventory.cpp.

References getFlightDate(), and stdair::FlightDateKey::toString().

◆ getAirlineFeature()

AirlineFeature * stdair::Inventory::getAirlineFeature ( ) const
inline

Get the airline feature.

Definition at line 120 of file Inventory.hpp.

References _airlineFeature.

Referenced by stdair::BomManager::getObjectPtr().

◆ toStream()

void stdair::Inventory::toStream ( std::ostream & ioOut) const
inlinevirtual

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 140 of file Inventory.hpp.

References toString().

◆ fromStream()

void stdair::Inventory::fromStream ( std::istream & ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 149 of file Inventory.hpp.

◆ toString()

std::string stdair::Inventory::toString ( ) const
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().

◆ describeKey()

const std::string stdair::Inventory::describeKey ( ) const
inline

Get a string describing the key.

Definition at line 160 of file Inventory.hpp.

References _key.

Referenced by stdair::BomRetriever::retrieveFullKeyFromSegmentDate(), and toString().

◆ serialize()

template<class Archive>
void stdair::Inventory::serialize ( Archive & ar,
const unsigned int iFileVersion )

Friends And Related Symbol Documentation

◆ FacBom

template<typename BOM>
friend class FacBom
friend

Definition at line 42 of file Inventory.hpp.

References FacBom.

Referenced by FacBom.

◆ FacCloneBom

template<typename BOM>
friend class FacCloneBom
friend

Definition at line 43 of file Inventory.hpp.

References FacCloneBom.

Referenced by FacCloneBom.

◆ FacBomManager

friend class FacBomManager
friend

Definition at line 44 of file Inventory.hpp.

References FacBomManager.

Referenced by FacBomManager.

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 45 of file Inventory.hpp.

References boost::serialization::access.

Referenced by boost::serialization::access.

◆ boost::archive::detail::heap_allocation

template<class T>
friend struct boost::archive::detail::heap_allocation
friend

Definition at line 46 of file Inventory.hpp.

Member Data Documentation

◆ _key

Key_T stdair::Inventory::_key
protected

Primary key (airline code).

Definition at line 213 of file Inventory.hpp.

Referenced by describeKey(), getAirlineCode(), getKey(), Inventory(), and serialize().

◆ _parent

BomAbstract* stdair::Inventory::_parent
protected

Pointer on the parent class (BomRoot).

Definition at line 218 of file Inventory.hpp.

Referenced by getParent(), and Inventory().

◆ _airlineFeature

AirlineFeature* stdair::Inventory::_airlineFeature
protected

◆ _holderMap

HolderMap_T stdair::Inventory::_holderMap
protected

Map holding the children (FlightDate objects).

Definition at line 228 of file Inventory.hpp.

Referenced by getHolderMap().


The documentation for this class was generated from the following files: