Key of a given leg-cabin, made of a cabin code (only). More...
#include <stdair/bom/LegCabinKey.hpp>
Public Member Functions | |
LegCabinKey (const CabinCode_T &iCabinCode) | |
LegCabinKey (const LegCabinKey &) | |
~LegCabinKey () | |
const CabinCode_T & | getCabinCode () 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 |
Key of a given leg-cabin, made of a cabin code (only).
Definition at line 26 of file LegCabinKey.hpp.
stdair::LegCabinKey::LegCabinKey | ( | const CabinCode_T & | iCabinCode | ) |
Constructor.
Definition at line 23 of file LegCabinKey.cpp.
stdair::LegCabinKey::LegCabinKey | ( | const LegCabinKey & | iKey | ) |
Copy constructor.
Definition at line 28 of file LegCabinKey.cpp.
stdair::LegCabinKey::~LegCabinKey | ( | ) |
Destructor.
Definition at line 33 of file LegCabinKey.cpp.
|
inline |
Get the cabin code.
Definition at line 56 of file LegCabinKey.hpp.
Referenced by stdair::LegCabin::getCabinCode().
|
virtual |
Dump a Business Object Key into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 37 of file LegCabinKey.cpp.
References toString().
|
virtual |
Read a Business Object Key from an input stream.
istream& | the input stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 42 of file LegCabinKey.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-date.
Reimplemented from stdair::KeyAbstract.
Definition at line 46 of file LegCabinKey.cpp.
Referenced by stdair::LegCabin::describeKey(), stdair::LegDate::getLegCabin(), and toStream().
void stdair::LegCabinKey::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
Serialisation.
Definition at line 68 of file LegCabinKey.cpp.
|
friend |
Definition at line 27 of file LegCabinKey.hpp.