Class representing the actual attributes for a fare date-period. More...
#include <stdair/bom/DatePeriod.hpp>
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_T & | getKey () const |
BomAbstract *const | getParent () const |
const HolderMap_T & | getHolderMap () const |
const DatePeriod_T & | getDatePeriod () 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 |
Class representing the actual attributes for a fare date-period.
Definition allowing to retrieve the associated BOM key type.
Definition at line 27 of file DatePeriod.hpp.
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.
void stdair::DatePeriod::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a Business Object into an output stream.
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.
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] |
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().
friend class FacBom [friend] |
Definition at line 19 of file DatePeriod.hpp.
friend class FacBomManager [friend] |
Definition at line 20 of file DatePeriod.hpp.
Key_T stdair::DatePeriod::_key [protected] |
Primary key (date period).
Definition at line 125 of file DatePeriod.hpp.
Referenced by describeKey(), getKey(), and getDatePeriod().
BomAbstract* stdair::DatePeriod::_parent [protected] |
Pointer on the parent class.
Definition at line 130 of file DatePeriod.hpp.
Referenced by getParent().
HolderMap_T stdair::DatePeriod::_holderMap [protected] |
Map holding the children.
Definition at line 135 of file DatePeriod.hpp.
Referenced by getHolderMap().