AirTSP Logo  1.01.10
C++ Simulated Airline Travel Solution Provider (TSP) Library
Loading...
Searching...
No Matches
AIRTSP::OriginDestinationSetKey Struct Reference

Structure representing the key of a sub-network. More...

#include <airtsp/bom/OriginDestinationSetKey.hpp>

+ Inheritance diagram for AIRTSP::OriginDestinationSetKey:

Public Member Functions

 OriginDestinationSetKey (const stdair::AirportCode_T &iDestination)
 
 OriginDestinationSetKey (const OriginDestinationSetKey &)
 
 ~OriginDestinationSetKey ()
 
const stdair::AirportCode_T & getOffPoint () 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 a sub-network.

As the origin airport code is already part of the ReachableUniverse (parent) class, that key is only made of the destination airport code.

Definition at line 30 of file OriginDestinationSetKey.hpp.

Constructor & Destructor Documentation

◆ OriginDestinationSetKey() [1/2]

AIRTSP::OriginDestinationSetKey::OriginDestinationSetKey ( const stdair::AirportCode_T & iDestination)

Constructor.

Definition at line 25 of file OriginDestinationSetKey.cpp.

◆ OriginDestinationSetKey() [2/2]

AIRTSP::OriginDestinationSetKey::OriginDestinationSetKey ( const OriginDestinationSetKey & iKey)

Copy constructor.

Definition at line 31 of file OriginDestinationSetKey.cpp.

◆ ~OriginDestinationSetKey()

AIRTSP::OriginDestinationSetKey::~OriginDestinationSetKey ( )

Destructor.

Definition at line 37 of file OriginDestinationSetKey.cpp.

Member Function Documentation

◆ getOffPoint()

const stdair::AirportCode_T & AIRTSP::OriginDestinationSetKey::getOffPoint ( ) const
inline

Get the destination airport.

Definition at line 62 of file OriginDestinationSetKey.hpp.

Referenced by AIRTSP::OriginDestinationSet::getDestination().

◆ toStream()

void AIRTSP::OriginDestinationSetKey::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 OriginDestinationSetKey.cpp.

References toString().

◆ fromStream()

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

Read a Business Object Key from an input stream.

Parameters
istream&the input stream.

Definition at line 46 of file OriginDestinationSetKey.cpp.

◆ toString()

const std::string AIRTSP::OriginDestinationSetKey::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 OriginDestinationSetKey.cpp.

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

◆ serialize()

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

Serialisation.

Definition at line 72 of file OriginDestinationSetKey.cpp.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 31 of file OriginDestinationSetKey.hpp.


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