StdAir Logo  1.00.8
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
stdair::FlightPeriodKey::~FlightPeriodKey
~FlightPeriodKey()
Definition: FlightPeriodKey.cpp:21
stdair::FlightPeriodKey::toStream
void toStream(std::ostream &ioOut) const
Definition: FlightPeriodKey.cpp:25
stdair::PeriodStruct
Definition: PeriodStruct.hpp:19
stdair::FlightPeriodKey
Definition: FlightPeriodKey.hpp:13
PeriodStruct.hpp
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
stdair::FlightPeriodKey::getPeriod
const PeriodStruct & getPeriod() const
Definition: FlightPeriodKey.hpp:33
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::FlightPeriodKey::getFlightNumber
const FlightNumber_T & getFlightNumber() const
Definition: FlightPeriodKey.hpp:28
stdair::FlightNumber_T
unsigned short FlightNumber_T
Definition: stdair_basic_types.hpp:34
KeyAbstract.hpp
stdair::FlightPeriodKey::fromStream
void fromStream(std::istream &ioIn)
Definition: FlightPeriodKey.cpp:30
stdair::FlightPeriodKey::toString
const std::string toString() const
Definition: FlightPeriodKey.cpp:34