AirTSP Logo  1.01.14
C++ Simulated Airline Travel Solution Provider (TSP) Library
Loading...
Searching...
No Matches
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

◆ ReachableUniverseKey() [1/2]

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

Constructor.

Definition at line 31 of file ReachableUniverseKey.cpp.

◆ ReachableUniverseKey() [2/2]

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

Copy constructor.

Definition at line 25 of file ReachableUniverseKey.cpp.

◆ ~ReachableUniverseKey()

AIRTSP::ReachableUniverseKey::~ReachableUniverseKey ( )

Destructor.

Definition at line 37 of file ReachableUniverseKey.cpp.

Member Function Documentation

◆ getBoardingPoint()

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.

◆ toStream()

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

◆ fromStream()

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.

◆ toString()

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

◆ serialize()

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

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 34 of file ReachableUniverseKey.hpp.

References boost::serialization::access.

Referenced by boost::serialization::access.


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