Base class for the keys of Business Object Model (BOM) layer. 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. | |
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 segment-dates in general.
Definition at line 27 of file KeyAbstract.hpp.
|
inlinevirtual |
Default destructor.
Definition at line 61 of file KeyAbstract.hpp.
|
inlinevirtual |
Dump a Business Object Key into an output stream.
[in,out] | ostream& | the output stream. |
Reimplemented in stdair::FareFeaturesKey, stdair::OnDDateKey, stdair::FlightDateKey, stdair::AirlineClassListKey, stdair::InventoryKey, stdair::BomRootKey, stdair::FareFamilyKey, stdair::LegCabinKey, stdair::NestingNodeKey, stdair::NestingStructureKey, stdair::PolicyKey, stdair::SegmentCabinKey, stdair::SegmentSnapshotTableKey, stdair::SegmentDateKey, stdair::BucketKey, stdair::YieldFeaturesKey, stdair::PosChannelKey, stdair::AirportPairKey, stdair::TimePeriodKey, stdair::ParsedKey, stdair::DatePeriodKey, stdair::BookingClassKey, stdair::LegDateKey, stdair::SegmentPeriodKey, stdair::FlightPeriodKey, stdair::YieldStoreKey, stdair::AirlineFeatureKey, and stdair::BomHolderKey.
Definition at line 36 of file KeyAbstract.hpp.
|
inlinevirtual |
Read a Business Object Key from an input stream.
[in,out] | istream& | the input stream. |
Reimplemented in stdair::FareFeaturesKey, stdair::OnDDateKey, stdair::FlightDateKey, stdair::AirlineClassListKey, stdair::InventoryKey, stdair::BomRootKey, stdair::FareFamilyKey, stdair::LegCabinKey, stdair::NestingNodeKey, stdair::NestingStructureKey, stdair::PolicyKey, stdair::SegmentCabinKey, stdair::SegmentSnapshotTableKey, stdair::SegmentDateKey, stdair::BucketKey, stdair::YieldFeaturesKey, stdair::PosChannelKey, stdair::AirportPairKey, stdair::TimePeriodKey, stdair::ParsedKey, stdair::DatePeriodKey, stdair::BookingClassKey, stdair::LegDateKey, stdair::SegmentPeriodKey, stdair::FlightPeriodKey, stdair::YieldStoreKey, stdair::AirlineFeatureKey, and stdair::BomHolderKey.
Definition at line 43 of file KeyAbstract.hpp.
Referenced by operator>>().
|
inlinevirtual |
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::FareFeaturesKey, stdair::OnDDateKey, stdair::FlightDateKey, stdair::AirlineClassListKey, stdair::InventoryKey, stdair::BomRootKey, stdair::FareFamilyKey, stdair::LegCabinKey, stdair::NestingNodeKey, stdair::NestingStructureKey, stdair::PolicyKey, stdair::SegmentCabinKey, stdair::SegmentSnapshotTableKey, stdair::SegmentDateKey, stdair::BucketKey, stdair::YieldFeaturesKey, stdair::PosChannelKey, stdair::AirportPairKey, stdair::TimePeriodKey, stdair::ParsedKey, stdair::DatePeriodKey, stdair::BookingClassKey, stdair::LegDateKey, stdair::SegmentPeriodKey, stdair::FlightPeriodKey, stdair::YieldStoreKey, stdair::AirlineFeatureKey, and stdair::BomHolderKey.
Definition at line 56 of file KeyAbstract.hpp.