StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
SegmentPeriodKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_SEGMENTPERIODKEY_HPP
2 #define __STDAIR_BOM_SEGMENTPERIODKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
10 
11 namespace stdair {
12 
14  struct SegmentPeriodKey : public KeyAbstract {
15 
16  private:
17  // /////////// Default constructor //////////
18  SegmentPeriodKey () { };
19  public:
20  // /////////// Construction ///////////
26 
27  // /////////// Getters //////////
30  return _boardingPoint;
31  }
32 
34  const AirportCode_T& getOffPoint() const {
35  return _offPoint;
36  }
37 
38  // /////////// Display support methods /////////
41  void toStream (std::ostream& ioOut) const;
42 
45  void fromStream (std::istream& ioIn);
46 
52  const std::string toString() const;
53 
54  private:
55  // Attributes
57  AirportCode_T _boardingPoint;
58 
60  AirportCode_T _offPoint;
61  };
62 
63 }
64 #endif // __STDAIR_BOM_SEGMENTPERIODKEY_HPP
LocationCode_T AirportCode_T
void toStream(std::ostream &ioOut) const
const AirportCode_T & getBoardingPoint() const
const AirportCode_T & getOffPoint() const
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
void fromStream(std::istream &ioIn)