$treeview $search $mathjax
StdAir Logo  1.00.1
$projectbrief
$projectbrief
$searchbox

stdair::KeyAbstract Struct Reference

Base class for the keys of Business Object Model (BOM) layer. More...

#include <stdair/bom/KeyAbstract.hpp>

Inheritance diagram for stdair::KeyAbstract:

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 stdair::YieldStoreKey List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

virtual stdair::KeyAbstract::~KeyAbstract (  )  [inline, virtual]

Default destructor.

Definition at line 61 of file KeyAbstract.hpp.


Member Function Documentation

virtual void stdair::KeyAbstract::toStream ( std::ostream &  ioOut  )  const [inline, virtual]

virtual void stdair::KeyAbstract::fromStream ( std::istream &  ioIn  )  [inline, virtual]

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.

Parameters:
[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.


The documentation for this struct was generated from the following file: