Class representing the actual attributes for an airline flight-date. More...
#include <stdair/bom/FlightDate.hpp>
Public Types | |
typedef FlightDateKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const FlightNumber_T & | getFlightNumber () const |
const Date_T & | getDepartureDate () const |
const AirlineCode_T & | getAirlineCode () const |
const HolderMap_T & | getHolderMap () const |
LegDate * | getLegDate (const std::string &iLegDateKeyStr) const |
LegDate * | getLegDate (const LegDateKey &) const |
SegmentDate * | getSegmentDate (const std::string &iSegmentDateKeyStr) const |
SegmentDate * | getSegmentDate (const SegmentDateKey &) const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
FlightDate (const Key_T &) | |
virtual | ~FlightDate () |
Protected Attributes | |
Key_T | _key |
BomAbstract * | _parent |
HolderMap_T | _holderMap |
Friends | |
class | FacBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for an airline flight-date.
Definition allowing to retrieve the associated BOM key type.
Definition at line 45 of file FlightDate.hpp.
stdair::FlightDate::FlightDate | ( | const Key_T & | iKey | ) | [protected] |
Main constructor.
Definition at line 30 of file FlightDate.cpp.
stdair::FlightDate::~FlightDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 34 of file FlightDate.cpp.
const Key_T& stdair::FlightDate::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::FlightDate::getParent | ( | ) | const [inline] |
Get the parent object.
Definition at line 56 of file FlightDate.hpp.
References _parent.
Referenced by getAirlineCode().
const FlightNumber_T& stdair::FlightDate::getFlightNumber | ( | ) | const [inline] |
Get the flight number (part of the primary key).
Definition at line 61 of file FlightDate.hpp.
References _key, and stdair::FlightDateKey::getFlightNumber().
Referenced by stdair::BomJSONExport::jsonExport().
const Date_T& stdair::FlightDate::getDepartureDate | ( | ) | const [inline] |
Get the flight date (part of the primary key).
Definition at line 66 of file FlightDate.hpp.
References _key, and stdair::FlightDateKey::getDepartureDate().
Referenced by stdair::BomJSONExport::jsonExport().
const AirlineCode_T & stdair::FlightDate::getAirlineCode | ( | ) | const |
Get the airline code (key of the parent object).
Definition at line 38 of file FlightDate.cpp.
References getParent(), and stdair::Inventory::getAirlineCode().
Referenced by stdair::BomJSONExport::jsonExport(), and stdair::LegDate::getAirlineCode().
const HolderMap_T& stdair::FlightDate::getHolderMap | ( | ) | const [inline] |
Get the map of children holders.
Definition at line 82 of file FlightDate.hpp.
References _holderMap.
LegDate * stdair::FlightDate::getLegDate | ( | const std::string & | iLegDateKeyStr | ) | const |
Get a pointer on the LegDate object corresponding to the given key.
const | std::string& The leg-date key. |
Definition at line 53 of file FlightDate.cpp.
Referenced by stdair::BomRetriever::retrieveDummyLegCabin(), and getLegDate().
LegDate * stdair::FlightDate::getLegDate | ( | const LegDateKey & | iLegDateKey | ) | const |
Get a pointer on the LegDate object corresponding to the given key.
const | LegDateKey& The leg-date key |
Definition at line 60 of file FlightDate.cpp.
References getLegDate(), and stdair::LegDateKey::toString().
SegmentDate * stdair::FlightDate::getSegmentDate | ( | const std::string & | iSegmentDateKeyStr | ) | const |
Get a pointer on the SegmentDate object corresponding to the given key.
const | std::string& The segment-date key. |
Definition at line 66 of file FlightDate.cpp.
Referenced by stdair::BomRetriever::retrieveSegmentDateFromLongKey(), stdair::BomRetriever::retrieveSegmentDateFromKey(), stdair::BomRetriever::retrieveDummySegmentCabin(), and getSegmentDate().
SegmentDate * stdair::FlightDate::getSegmentDate | ( | const SegmentDateKey & | iSegmentDateKey | ) | const |
Get a pointer on the SegmentDate object corresponding to the given key.
const | SegmentDateKey& The segment-date key |
Definition at line 74 of file FlightDate.cpp.
References getSegmentDate(), and stdair::SegmentDateKey::toString().
void stdair::FlightDate::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 141 of file FlightDate.hpp.
References toString().
void stdair::FlightDate::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 150 of file FlightDate.hpp.
std::string stdair::FlightDate::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 46 of file FlightDate.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::FlightDate::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 161 of file FlightDate.hpp.
References _key, and stdair::FlightDateKey::toString().
Referenced by toString().
void stdair::FlightDate::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
friend class FacBom [friend] |
Definition at line 36 of file FlightDate.hpp.
friend class FacBomManager [friend] |
Definition at line 37 of file FlightDate.hpp.
friend class boost::serialization::access [friend] |
Definition at line 38 of file FlightDate.hpp.
Key_T stdair::FlightDate::_key [protected] |
Primary key (flight number and departure date).
Definition at line 215 of file FlightDate.hpp.
Referenced by getKey(), getFlightNumber(), getDepartureDate(), describeKey(), and serialize().
BomAbstract* stdair::FlightDate::_parent [protected] |
Pointer on the parent class (Inventory).
Definition at line 220 of file FlightDate.hpp.
Referenced by getParent().
HolderMap_T stdair::FlightDate::_holderMap [protected] |
Map holding the children (SegmentDate and LegDate objects).
Definition at line 225 of file FlightDate.hpp.
Referenced by getHolderMap().