#include <stdair/bom/BookingClassKey.hpp>
Public Member Functions | |
BookingClassKey (const ClassCode_T &iClassCode) | |
BookingClassKey (const BookingClassKey &) | |
~BookingClassKey () | |
const ClassCode_T & | getClassCode () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
const std::string | toString () const |
Key of a given leg-cabin, made of a cabin code.
Definition at line 16 of file BookingClassKey.hpp.
stdair::BookingClassKey::BookingClassKey | ( | const ClassCode_T & | iClassCode | ) |
Constructor.
Definition at line 24 of file BookingClassKey.cpp.
stdair::BookingClassKey::BookingClassKey | ( | const BookingClassKey & | iKey | ) |
Default copy constructor.
Definition at line 19 of file BookingClassKey.cpp.
stdair::BookingClassKey::~BookingClassKey | ( | ) |
Destructor.
Definition at line 29 of file BookingClassKey.cpp.
|
inline |
Get the class code.
Definition at line 34 of file BookingClassKey.hpp.
Referenced by stdair::BookingClass::getClassCode().
|
virtual |
Dump a Business Object Key into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 33 of file BookingClassKey.cpp.
References toString().
|
virtual |
Read a Business Object Key from an input stream.
istream& | the input stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 38 of file BookingClassKey.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-cabin.
Reimplemented from stdair::KeyAbstract.
Definition at line 42 of file BookingClassKey.cpp.
Referenced by stdair::BookingClass::describeKey(), and toStream().