Base class for the keys of Business Object Model (BOM) layer.
Note that that key allows to differentiate two objects at the same level only. For instance, the segment-date key allows to differentiate two segment-dates under a given flight-date, but does not allow to differentiate two segemnt-dates in general.
More...
#include <stdair/bom/KeyAbstract.hpp>
Public Member Functions | |
virtual void | toStream (std::ostream &ioOut) const |
Dump a Business Object Key into an output stream. | |
virtual void | fromStream (std::istream &ioIn) |
Read a Business Object Key from an input stream. | |
virtual const std::string | 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. | |
virtual | ~KeyAbstract () |
Default destructor. |
Base class for the keys of Business Object Model (BOM) layer.
Note that that key allows to differentiate two objects at the same level only. For instance, the segment-date key allows to differentiate two segment-dates under a given flight-date, but does not allow to differentiate two segemnt-dates in general.
Definition at line 26 of file KeyAbstract.hpp.
virtual stdair::KeyAbstract::~KeyAbstract | ( | ) | [inline, virtual] |
Default destructor.
Definition at line 56 of file KeyAbstract.hpp.
virtual void stdair::KeyAbstract::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a Business Object Key into an output stream.
inout] | ostream& the output stream. |
Reimplemented in stdair::AirlineClassListKey, stdair::AirlineFeatureKey, stdair::AirportPairKey, stdair::BomHolderKey, stdair::BomRootKey, stdair::BookingClassKey, stdair::BucketKey, stdair::DatePeriodKey, stdair::EventQueueKey, stdair::FareFamilyKey, stdair::FareFeaturesKey, stdair::FlightDateKey, stdair::FlightPeriodKey, stdair::GuillotineBlockKey, stdair::InventoryKey, stdair::LegCabinKey, stdair::LegDateKey, stdair::OnDDateKey, stdair::ParsedKey, stdair::PosChannelKey, stdair::SegmentCabinKey, stdair::SegmentDateKey, stdair::SegmentPeriodKey, stdair::TimePeriodKey, stdair::YieldFeaturesKey, and stdair::YieldStoreKey.
Definition at line 34 of file KeyAbstract.hpp.
Referenced by operator<<().
virtual void stdair::KeyAbstract::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object Key from an input stream.
inout] | istream& the input stream. |
Reimplemented in stdair::AirlineClassListKey, stdair::AirlineFeatureKey, stdair::AirportPairKey, stdair::BomHolderKey, stdair::BomRootKey, stdair::BookingClassKey, stdair::BucketKey, stdair::DatePeriodKey, stdair::EventQueueKey, stdair::FareFamilyKey, stdair::FareFeaturesKey, stdair::FlightDateKey, stdair::FlightPeriodKey, stdair::GuillotineBlockKey, stdair::InventoryKey, stdair::LegCabinKey, stdair::LegDateKey, stdair::OnDDateKey, stdair::ParsedKey, stdair::PosChannelKey, stdair::SegmentCabinKey, stdair::SegmentDateKey, stdair::SegmentPeriodKey, stdair::TimePeriodKey, stdair::YieldFeaturesKey, and stdair::YieldStoreKey.
Definition at line 40 of file KeyAbstract.hpp.
Referenced by operator>>().
virtual const std::string stdair::KeyAbstract::toString | ( | ) | const [inline, 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.
[out] | const | std::string The serialised version of the Business Object Key. |
Reimplemented in stdair::AirlineClassListKey, stdair::AirlineFeatureKey, stdair::AirportPairKey, stdair::BomHolderKey, stdair::BomRootKey, stdair::BookingClassKey, stdair::BucketKey, stdair::DatePeriodKey, stdair::EventQueueKey, stdair::FareFamilyKey, stdair::FareFeaturesKey, stdair::FlightDateKey, stdair::FlightPeriodKey, stdair::GuillotineBlockKey, stdair::InventoryKey, stdair::LegCabinKey, stdair::LegDateKey, stdair::OnDDateKey, stdair::ParsedKey, stdair::PosChannelKey, stdair::SegmentCabinKey, stdair::SegmentDateKey, stdair::SegmentPeriodKey, stdair::TimePeriodKey, stdair::YieldFeaturesKey, and stdair::YieldStoreKey.
Definition at line 51 of file KeyAbstract.hpp.