StdAir Logo  0.43.0
C++ Standard Airline IT Library
stdair::FlightPeriod Class Reference

#include <stdair/bom/FlightPeriod.hpp>

+ Inheritance diagram for stdair::FlightPeriod:

List of all members.

Public Types

typedef FlightPeriodKey Key_T

Public Member Functions

const Key_TgetKey () const
BomAbstract *const getParent () const
const FlightNumber_TgetFlightNumber () const
const PeriodStructgetPeriod () const
const HolderMap_TgetHolderMap () const
void toStream (std::ostream &ioOut) const
void fromStream (std::istream &ioIn)
std::string toString () const
const std::string describeKey () const

Protected Member Functions

 FlightPeriod (const Key_T &)
 FlightPeriod (const FlightPeriod &)
 ~FlightPeriod ()

Protected Attributes

Key_T _key
BomAbstract_parent
HolderMap_T _holderMap

Friends

class FacBom
class FacBomManager

Detailed Description

Class representing the actual attributes for an airline flight-period.


Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 22 of file FlightPeriod.hpp.


Constructor & Destructor Documentation

stdair::FlightPeriod::FlightPeriod ( const Key_T iKey) [protected]

Default constructors.

Definition at line 12 of file FlightPeriod.cpp.

stdair::FlightPeriod::FlightPeriod ( const FlightPeriod ) [protected]
stdair::FlightPeriod::~FlightPeriod ( ) [protected]

Destructor.

Definition at line 17 of file FlightPeriod.cpp.


Member Function Documentation

const Key_T& stdair::FlightPeriod::getKey ( ) const [inline]

Get the flight-period key.

Definition at line 27 of file FlightPeriod.hpp.

References _key.

BomAbstract* const stdair::FlightPeriod::getParent ( ) const [inline]

Get the parent object.

Definition at line 30 of file FlightPeriod.hpp.

References _parent.

const FlightNumber_T& stdair::FlightPeriod::getFlightNumber ( ) const [inline]

Get the flight number (part of the primary key).

Definition at line 33 of file FlightPeriod.hpp.

References _key, and stdair::FlightPeriodKey::getFlightNumber().

const PeriodStruct& stdair::FlightPeriod::getPeriod ( ) const [inline]

Get the departure period (part of the key).

Definition at line 38 of file FlightPeriod.hpp.

References _key, and stdair::FlightPeriodKey::getPeriod().

const HolderMap_T& stdair::FlightPeriod::getHolderMap ( ) const [inline]

Get the map of children holders.

Definition at line 41 of file FlightPeriod.hpp.

References _holderMap.

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

Dump a Business Object into an output stream.

Parameters:
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 48 of file FlightPeriod.hpp.

References toString().

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

Read a Business Object from an input stream.

Parameters:
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 52 of file FlightPeriod.hpp.

std::string stdair::FlightPeriod::toString ( ) const [virtual]

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 21 of file FlightPeriod.cpp.

References describeKey().

Referenced by toStream().

const std::string stdair::FlightPeriod::describeKey ( ) const [inline]

Get a string describing the key.

Definition at line 58 of file FlightPeriod.hpp.

References _key, and stdair::FlightPeriodKey::toString().

Referenced by toString().


Friends And Related Function Documentation

friend class FacBom [friend]

Definition at line 16 of file FlightPeriod.hpp.

friend class FacBomManager [friend]

Definition at line 17 of file FlightPeriod.hpp.


Member Data Documentation

Definition at line 69 of file FlightPeriod.hpp.

Referenced by getKey(), getFlightNumber(), getPeriod(), and describeKey().

Definition at line 70 of file FlightPeriod.hpp.

Referenced by getParent().

Definition at line 71 of file FlightPeriod.hpp.

Referenced by getHolderMap().


The documentation for this class was generated from the following files: