StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ParsedKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_PARSEDKEY_HPP
2 #define __STDAIR_BOM_PARSEDKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 // StdAir
13 
14 namespace stdair {
16  struct InventoryKey;
17  struct FlightDateKey;
18  struct SegmentDateKey;
19 
21  struct ParsedKey : public KeyAbstract{
22 
23  // //////////// Getter //////////////
26 
29 
32 
34  const Duration_T getBoardingTime () const;
35 
36  public:
37  // /////////// Display support methods /////////
43  void toStream (std::ostream& ioOut) const;
44 
50  void fromStream (std::istream& ioIn);
51 
61  const std::string toString() const;
62 
63  public:
64  // ////////////// Constructor and destructor. //////////////
65  // Default constructor
66  ParsedKey ();
67  // Defaut destructor
68  ~ParsedKey ();
69 
70  public:
71  // ///////////// Attributes ///////////////
72  std::string _fullKey;
73  std::string _airlineCode;
74  std::string _flightNumber;
75  std::string _departureDate;
76  std::string _boardingPoint;
77  std::string _offPoint;
78  std::string _boardingTime;
79  };
80 
81 }
82 #endif // __STDAIR_BOM_PARSEDKEY_HPP