$treeview $search $mathjax
#include <stdair/bom/SegmentCabinKey.hpp>
Inheritance diagram for stdair::SegmentCabinKey:
Public Member Functions | |
SegmentCabinKey (const CabinCode_T &iCabinCode) | |
SegmentCabinKey (const SegmentCabinKey &) | |
~SegmentCabinKey () | |
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 |
Definition at line 26 of file SegmentCabinKey.hpp.
stdair::SegmentCabinKey::SegmentCabinKey | ( | const CabinCode_T & | iCabinCode | ) |
Constructor.
Definition at line 23 of file SegmentCabinKey.cpp.
stdair::SegmentCabinKey::SegmentCabinKey | ( | const SegmentCabinKey & | ) |
Copy constructor.
Definition at line 28 of file SegmentCabinKey.cpp.
stdair::SegmentCabinKey::~SegmentCabinKey | ( | ) |
Destructor.
Definition at line 33 of file SegmentCabinKey.cpp.
const CabinCode_T& stdair::SegmentCabinKey::getCabinCode | ( | ) | const [inline] |
Get the cabin code.
Definition at line 56 of file SegmentCabinKey.hpp.
Referenced by stdair::SegmentCabin::getCabinCode().
void stdair::SegmentCabinKey::toStream | ( | std::ostream & | ioOut | ) | const [virtual] |
Dump a Business Object Key into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 37 of file SegmentCabinKey.cpp.
References toString().
void stdair::SegmentCabinKey::fromStream | ( | std::istream & | ioIn | ) | [virtual] |
Read a Business Object Key from an input stream.
istream& | the input stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 42 of file SegmentCabinKey.cpp.
const std::string stdair::SegmentCabinKey::toString | ( | ) | const [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 SegmentCabinKey.cpp.
Referenced by stdair::SegmentCabin::describeKey(), and toStream().
void stdair::SegmentCabinKey::serialize | ( | Archive & | ar, | |
const unsigned int | iFileVersion | |||
) |
Serialisation.
Definition at line 68 of file SegmentCabinKey.cpp.
friend class boost::serialization::access [friend] |
Definition at line 27 of file SegmentCabinKey.hpp.