StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stdair::AirportPair Class Reference

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

#include <stdair/bom/AirportPair.hpp>

+ Inheritance diagram for stdair::AirportPair:

List of all members.

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

class FacBom
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

Definition allowing to retrieve the associated BOM key type.

Definition at line 28 of file AirportPair.hpp.


Constructor & Destructor Documentation

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

Main constructor.

Definition at line 27 of file AirportPair.cpp.

stdair::AirportPair::~AirportPair ( )
protectedvirtual

Destructor.

Definition at line 32 of file AirportPair.cpp.


Member Function Documentation

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

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.

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

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

Get a string describing the key.

Definition at line 57 of file AirportPair.hpp.

References _key, and stdair::AirportPairKey::toString().

Referenced by toString().

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.

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

Get the origin airport.

Definition at line 73 of file AirportPair.hpp.

References _key, and stdair::AirportPairKey::getBoardingPoint().

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

Get the destination airport.

Definition at line 80 of file AirportPair.hpp.

References _key, and stdair::AirportPairKey::getOffPoint().

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.

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.


Friends And Related Function Documentation

friend class FacBom
friend

Definition at line 19 of file AirportPair.hpp.

friend class FacCloneBom
friend

Definition at line 20 of file AirportPair.hpp.

friend class FacBomManager
friend

Definition at line 21 of file AirportPair.hpp.


Member Data Documentation

Key_T stdair::AirportPair::_key
protected

Primary key (flight number and departure date).

Definition at line 124 of file AirportPair.hpp.

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

BomAbstract* stdair::AirportPair::_parent
protected

Pointer on the parent class (Inventory).

Definition at line 129 of file AirportPair.hpp.

Referenced by getParent().

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: