StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
BomKeyManager.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_BOMKEYMANAGER_HPP
2 #define __STDAIR_BOM_BOMKEYMANAGER_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 // StdAir
11 
12 namespace stdair {
13 
15  struct BomRootKey;
16  struct InventoryKey;
17  struct FlightDateKey;
18  struct LegDateKey;
19  struct SegmentDateKey;
20  struct LegCabinKey;
21  struct SegmentCabinKey;
22  struct FareFamilyKey;
23  struct BookingClassKey;
24  struct ParsedKey;
25 
29  class BomKeyManager {
30  public:
31  // //////////////// Key management support methods /////////////////
36  static ParsedKey extractKeys (const std::string& iFullKeyStr);
37 
49  static InventoryKey extractInventoryKey (const std::string& iFullKeyStr);
50 
62  static FlightDateKey extractFlightDateKey (const std::string& iFullKeyStr);
63 
75  static SegmentDateKey extractSegmentDateKey (const std::string& iFullKeyStr);
76 
88  static LegDateKey extractLegDateKey (const std::string& iFullKeyStr);
89 
90  };
91 
92 }
93 #endif // __STDAIR_BOM_BOMKEYMANAGER_HPP
Handle on the StdAir library context.
static InventoryKey extractInventoryKey(const std::string &iFullKeyStr)
static ParsedKey extractKeys(const std::string &iFullKeyStr)
Key of a given inventory, made of the airline code.
Key of a given flight-date, made of a flight number and a departure date.
static FlightDateKey extractFlightDateKey(const std::string &iFullKeyStr)
Key of a given segment-date, made of an origin and a destination airports.
static LegDateKey extractLegDateKey(const std::string &iFullKeyStr)
static SegmentDateKey extractSegmentDateKey(const std::string &iFullKeyStr)
Utility class to extract key structures from strings.