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_T & | getKey () const |
| const AirlineCode_T & | getAirlineCode () const |
| BomAbstract *const | getParent () const |
| const HolderMap_T & | getHolderMap () const |
| FlightDate * | getFlightDate (const std::string &iFlightDateKeyStr) const |
| FlightDate * | getFlightDate (const FlightDateKey &) const |
| void | setAirlineFeature (const AirlineFeature *ioAirlineFeaturePtr) |
| 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 &) | |
| ~Inventory () | |
Protected Attributes | |
| Key_T | _key |
| BomAbstract * | _parent |
| const AirlineFeature * | _airlineFeature |
| HolderMap_T | _holderMap |
Friends | |
| class | FacBom |
| class | FacBomManager |
| class | boost::serialization::access |
Class representing the actual attributes for an airline inventory.
Definition at line 33 of file Inventory.hpp.
| typedef InventoryKey stdair::Inventory::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 43 of file Inventory.hpp.
|
protected |
Constructor.
Definition at line 27 of file Inventory.cpp.
|
protected |
Destructor.
Definition at line 31 of file Inventory.cpp.
|
inline |
|
inline |
Get the airline code (inventory/primary key).
Definition at line 54 of file Inventory.hpp.
References _key, and stdair::InventoryKey::getAirlineCode().
Referenced by stdair::OnDDate::getAirlineCode(), stdair::FlightDate::getAirlineCode(), and stdair::BomRetriever::retrieveSegmentDateFromLongKey().
|
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 43 of file Inventory.cpp.
Referenced by getFlightDate(), stdair::BomRetriever::retrieveFlightDateFromKey(), 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 51 of file Inventory.cpp.
References getFlightDate(), and stdair::FlightDateKey::toString().
|
inline |
|
inlinevirtual |
Dump a Business Object into an output stream.
| ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 108 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 117 of file Inventory.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 35 of file Inventory.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 128 of file Inventory.hpp.
References _key, and stdair::InventoryKey::toString().
Referenced by toString().
| void stdair::Inventory::serialize | ( | Archive & | ar, |
| const unsigned int | iFileVersion | ||
| ) |
|
friend |
Definition at line 34 of file Inventory.hpp.
|
friend |
Definition at line 35 of file Inventory.hpp.
|
friend |
Definition at line 36 of file Inventory.hpp.
|
protected |
Primary key (airline code).
Definition at line 180 of file Inventory.hpp.
Referenced by describeKey(), getAirlineCode(), getKey(), and serialize().
|
protected |
Pointer on the parent class (BomRoot).
Definition at line 185 of file Inventory.hpp.
Referenced by getParent().
|
protected |
Features specific to the airline.
Definition at line 190 of file Inventory.hpp.
Referenced by setAirlineFeature().
|
protected |
Map holding the children (FlightDate objects).
Definition at line 195 of file Inventory.hpp.
Referenced by getHolderMap().
1.8.1.2