StdAir Logo  1.00.19
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
14namespace stdair {
16 struct InventoryKey;
17 struct FlightDateKey;
18 struct SegmentDateKey;
19 struct LegDateKey;
20
22 struct ParsedKey : public KeyAbstract{
23
24 // //////////// Getter //////////////
27
30
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
Handle on the StdAir library context.
boost::posix_time::time_duration Duration_T
Key of a given flight-date, made of a flight number and a departure date.
Key of a given inventory, made of the airline code.
Base class for the keys of Business Object Model (BOM) layer.
std::string _boardingPoint
Definition ParsedKey.hpp:80
std::string _flightNumber
Definition ParsedKey.hpp:78
const std::string toString() const
SegmentDateKey getSegmentKey() const
Definition ParsedKey.cpp:98
InventoryKey getInventoryKey() const
Definition ParsedKey.cpp:51
const Duration_T getBoardingTime() const
std::string _departureDate
Definition ParsedKey.hpp:79
std::string _fullKey
Definition ParsedKey.hpp:76
std::string _airlineCode
Definition ParsedKey.hpp:77
std::string _offPoint
Definition ParsedKey.hpp:81
LegDateKey getLegKey() const
Definition ParsedKey.cpp:84
void toStream(std::ostream &ioOut) const
void fromStream(std::istream &ioIn)
std::string _boardingTime
Definition ParsedKey.hpp:82
FlightDateKey getFlightDateKey() const
Definition ParsedKey.cpp:62
Key of a given segment-date, made of an origin and a destination airports.