Class representing the actual attributes for a fare time-period. More...
#include <stdair/bom/TimePeriod.hpp>
Public Types | |
typedef TimePeriodKey | 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 Time_T & | getTimeRangeStart () const |
const Time_T & | getTimeRangeEnd () const |
bool | isDepartureTimeValid (const Time_T &) const |
Protected Member Functions | |
TimePeriod (const Key_T &) | |
virtual | ~TimePeriod () |
Protected Attributes | |
Key_T | _key |
BomAbstract * | _parent |
HolderMap_T | _holderMap |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
Class representing the actual attributes for a fare time-period.
Definition at line 18 of file TimePeriod.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 28 of file TimePeriod.hpp.
|
protected |
Main constructor.
Definition at line 27 of file TimePeriod.cpp.
|
protectedvirtual |
Destructor.
Definition at line 32 of file TimePeriod.cpp.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 38 of file TimePeriod.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 47 of file TimePeriod.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 36 of file TimePeriod.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 58 of file TimePeriod.hpp.
References _key, and stdair::TimePeriodKey::toString().
Referenced by toString().
|
inline |
Get the primary key (time range start, time range end).
Definition at line 67 of file TimePeriod.hpp.
References _key.
|
inline |
Get a reference on the parent object instance.
Definition at line 74 of file TimePeriod.hpp.
References _parent.
|
inline |
Get a reference on the children holder.
Definition at line 81 of file TimePeriod.hpp.
References _holderMap.
|
inline |
Get the time range start.
Definition at line 88 of file TimePeriod.hpp.
References _key, and stdair::TimePeriodKey::getTimeRangeStart().
Referenced by isDepartureTimeValid().
|
inline |
Get the time range end
Definition at line 95 of file TimePeriod.hpp.
References _key, and stdair::TimePeriodKey::getTimeRangeEnd().
Referenced by isDepartureTimeValid().
bool stdair::TimePeriod::isDepartureTimeValid | ( | const Time_T & | iFlightTime | ) | const |
Check if the given departure time is included in the departure period of the segment path.
Definition at line 44 of file TimePeriod.cpp.
References getTimeRangeEnd(), getTimeRangeStart(), and STDAIR_LOG_DEBUG.
|
friend |
Definition at line 19 of file TimePeriod.hpp.
|
friend |
Definition at line 20 of file TimePeriod.hpp.
|
friend |
Definition at line 21 of file TimePeriod.hpp.
|
protected |
Primary key (flight number and departure date).
Definition at line 133 of file TimePeriod.hpp.
Referenced by describeKey(), getKey(), getTimeRangeEnd(), and getTimeRangeStart().
|
protected |
Pointer on the parent class (Inventory).
Definition at line 138 of file TimePeriod.hpp.
Referenced by getParent().
|
protected |
Map holding the children.
Definition at line 143 of file TimePeriod.hpp.
Referenced by getHolderMap().