StdAir Logo  1.00.18
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
11namespace stdair {
12
14 struct SegmentPeriodKey : public KeyAbstract {
15
16 private:
17 // /////////// Default constructor //////////
18 SegmentPeriodKey () { };
19 public:
20 // /////////// Construction ///////////
22 SegmentPeriodKey (const AirportCode_T&, const AirportCode_T&);
23 SegmentPeriodKey (const SegmentPeriodKey&);
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
Handle on the StdAir library context.
LocationCode_T AirportCode_T
Base class for the keys of Business Object Model (BOM) layer.
void toStream(std::ostream &ioOut) const
const std::string toString() const
const AirportCode_T & getOffPoint() const
const AirportCode_T & getBoardingPoint() const
void fromStream(std::istream &ioIn)