AirTSP Logo  1.01.0
C++ Simulated Airline Travel Solution Provider Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRTSP::ReachableUniverseKey Struct Reference

Structure representing the key of the schedule-related BOM tree root. More...

#include <airtsp/bom/ReachableUniverseKey.hpp>

+ Inheritance diagram for AIRTSP::ReachableUniverseKey:

Public Member Functions

 ReachableUniverseKey (const stdair::AirportCode_T &iOrigin)
 
 ReachableUniverseKey (const ReachableUniverseKey &)
 
 ~ReachableUniverseKey ()
 
const stdair::AirportCode_T & getBoardingPoint () const
 
void toStream (std::ostream &ioOut) const
 
void fromStream (std::istream &ioIn)
 
const std::string toString () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int iFileVersion)
 

Friends

class boost::serialization::access
 

Detailed Description

Structure representing the key of the schedule-related BOM tree root.

The ReachableUniverse is the pending, in the schedule universe, of the stdair::Inventory class. It corresponds to all the destinations which can be reached from a given geographical point. That latter is an airport for now, and the present structure specifies its key (i.e., airport code).

Definition at line 33 of file ReachableUniverseKey.hpp.

Constructor & Destructor Documentation

AIRTSP::ReachableUniverseKey::ReachableUniverseKey ( const stdair::AirportCode_T &  iOrigin)

Constructor.

Definition at line 32 of file ReachableUniverseKey.cpp.

AIRTSP::ReachableUniverseKey::ReachableUniverseKey ( const ReachableUniverseKey iKey)

Copy constructor.

Definition at line 26 of file ReachableUniverseKey.cpp.

AIRTSP::ReachableUniverseKey::~ReachableUniverseKey ( )

Destructor.

Definition at line 37 of file ReachableUniverseKey.cpp.

Member Function Documentation

const stdair::AirportCode_T& AIRTSP::ReachableUniverseKey::getBoardingPoint ( ) const
inline

Get the origin airport (from which the remaining universe may be reached).

Definition at line 66 of file ReachableUniverseKey.hpp.

Referenced by AIRTSP::ReachableUniverse::getOrigin().

void AIRTSP::ReachableUniverseKey::toStream ( std::ostream &  ioOut) const

Dump a Business Object Key into an output stream.

Parameters
ostream&the output stream.

Definition at line 41 of file ReachableUniverseKey.cpp.

References toString().

void AIRTSP::ReachableUniverseKey::fromStream ( std::istream &  ioIn)

Read a Business Object Key from an input stream.

Parameters
istream&the input stream.

Definition at line 46 of file ReachableUniverseKey.cpp.

const std::string AIRTSP::ReachableUniverseKey::toString ( ) const

Get the serialised version of the Business Object Key.

That string is unique, at the level of a given Business Object, when among children of a given parent Business Object.

For instance, "H" and "K" allow to differentiate among two marketing classes for the same segment-date.

Definition at line 50 of file ReachableUniverseKey.cpp.

Referenced by AIRTSP::ReachableUniverse::describeKey(), toStream(), and AIRTSP::ReachableUniverse::toString().

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

Serialisation.

Definition at line 72 of file ReachableUniverseKey.cpp.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 34 of file ReachableUniverseKey.hpp.


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