StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stdair::FlightPeriod Class Reference

#include <stdair/bom/FlightPeriod.hpp>

+ Inheritance diagram for stdair::FlightPeriod:

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.

Definition at line 15 of file FlightPeriod.hpp.

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
inlinevirtual

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

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

Key_T stdair::FlightPeriod::_key
protected

Definition at line 69 of file FlightPeriod.hpp.

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

BomAbstract* stdair::FlightPeriod::_parent
protected

Definition at line 70 of file FlightPeriod.hpp.

Referenced by getParent().

HolderMap_T stdair::FlightPeriod::_holderMap
protected

Definition at line 71 of file FlightPeriod.hpp.

Referenced by getHolderMap().


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