#include <stdair/bom/ParsedKey.hpp>
Public Member Functions | |
InventoryKey | getInventoryKey () const |
FlightDateKey | getFlightDateKey () const |
SegmentDateKey | getSegmentKey () const |
const Duration_T | getBoardingTime () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
const std::string | toString () const |
ParsedKey () | |
~ParsedKey () | |
Public Attributes | |
std::string | _fullKey |
std::string | _airlineCode |
std::string | _flightNumber |
std::string | _departureDate |
std::string | _boardingPoint |
std::string | _offPoint |
std::string | _boardingTime |
Structure which holds the results/keys after the parsing.
stdair::ParsedKey::ParsedKey | ( | ) |
Definition at line 40 of file ParsedKey.cpp.
stdair::ParsedKey::~ParsedKey | ( | ) |
Definition at line 46 of file ParsedKey.cpp.
InventoryKey stdair::ParsedKey::getInventoryKey | ( | ) | const |
Inventory key.
Definition at line 50 of file ParsedKey.cpp.
References _airlineCode, STDAIR_LOG_ERROR, _fullKey, STDAIR_LOG_DEBUG, and toString().
Referenced by stdair::BomKeyManager::extractInventoryKey().
FlightDateKey stdair::ParsedKey::getFlightDateKey | ( | ) | const |
Flight-date key.
Definition at line 61 of file ParsedKey.cpp.
References _departureDate, stdair::TokeniserDashSeparator(), STDAIR_LOG_ERROR, _fullKey, STDAIR_LOG_DEBUG, toString(), and _flightNumber.
Referenced by stdair::BomKeyManager::extractFlightDateKey(), and stdair::BomRetriever::retrieveSegmentDateFromLongKey().
SegmentDateKey stdair::ParsedKey::getSegmentKey | ( | ) | const |
Segment-date key.
Definition at line 83 of file ParsedKey.cpp.
References _boardingPoint, _offPoint, STDAIR_LOG_ERROR, _fullKey, STDAIR_LOG_DEBUG, and toString().
Referenced by stdair::BomKeyManager::extractSegmentDateKey(), and stdair::BomRetriever::retrieveSegmentDateFromLongKey().
const Duration_T stdair::ParsedKey::getBoardingTime | ( | ) | const |
Boarding time.
Definition at line 97 of file ParsedKey.cpp.
References _boardingTime, stdair::TokeniserTimeSeparator(), STDAIR_LOG_ERROR, _fullKey, STDAIR_LOG_DEBUG, and toString().
void stdair::ParsedKey::toStream | ( | std::ostream & | ioOut | ) | const [virtual] |
Dump a Business Object Key into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 115 of file ParsedKey.cpp.
References toString().
void stdair::ParsedKey::fromStream | ( | std::istream & | ioIn | ) | [virtual] |
Read a Business Object Key from an input stream.
istream& | the input stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 120 of file ParsedKey.cpp.
const std::string stdair::ParsedKey::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object Key.
That string is unique, at the level of a given Business Object, when among children of a given parent Business Object.
For instance, "H" and "K" allow to differentiate among two marketing classes for the same segment-date.
Reimplemented from stdair::KeyAbstract.
Definition at line 124 of file ParsedKey.cpp.
References _airlineCode, stdair::DEFAULT_KEY_FLD_DELIMITER, _flightNumber, stdair::DEFAULT_KEY_SUB_FLD_DELIMITER, _departureDate, _boardingPoint, _offPoint, and _boardingTime.
Referenced by getInventoryKey(), getFlightDateKey(), getSegmentKey(), getBoardingTime(), toStream(), stdair::TravelSolutionStruct::describe(), and stdair::TravelSolutionStruct::display().
Definition at line 72 of file ParsedKey.hpp.
Referenced by stdair::BomKeyManager::extractKeys(), getInventoryKey(), getFlightDateKey(), getSegmentKey(), and getBoardingTime().
Definition at line 73 of file ParsedKey.hpp.
Referenced by stdair::BomKeyManager::extractKeys(), stdair::BomRetriever::retrieveSegmentDateFromLongKey(), getInventoryKey(), and toString().
Definition at line 74 of file ParsedKey.hpp.
Referenced by stdair::BomKeyManager::extractKeys(), getFlightDateKey(), and toString().
Definition at line 75 of file ParsedKey.hpp.
Referenced by stdair::BomKeyManager::extractKeys(), getFlightDateKey(), and toString().
Definition at line 76 of file ParsedKey.hpp.
Referenced by stdair::BomKeyManager::extractKeys(), getSegmentKey(), and toString().
Definition at line 77 of file ParsedKey.hpp.
Referenced by stdair::BomKeyManager::extractKeys(), getSegmentKey(), and toString().
Definition at line 78 of file ParsedKey.hpp.
Referenced by stdair::BomKeyManager::extractKeys(), getBoardingTime(), and toString().