StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:

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 ( )
inlinevirtual

Default destructor.

Definition at line 61 of file KeyAbstract.hpp.


Member Function Documentation

virtual const std::string stdair::KeyAbstract::toString ( ) const
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.

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


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