Structure representing the key of the schedule-related BOM tree root. More...
#include <airtsp/bom/ReachableUniverseKey.hpp>
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 |
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.
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.
|
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.
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.
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().
void AIRTSP::ReachableUniverseKey::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
Serialisation.
Definition at line 72 of file ReachableUniverseKey.cpp.
|
friend |
Definition at line 34 of file ReachableUniverseKey.hpp.