StdAir Logo  1.00.2
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  struct LegDateKey;
20 
22  struct ParsedKey : public KeyAbstract{
23 
24  // //////////// Getter //////////////
27 
30 
32  SegmentDateKey getSegmentKey () const;
33 
35  LegDateKey getLegKey () const;
36 
38  const Duration_T getBoardingTime () const;
39 
40  public:
41  // /////////// Display support methods /////////
47  void toStream (std::ostream& ioOut) const;
48 
54  void fromStream (std::istream& ioIn);
55 
65  const std::string toString() const;
66 
67  public:
68  // ////////////// Constructor and destructor. //////////////
69  // Default constructor
70  ParsedKey ();
71  // Defaut destructor
72  ~ParsedKey ();
73 
74  public:
75  // ///////////// Attributes ///////////////
76  std::string _fullKey;
77  std::string _airlineCode;
78  std::string _flightNumber;
79  std::string _departureDate;
80  std::string _boardingPoint;
81  std::string _offPoint;
82  std::string _boardingTime;
83  };
84 
85 }
86 #endif // __STDAIR_BOM_PARSEDKEY_HPP
void toStream(std::ostream &ioOut) const
Definition: ParsedKey.cpp:130
const Duration_T getBoardingTime() const
Definition: ParsedKey.cpp:112
Key of a given inventory, made of the airline code.
std::string _offPoint
Definition: ParsedKey.hpp:81
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
std::string _flightNumber
Definition: ParsedKey.hpp:78
Key of a given flight-date, made of a flight number and a departure date.
SegmentDateKey getSegmentKey() const
Definition: ParsedKey.cpp:98
const std::string toString() const
Definition: ParsedKey.cpp:139
FlightDateKey getFlightDateKey() const
Definition: ParsedKey.cpp:62
boost::posix_time::time_duration Duration_T
std::string _boardingPoint
Definition: ParsedKey.hpp:80
std::string _airlineCode
Definition: ParsedKey.hpp:77
std::string _fullKey
Definition: ParsedKey.hpp:76
std::string _departureDate
Definition: ParsedKey.hpp:79
Key of a given segment-date, made of an origin and a destination airports.
InventoryKey getInventoryKey() const
Definition: ParsedKey.cpp:51
LegDateKey getLegKey() const
Definition: ParsedKey.cpp:84
std::string _boardingTime
Definition: ParsedKey.hpp:82
void fromStream(std::istream &ioIn)
Definition: ParsedKey.cpp:135