AirSched Logo  0.1.4
C++ Simulated Airline Schedule Manager Library
AIRSCHED::OriginDestinationSetKey Struct Reference

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

#include <airsched/bom/OriginDestinationSetKey.hpp>

Inheritance diagram for AIRSCHED::OriginDestinationSetKey:

List of all members.

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

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

Constructor.

Definition at line 26 of file OriginDestinationSetKey.cpp.

AIRSCHED::OriginDestinationSetKey::OriginDestinationSetKey ( const OriginDestinationSetKey iKey)

Copy constructor.

Definition at line 32 of file OriginDestinationSetKey.cpp.

AIRSCHED::OriginDestinationSetKey::~OriginDestinationSetKey ( )

Destructor.

Definition at line 37 of file OriginDestinationSetKey.cpp.


Member Function Documentation

const stdair::AirportCode_T& AIRSCHED::OriginDestinationSetKey::getOffPoint ( ) const [inline]

Get the destination airport.

Definition at line 62 of file OriginDestinationSetKey.hpp.

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

void AIRSCHED::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().

void AIRSCHED::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.

const std::string AIRSCHED::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 AIRSCHED::OriginDestinationSet::describeKey(), toStream(), and AIRSCHED::OriginDestinationSet::toString().

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

Serialisation.

Definition at line 72 of file OriginDestinationSetKey.cpp.


Friends And Related Function Documentation

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: