StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
FlightPeriodKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_FLIGHTPERIODKEY_HPP
2 #define __STDAIR_BOM_FLIGHTPERIODKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STDAIR
10 
11 namespace stdair {
13  struct FlightPeriodKey : public KeyAbstract {
14 
15  private:
16  // /////////// Default constructor //////////
17  FlightPeriodKey ();
18  public:
19  // /////////// Construction ///////////
25 
26  // /////////// Getters //////////
29  return _flightNumber;
30  }
31 
33  const PeriodStruct& getPeriod () const {
34  return _period;
35  }
36 
37  // /////////// Display support methods /////////
40  void toStream (std::ostream& ioOut) const;
41 
44  void fromStream (std::istream& ioIn);
45 
51  const std::string toString() const;
52 
53  private:
54  // Attributes
56  FlightNumber_T _flightNumber;
57 
59  PeriodStruct _period;
60 
61  };
62 
63 }
64 #endif // __STDAIR_BOM_FLIGHTPERIODKEY_HPP
void toStream(std::ostream &ioOut) const
const PeriodStruct & getPeriod() const
unsigned short FlightNumber_T
void fromStream(std::istream &ioIn)
Handle on the StdAir library context.
const std::string toString() const
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
const FlightNumber_T & getFlightNumber() const