StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
stdair::BomKeyManager Class Reference

Utility class to extract key structures from strings. More...

#include <stdair/bom/BomKeyManager.hpp>

List of all members.

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)

Detailed Description

Utility class to extract key structures from strings.

Definition at line 29 of file BomKeyManager.hpp.


Member Function Documentation

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.

Parameters:
conststd::string& The full key string.
Returns:
InventoryKey The just built InventoryKey structure.

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.

Parameters:
conststd::string& The full key string.
Returns:
FlightDateKey The just built FlightDateKey structure.

Definition at line 86 of file BomKeyManager.cpp.

References extractKeys(), and stdair::ParsedKey::getFlightDateKey().

Referenced by stdair::OnDDateKey::getDate(), and stdair::BomRetriever::retrieveFlightDateFromLongKey().

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.

Parameters:
conststd::string& The full key string.
Returns:
SegmentDateKey The just built SegmentDateKey structure.

Definition at line 94 of file BomKeyManager.cpp.

References extractKeys(), and stdair::ParsedKey::getSegmentKey().

Referenced by stdair::OnDDateKey::getDestination(), stdair::OnDDateKey::getOrigin(), and stdair::BomRetriever::retrieveSegmentDateFromLongKey().


The documentation for this class was generated from the following files: