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

Class representing the actual attributes for a fare date-period. More...

#include <stdair/bom/DatePeriod.hpp>

+ Inheritance diagram for stdair::DatePeriod:

List of all members.

Public Types

typedef DatePeriodKey Key_T

Public Member Functions

void toStream (std::ostream &ioOut) const
void fromStream (std::istream &ioIn)
std::string toString () const
const std::string describeKey () const
const Key_TgetKey () const
BomAbstract *const getParent () const
const HolderMap_TgetHolderMap () const
const DatePeriod_TgetDatePeriod () const
bool isDepartureDateValid (const Date_T &) const

Protected Member Functions

 DatePeriod (const Key_T &)
virtual ~DatePeriod ()

Protected Attributes

Key_T _key
BomAbstract_parent
HolderMap_T _holderMap

Friends

class FacBom
class FacBomManager

Detailed Description

Class representing the actual attributes for a fare date-period.


Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 27 of file DatePeriod.hpp.


Constructor & Destructor Documentation

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

Main constructor.

Definition at line 28 of file DatePeriod.cpp.

stdair::DatePeriod::~DatePeriod ( ) [protected, virtual]

Destructor.

Definition at line 33 of file DatePeriod.cpp.


Member Function Documentation

void stdair::DatePeriod::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 36 of file DatePeriod.hpp.

References toString().

void stdair::DatePeriod::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 45 of file DatePeriod.hpp.

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

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 37 of file DatePeriod.cpp.

References describeKey().

Referenced by toStream().

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

Get a string describing the key.

Definition at line 56 of file DatePeriod.hpp.

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

Referenced by toString().

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

Get the primary key (date period).

Definition at line 65 of file DatePeriod.hpp.

References _key.

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

Get a reference on the parent object instance.

Definition at line 72 of file DatePeriod.hpp.

References _parent.

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

Get a reference on the children holder.

Definition at line 79 of file DatePeriod.hpp.

References _holderMap.

const DatePeriod_T& stdair::DatePeriod::getDatePeriod ( ) const [inline]

Get the date period.

Definition at line 86 of file DatePeriod.hpp.

References _key, and stdair::DatePeriodKey::getDatePeriod().

Referenced by isDepartureDateValid().

bool stdair::DatePeriod::isDepartureDateValid ( const Date_T iFlightDate) const

Check if the given departure date is included in the departure period of the segment path.

Definition at line 45 of file DatePeriod.cpp.

References getDatePeriod().

Referenced by stdair::BomRetriever::retrieveDatePeriodListFromKey().


Friends And Related Function Documentation

friend class FacBom [friend]

Definition at line 19 of file DatePeriod.hpp.

friend class FacBomManager [friend]

Definition at line 20 of file DatePeriod.hpp.


Member Data Documentation

Primary key (date period).

Definition at line 125 of file DatePeriod.hpp.

Referenced by describeKey(), getKey(), and getDatePeriod().

Pointer on the parent class.

Definition at line 130 of file DatePeriod.hpp.

Referenced by getParent().

Map holding the children.

Definition at line 135 of file DatePeriod.hpp.

Referenced by getHolderMap().


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