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 | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for an airline flight-date.
Definition at line 35 of file FlightDate.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 46 of file FlightDate.hpp.
|
protected |
Main constructor.
Definition at line 29 of file FlightDate.cpp.
|
protectedvirtual |
Destructor.
Definition at line 33 of file FlightDate.cpp.
|
inline |
|
inline |
Get the parent object.
Definition at line 57 of file FlightDate.hpp.
References _parent.
Referenced by getAirlineCode().
|
inline |
Get the flight number (part of the primary key).
Definition at line 62 of file FlightDate.hpp.
References _key, and stdair::FlightDateKey::getFlightNumber().
Referenced by stdair::BomJSONExport::jsonExportFlightDateList(), and stdair::BomJSONExport::jsonExportFlightDateObjects().
|
inline |
Get the flight date (part of the primary key).
Definition at line 67 of file FlightDate.hpp.
References _key, and stdair::FlightDateKey::getDepartureDate().
Referenced by stdair::LegDate::describeRoutingKey(), stdair::BomJSONExport::jsonExportFlightDateList(), and stdair::BomJSONExport::jsonExportFlightDateObjects().
const AirlineCode_T & stdair::FlightDate::getAirlineCode | ( | ) | const |
Get the airline code (key of the parent object).
Definition at line 37 of file FlightDate.cpp.
References stdair::Inventory::getAirlineCode(), and getParent().
Referenced by stdair::LegDate::getAirlineCode(), and stdair::BomJSONExport::jsonExportFlightDateObjects().
|
inline |
Get the map of children holders.
Definition at line 83 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 52 of file FlightDate.cpp.
Referenced by getLegDate(), stdair::BomRetriever::retrieveDummyLegCabin(), and stdair::BomRetriever::retrieveOperatingLegDateFromLongKey().
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 59 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 65 of file FlightDate.cpp.
Referenced by getSegmentDate(), stdair::BomRetriever::retrieveDummySegmentCabin(), stdair::BomRetriever::retrieveSegmentDateFromKey(), and stdair::BomRetriever::retrieveSegmentDateFromLongKey().
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 73 of file FlightDate.cpp.
References getSegmentDate(), and stdair::SegmentDateKey::toString().
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 142 of file FlightDate.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 151 of file FlightDate.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 45 of file FlightDate.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 162 of file FlightDate.hpp.
References _key, and stdair::FlightDateKey::toString().
Referenced by toString().
void stdair::FlightDate::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
|
friend |
Definition at line 36 of file FlightDate.hpp.
|
friend |
Definition at line 37 of file FlightDate.hpp.
|
friend |
Definition at line 38 of file FlightDate.hpp.
|
friend |
Definition at line 39 of file FlightDate.hpp.
|
protected |
Primary key (flight number and departure date).
Definition at line 216 of file FlightDate.hpp.
Referenced by describeKey(), getDepartureDate(), getFlightNumber(), getKey(), and serialize().
|
protected |
Pointer on the parent class (Inventory).
Definition at line 221 of file FlightDate.hpp.
Referenced by getParent().
|
protected |
Map holding the children (SegmentDate and LegDate objects).
Definition at line 226 of file FlightDate.hpp.
Referenced by getHolderMap().