Utility class to extract key structures from strings. More...
#include <stdair/bom/BomKeyManager.hpp>
Static Public Member Functions | |
static ParsedKey | extractKeys (const std::string &iFullKeyStr) |
static InventoryKey | extractInventoryKey (const std::string &iFullKeyStr) |
static FlightDateKey | extractFlightDateKey (const std::string &iFullKeyStr) |
static SegmentDateKey | extractSegmentDateKey (const std::string &iFullKeyStr) |
Utility class to extract key structures from strings.
ParsedKey stdair::BomKeyManager::extractKeys | ( | const std::string & | iFullKeyStr | ) | [static] |
Build a ParsedKey structure from a full key string which includes an inventory key, flight-date key elements, segment-date key elements.
Definition at line 30 of file BomKeyManager.cpp.
References stdair::ParsedKey::_fullKey, stdair::DEFAULT_KEY_TOKEN_DELIMITER, stdair::ParsedKey::_airlineCode, stdair::ParsedKey::_flightNumber, stdair::ParsedKey::_departureDate, stdair::ParsedKey::_boardingPoint, stdair::ParsedKey::_offPoint, and stdair::ParsedKey::_boardingTime.
Referenced by extractInventoryKey(), extractFlightDateKey(), extractSegmentDateKey(), stdair::BomRetriever::retrieveSegmentDateFromLongKey(), stdair::TravelSolutionStruct::describe(), and stdair::TravelSolutionStruct::display().
InventoryKey stdair::BomKeyManager::extractInventoryKey | ( | const std::string & | iFullKeyStr | ) | [static] |
Build a InventoryKey structure from a (full) key string.
The full key string gathers airline code, flight number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.
const | std::string& The full key string. |
Definition at line 78 of file BomKeyManager.cpp.
References extractKeys(), and stdair::ParsedKey::getInventoryKey().
Referenced by stdair::BomRetriever::retrieveInventoryFromLongKey().
FlightDateKey stdair::BomKeyManager::extractFlightDateKey | ( | const std::string & | iFullKeyStr | ) | [static] |
Build a FlightDateKey structure from a (full) key string.
The full key string gathers airline code, flight number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.
const | std::string& The full key string. |
Definition at line 86 of file BomKeyManager.cpp.
References extractKeys(), and stdair::ParsedKey::getFlightDateKey().
Referenced by stdair::BomRetriever::retrieveFlightDateFromLongKey(), and stdair::OnDDateKey::getDate().
SegmentDateKey stdair::BomKeyManager::extractSegmentDateKey | ( | const std::string & | iFullKeyStr | ) | [static] |
Build a SegmentDateKey structure from a (full) key string.
The full key string gathers airline code, flight number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.
const | std::string& The full key string. |
Definition at line 94 of file BomKeyManager.cpp.
References extractKeys(), and stdair::ParsedKey::getSegmentKey().
Referenced by stdair::BomRetriever::retrieveSegmentDateFromLongKey(), stdair::OnDDateKey::getOrigin(), and stdair::OnDDateKey::getDestination().