#include <stdair/bom/FlightPeriodKey.hpp>
Public Member Functions | |
FlightPeriodKey (const FlightNumber_T &, const PeriodStruct &) | |
FlightPeriodKey (const FlightPeriodKey &) | |
~FlightPeriodKey () | |
const FlightNumber_T & | getFlightNumber () const |
const PeriodStruct & | getPeriod () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
const std::string | toString () const |
Key of flight-period.
Definition at line 13 of file FlightPeriodKey.hpp.
stdair::FlightPeriodKey::FlightPeriodKey | ( | const FlightNumber_T & | iFlightNumber, |
const PeriodStruct & | iPeriod | ||
) |
Constructors.
Definition at line 10 of file FlightPeriodKey.cpp.
stdair::FlightPeriodKey::FlightPeriodKey | ( | const FlightPeriodKey & | iKey | ) |
Definition at line 16 of file FlightPeriodKey.cpp.
stdair::FlightPeriodKey::~FlightPeriodKey | ( | ) |
Destructor.
Definition at line 21 of file FlightPeriodKey.cpp.
|
inline |
Get the flight number.
Definition at line 28 of file FlightPeriodKey.hpp.
Referenced by stdair::FlightPeriod::getFlightNumber().
|
inline |
Get the active days-of-week.
Definition at line 33 of file FlightPeriodKey.hpp.
Referenced by stdair::FlightPeriod::getPeriod().
|
virtual |
Dump a Business Object Key into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 25 of file FlightPeriodKey.cpp.
References toString().
|
virtual |
Read a Business Object Key from an input stream.
istream& | the input stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 30 of file FlightPeriodKey.cpp.
|
virtual |
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-period.
Reimplemented from stdair::KeyAbstract.
Definition at line 34 of file FlightPeriodKey.cpp.
References stdair::PeriodStruct::describeShort().
Referenced by stdair::FlightPeriod::describeKey(), and toStream().