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

Class representing the actual attributes for an airport-pair. More...

#include <stdair/bom/AirportPair.hpp>

Inheritance diagram for stdair::AirportPair:

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_TgetKey () const
const AirportCode_TgetBoardingPoint () const
const AirportCode_TgetOffPoint () const
BomAbstract *const getParent () const
const HolderMap_TgetHolderMap () 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

Detailed Description

Class representing the actual attributes for an airport-pair.

Definition at line 18 of file AirportPair.hpp.

Member Typedef Documentation

◆ Key_T

Definition allowing to retrieve the associated BOM key type.

Definition at line 28 of file AirportPair.hpp.

Constructor & Destructor Documentation

◆ AirportPair()

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

Main constructor.

Definition at line 27 of file AirportPair.cpp.

References _key, _parent, and AirportPair().

Referenced by AirportPair().

◆ ~AirportPair()

stdair::AirportPair::~AirportPair ( )
protectedvirtual

Destructor.

Definition at line 32 of file AirportPair.cpp.

Member Function Documentation

◆ toStream()

void stdair::AirportPair::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 37 of file AirportPair.hpp.

References toString().

◆ fromStream()

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

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 46 of file AirportPair.hpp.

◆ toString()

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

◆ describeKey()

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

Get a string describing the key.

Definition at line 57 of file AirportPair.hpp.

References _key.

Referenced by toString().

◆ getKey()

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

Get the primary key (origin airport, destination airport).

Definition at line 66 of file AirportPair.hpp.

References _key.

◆ getBoardingPoint()

const AirportCode_T & stdair::AirportPair::getBoardingPoint ( ) const
inline

Get the origin airport.

Definition at line 73 of file AirportPair.hpp.

References _key.

◆ getOffPoint()

const AirportCode_T & stdair::AirportPair::getOffPoint ( ) const
inline

Get the destination airport.

Definition at line 80 of file AirportPair.hpp.

References _key.

◆ getParent()

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

Get a reference on the parent object instance.

Definition at line 87 of file AirportPair.hpp.

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

◆ getHolderMap()

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

Get a reference on the children holder.

Definition at line 94 of file AirportPair.hpp.

References _holderMap.

◆ FacBom

template<typename BOM>
friend class FacBom
friend

Definition at line 19 of file AirportPair.hpp.

References FacBom.

Referenced by FacBom.

◆ FacCloneBom

template<typename BOM>
friend class FacCloneBom
friend

Definition at line 20 of file AirportPair.hpp.

References FacCloneBom.

Referenced by FacCloneBom.

◆ FacBomManager

friend class FacBomManager
friend

Definition at line 21 of file AirportPair.hpp.

References FacBomManager.

Referenced by FacBomManager.

Member Data Documentation

◆ _key

Key_T stdair::AirportPair::_key
protected

Primary key (flight number and departure date).

Definition at line 124 of file AirportPair.hpp.

Referenced by AirportPair(), describeKey(), getBoardingPoint(), getKey(), and getOffPoint().

◆ _parent

BomAbstract* stdair::AirportPair::_parent
protected

Pointer on the parent class (Inventory).

Definition at line 129 of file AirportPair.hpp.

Referenced by AirportPair(), and getParent().

◆ _holderMap

HolderMap_T stdair::AirportPair::_holderMap
protected

Map holding the children.

Definition at line 134 of file AirportPair.hpp.

Referenced by getHolderMap().


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