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::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)


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

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


Definition at line 26 of file OriginDestinationSetKey.cpp.

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

Copy constructor.

Definition at line 32 of file OriginDestinationSetKey.cpp.

AIRTSP::OriginDestinationSetKey::~OriginDestinationSetKey ( )


Definition at line 37 of file OriginDestinationSetKey.cpp.

Member Function Documentation

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

Get the destination airport.

Definition at line 62 of file OriginDestinationSetKey.hpp.

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

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

Dump a Business Object Key into an output stream.

ostream&the output stream.

Definition at line 41 of file OriginDestinationSetKey.cpp.

References toString().

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

Read a Business Object Key from an input stream.

istream&the input stream.

Definition at line 46 of file OriginDestinationSetKey.cpp.

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

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


Definition at line 72 of file OriginDestinationSetKey.cpp.

Friends And Related Function Documentation

friend class boost::serialization::access

Definition at line 31 of file OriginDestinationSetKey.hpp.

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