Utility class to retrieve StdAir objects. More...
#include <stdair/bom/BomRetriever.hpp>
Utility class to retrieve StdAir objects.
Definition at line 36 of file BomRetriever.hpp.
|
static |
Retrieve an Inventory object 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 | BomRoot& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 31 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractInventoryKey(), and stdair::BomRoot::getInventory().
Referenced by retrieveFlightDateFromLongKey(), and retrievePartnerSegmentDateFromLongKey().
|
static |
Retrieve an Inventory object 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 | Inventory& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 46 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractInventoryKey(), and stdair::InventoryKey::getAirlineCode().
|
static |
Retrieve an Inventory object from an InventoryKey structure.
const | BomRoot& The root of the BOM tree. |
const | InventoryKey& The key. |
Definition at line 63 of file BomRetriever.cpp.
References stdair::BomRoot::getInventory().
Referenced by retrieveAirlineFeatureFromKey(), retrieveDummyLegCabin(), retrieveDummySegmentCabin(), and retrieveFlightDateFromKeySet().
|
static |
Retrieve an Inventory object from an InventoryKey structure.
const | BomRoot& The root of the BOM tree. |
const | AirlineCode_T& The key. |
Definition at line 75 of file BomRetriever.cpp.
References stdair::BomRoot::getInventory().
|
static |
Retrieve an Airline Feature object from an airline code.
const | BomRoot& The root of the BOM tree. |
const | AirlineCode_T& The key. |
Definition at line 88 of file BomRetriever.cpp.
References retrieveInventoryFromKey().
Referenced by stdair::ConfigHolderStruct::updateAirlineFeatures().
|
static |
Retrieve a FlightDate object 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 | BomRoot& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 109 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractFlightDateKey(), stdair::Inventory::getFlightDate(), and retrieveInventoryFromLongKey().
Referenced by retrieveSegmentDateFromLongKey().
|
static |
Retrieve a FlightDate object from a set of keys.
const | BomRoot& The root of the BOM tree. |
const | AirlineCode_T& The key. |
const | FlightNumber_T& Part of the key. |
const | Date_T& Part of the key. |
Definition at line 132 of file BomRetriever.cpp.
References retrieveFlightDateFromKey(), and retrieveInventoryFromKey().
Referenced by stdair::STDAIR_Service::check(), stdair::STDAIR_Service::csvDisplay(), and stdair::STDAIR_Service::jsonExportFlightDateObjects().
|
static |
Retrieve a FlightDate object 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 | Inventory& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 155 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractFlightDateKey(), and stdair::Inventory::getFlightDate().
|
static |
Retrieve a FlightDate object from an FlightDateKey structure.
const | Inventory& The root of the BOM tree. |
const | FlightDateKey& The key. |
Definition at line 170 of file BomRetriever.cpp.
References stdair::Inventory::getFlightDate().
Referenced by retrieveDummyLegCabin(), retrieveDummySegmentCabin(), retrieveFlightDateFromKeySet(), and retrieveSegmentDateFromLongKey().
|
static |
Retrieve a FlightDate object from an FlightDateKey structure.
const | Inventory& The root of the BOM tree. |
const | FlightNumber_T& Part of the key. |
const | Date_T& Part of the key. |
Definition at line 182 of file BomRetriever.cpp.
References stdair::Inventory::getFlightDate().
|
static |
Retrieve a LegDate object from an FlightDate structure.
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 | FlightDate& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 266 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractLegDateKey(), and stdair::FlightDate::getLegDate().
|
static |
Retrieve a partner SegmentDate object from an Inventory structure.
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 | Inventory& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 281 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractInventoryKey(), stdair::InventoryKey::getAirlineCode(), retrieveInventoryFromLongKey(), and retrieveSegmentDateFromLongKey().
|
static |
Retrieve a SegmentDate object from a (full) key string.
The full key string gathers airline code, segment number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.
const | BomRoot& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 196 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractSegmentDateKey(), stdair::FlightDate::getSegmentDate(), and retrieveFlightDateFromLongKey().
Referenced by retrieveBookingClassFromLongKey(), and retrievePartnerSegmentDateFromLongKey().
|
static |
Retrieve a SegmentDate object from a (full) key string.
The full key string gathers airline code, segment number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.
const | Inventory& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 219 of file BomRetriever.cpp.
References stdair::ParsedKey::_airlineCode, stdair::BomKeyManager::extractKeys(), stdair::Inventory::getAirlineCode(), stdair::ParsedKey::getFlightDateKey(), stdair::ParsedKey::getSegmentKey(), retrieveFlightDateFromKey(), retrieveSegmentDateFromKey(), STDAIR_LOG_DEBUG, stdair::SegmentDateKey::toString(), and stdair::FlightDateKey::toString().
|
static |
Retrieve a SegmentDate object from a (full) key string.
The full key string gathers airline code, segment number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.
const | FlightDate& The root of the BOM tree. |
const | std::string& The full key string. |
Definition at line 251 of file BomRetriever.cpp.
References stdair::BomKeyManager::extractSegmentDateKey(), and stdair::FlightDate::getSegmentDate().
|
static |
Retrieve a SegmentDate object from an SegmentDateKey structure.
const | FlightDate& The root of the BOM tree. |
const | SegmentDateKey& The key. |
Definition at line 307 of file BomRetriever.cpp.
References stdair::FlightDate::getSegmentDate().
Referenced by retrieveSegmentDateFromLongKey().
|
static |
Retrieve a SegmentDate object from an SegmentDateKey structure.
const | FlightDate& The root of the BOM tree. |
const | AirportCode_T& Origin, part of the key. |
const | AirportCode_T& Destination, part of the key. |
Definition at line 319 of file BomRetriever.cpp.
References stdair::FlightDate::getSegmentDate().
|
static |
Retrieve a BookingClass object from a (full) key string.
The full key string gathers airline code, segment number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.
Besides being attached to segment-cabin objects (and fare family objects, when they exist), the booking-class objects must also be attached directly to the segment-date.
Hence, if an assertion fails within that method call, chances are that the booking-class objects have not been attached to the segment-date objects. Check, for instance, the CmdBomManager::buildSampleBom() to see how that should be properly done.
const | Inventory& The root of the BOM tree. |
const | std::string& Part of the full key string. |
const | ClassCode_T& Part of the full key string. |
Definition at line 333 of file BomRetriever.cpp.
References retrieveSegmentDateFromLongKey().
|
static |
Retrieve an AirportPair object from an AirportPair structure.
const | BomRoot& The root of the BOM tree. |
const | AirportCode_T& Origin, part of the key. |
const | AirportCode_T& Destination, part of the key. |
Definition at line 355 of file BomRetriever.cpp.
References stdair::AirportPairKey::toString().
Referenced by retrieveDatePeriodListFromKeySet().
|
static |
Retrieve a list of date-period corresponding to a flight date.
const | AirportPair& The root of the BOM tree. |
const | Date_T& Departure Date of the flight |
stdair::DatePeriodList_T& | List of DatePeriod to display. |
Definition at line 373 of file BomRetriever.cpp.
References stdair::DatePeriod::isDepartureDateValid().
Referenced by retrieveDatePeriodListFromKeySet().
|
static |
Retrieve a list of date-period from a set of keys.
const | BomRoot& The root of the BOM tree. |
const | AirportCode_T& Part of the AirportPair key: the origin airport |
const | AirportCode_T& Part of the AirportPair key: the destination airport. |
const | Date_T& Departure date of the flight |
stdair::DatePeriodList_T& | List of DatePeriod to display. |
Definition at line 404 of file BomRetriever.cpp.
References retrieveAirportPairFromKeySet(), and retrieveDatePeriodListFromKey().
Referenced by stdair::STDAIR_Service::check(), and stdair::STDAIR_Service::csvDisplay().
|
static |
Retrieve one sample leg-cabin of the dummy inventory of "XX".
stdair::BomRoot& | The BOM tree. |
const | bool Boolean to choose the sample leg-cabin. True: the dummy leg-cabin with fare families. False: the dummy leg-cabin without fare families. By default the value is false. |
Definition at line 427 of file BomRetriever.cpp.
References stdair::DEFAULT_AIRLINE_CODE, stdair::DEFAULT_CABIN_CODE, stdair::DEFAULT_DEPARTURE_DATE, stdair::DEFAULT_FLIGHT_NUMBER, stdair::DEFAULT_FLIGHT_NUMBER_FF, stdair::DEFAULT_ORIGIN, stdair::LegDate::getLegCabin(), stdair::FlightDate::getLegDate(), retrieveFlightDateFromKey(), and retrieveInventoryFromKey().
|
static |
Retrieve one sample segment-cabin of the dummy inventory of "XX".
stdair::BomRoot& | The BOM tree. |
const | bool Boolean to choose the sample segment-cabin. True: the dummy segment-cabin with fare families. False: the dummy segment-cabin without fare families. By default the value is false. |
Definition at line 502 of file BomRetriever.cpp.
References stdair::DEFAULT_AIRLINE_CODE, stdair::DEFAULT_CABIN_CODE, stdair::DEFAULT_DEPARTURE_DATE, stdair::DEFAULT_DESTINATION, stdair::DEFAULT_FLIGHT_NUMBER, stdair::DEFAULT_FLIGHT_NUMBER_FF, stdair::DEFAULT_ORIGIN, stdair::FlightDate::getSegmentDate(), retrieveFlightDateFromKey(), retrieveInventoryFromKey(), and stdair::SegmentCabinKey::toString().
|
static |
Retrieve the whole key of the segment date, that is to say a string composed of the inventory key, the flight date key and the segment date key.
const | SegmentDate& Segment date to retrieve the whole key for. |
Definition at line 578 of file BomRetriever.cpp.
References stdair::DEFAULT_KEY_SUB_FLD_DELIMITER, stdair::Inventory::describeKey(), and stdair::SegmentDate::describeKey().