$treeview $search $mathjax
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.
virtual stdair::KeyAbstract::~KeyAbstract | ( | ) | [inline, virtual] |
Default destructor.
Definition at line 61 of file KeyAbstract.hpp.
virtual void stdair::KeyAbstract::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a Business Object Key into an output stream.
[in,out] | ostream& | the output stream. |
Reimplemented in stdair::AirlineClassListKey, stdair::AirlineFeatureKey, stdair::AirportPairKey, stdair::BomHolderKey, stdair::BomRootKey, stdair::BookingClassKey, stdair::BucketKey, stdair::DatePeriodKey, stdair::FareFamilyKey, stdair::FareFeaturesKey, stdair::FlightDateKey, stdair::FlightPeriodKey, stdair::InventoryKey, stdair::LegCabinKey, stdair::LegDateKey, stdair::NestingNodeKey, stdair::NestingStructureKey, stdair::OnDDateKey, stdair::ParsedKey, stdair::PolicyKey, stdair::PosChannelKey, stdair::SegmentCabinKey, stdair::SegmentDateKey, stdair::SegmentPeriodKey, stdair::SegmentSnapshotTableKey, stdair::TimePeriodKey, stdair::YieldFeaturesKey, and stdair::YieldStoreKey.
Definition at line 36 of file KeyAbstract.hpp.
virtual void stdair::KeyAbstract::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object Key from an input stream.
[in,out] | istream& | the input stream. |
Reimplemented in stdair::AirlineClassListKey, stdair::AirlineFeatureKey, stdair::AirportPairKey, stdair::BomHolderKey, stdair::BomRootKey, stdair::BookingClassKey, stdair::BucketKey, stdair::DatePeriodKey, stdair::FareFamilyKey, stdair::FareFeaturesKey, stdair::FlightDateKey, stdair::FlightPeriodKey, stdair::InventoryKey, stdair::LegCabinKey, stdair::LegDateKey, stdair::NestingNodeKey, stdair::NestingStructureKey, stdair::OnDDateKey, stdair::ParsedKey, stdair::PolicyKey, stdair::PosChannelKey, stdair::SegmentCabinKey, stdair::SegmentDateKey, stdair::SegmentPeriodKey, stdair::SegmentSnapshotTableKey, stdair::TimePeriodKey, stdair::YieldFeaturesKey, and stdair::YieldStoreKey.
Definition at line 43 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::FareFamilyKey, stdair::FareFeaturesKey, stdair::FlightDateKey, stdair::FlightPeriodKey, stdair::InventoryKey, stdair::LegCabinKey, stdair::LegDateKey, stdair::NestingNodeKey, stdair::NestingStructureKey, stdair::OnDDateKey, stdair::ParsedKey, stdair::PolicyKey, stdair::PosChannelKey, stdair::SegmentCabinKey, stdair::SegmentDateKey, stdair::SegmentPeriodKey, stdair::SegmentSnapshotTableKey, stdair::TimePeriodKey, stdair::YieldFeaturesKey, and stdair::YieldStoreKey.
Definition at line 56 of file KeyAbstract.hpp.