StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
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
stdair::SegmentDateKey
Key of a given segment-date, made of an origin and a destination airports.
Definition: SegmentDateKey.hpp:24
stdair::ParsedKey::toString
const std::string toString() const
Definition: ParsedKey.cpp:139
stdair::ParsedKey::_fullKey
std::string _fullKey
Definition: ParsedKey.hpp:76
stdair::ParsedKey::~ParsedKey
~ParsedKey()
Definition: ParsedKey.cpp:47
stdair::ParsedKey::getBoardingTime
const Duration_T getBoardingTime() const
Definition: ParsedKey.cpp:112
stdair::ParsedKey::_departureDate
std::string _departureDate
Definition: ParsedKey.hpp:79
stdair::ParsedKey::getLegKey
LegDateKey getLegKey() const
Definition: ParsedKey.cpp:84
stdair::LegDateKey
Definition: LegDateKey.hpp:16
stdair::ParsedKey::_boardingTime
std::string _boardingTime
Definition: ParsedKey.hpp:82
stdair_date_time_types.hpp
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::ParsedKey::getInventoryKey
InventoryKey getInventoryKey() const
Definition: ParsedKey.cpp:51
stdair::ParsedKey::_offPoint
std::string _offPoint
Definition: ParsedKey.hpp:81
stdair::ParsedKey::getFlightDateKey
FlightDateKey getFlightDateKey() const
Definition: ParsedKey.cpp:62
stdair::ParsedKey::_boardingPoint
std::string _boardingPoint
Definition: ParsedKey.hpp:80
stdair::ParsedKey::_flightNumber
std::string _flightNumber
Definition: ParsedKey.hpp:78
stdair::ParsedKey::toStream
void toStream(std::ostream &ioOut) const
Definition: ParsedKey.cpp:130
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
stdair::ParsedKey
Definition: ParsedKey.hpp:22
stdair::InventoryKey
Key of a given inventory, made of the airline code.
Definition: InventoryKey.hpp:26
KeyAbstract.hpp
stdair::Duration_T
boost::posix_time::time_duration Duration_T
Definition: stdair_date_time_types.hpp:17
stdair::FlightDateKey
Key of a given flight-date, made of a flight number and a departure date.
Definition: FlightDateKey.hpp:28
stdair::ParsedKey::_airlineCode
std::string _airlineCode
Definition: ParsedKey.hpp:77
stdair::ParsedKey::ParsedKey
ParsedKey()
Definition: ParsedKey.cpp:41
stdair::ParsedKey::getSegmentKey
SegmentDateKey getSegmentKey() const
Definition: ParsedKey.cpp:98
stdair::ParsedKey::fromStream
void fromStream(std::istream &ioIn)
Definition: ParsedKey.cpp:135