Class representing the actual attributes for an airport-pair. More...
#include <stdair/bom/AirportPair.hpp>
Public Types | |
typedef AirportPairKey | Key_T |
Public Member Functions | |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
const Key_T & | getKey () const |
const AirportCode_T & | getBoardingPoint () const |
const AirportCode_T & | getOffPoint () const |
BomAbstract *const | getParent () const |
const HolderMap_T & | getHolderMap () const |
Protected Member Functions | |
AirportPair (const Key_T &) | |
virtual | ~AirportPair () |
Protected Attributes | |
Key_T | _key |
BomAbstract * | _parent |
HolderMap_T | _holderMap |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
Class representing the actual attributes for an airport-pair.
Definition at line 18 of file AirportPair.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 28 of file AirportPair.hpp.
|
protected |
Main constructor.
Definition at line 27 of file AirportPair.cpp.
|
protectedvirtual |
Destructor.
Definition at line 32 of file AirportPair.cpp.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 37 of file AirportPair.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 46 of file AirportPair.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 36 of file AirportPair.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 57 of file AirportPair.hpp.
References _key, and stdair::AirportPairKey::toString().
Referenced by toString().
|
inline |
Get the primary key (origin airport, destination airport).
Definition at line 66 of file AirportPair.hpp.
References _key.
|
inline |
Get the origin airport.
Definition at line 73 of file AirportPair.hpp.
References _key, and stdair::AirportPairKey::getBoardingPoint().
|
inline |
Get the destination airport.
Definition at line 80 of file AirportPair.hpp.
References _key, and stdair::AirportPairKey::getOffPoint().
|
inline |
Get a reference on the parent object instance.
Definition at line 87 of file AirportPair.hpp.
References _parent.
|
inline |
Get a reference on the children holder.
Definition at line 94 of file AirportPair.hpp.
References _holderMap.
|
friend |
Definition at line 19 of file AirportPair.hpp.
|
friend |
Definition at line 20 of file AirportPair.hpp.
|
friend |
Definition at line 21 of file AirportPair.hpp.
|
protected |
Primary key (flight number and departure date).
Definition at line 124 of file AirportPair.hpp.
Referenced by describeKey(), getBoardingPoint(), getKey(), and getOffPoint().
|
protected |
Pointer on the parent class (Inventory).
Definition at line 129 of file AirportPair.hpp.
Referenced by getParent().
|
protected |
Map holding the children.
Definition at line 134 of file AirportPair.hpp.
Referenced by getHolderMap().