StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FlightPeriod.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_FLIGHTPERIOD_HPP
2 #define __STDAIR_BOM_FLIGHTPERIOD_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STDAIR
11 
12 namespace stdair {
13 
15  class FlightPeriod : public BomAbstract {
16  template <typename BOM> friend class FacBom;
17  friend class FacBomManager;
18 
19  public:
20  // Type definitions.
23 
24  public:
25  // /////////// Getters ///////////////
27  const Key_T& getKey () const { return _key; }
28 
30  BomAbstract* const getParent() const { return _parent; }
31 
33  const FlightNumber_T& getFlightNumber () const {
34  return _key.getFlightNumber();
35  }
36 
38  const PeriodStruct& getPeriod () const { return _key.getPeriod(); }
39 
41  const HolderMap_T& getHolderMap() const { return _holderMap; }
42 
43 
44  public:
45  // /////////// Display support methods /////////
48  void toStream (std::ostream& ioOut) const { ioOut << toString(); }
49 
52  void fromStream (std::istream& ioIn) { }
53 
55  std::string toString() const;
56 
58  const std::string describeKey() const { return _key.toString(); }
59 
60  protected:
62  FlightPeriod (const Key_T&);
63  FlightPeriod (const FlightPeriod&);
65  ~FlightPeriod();
66 
67  protected:
68  // Attributes
72  };
73 
74 }
75 #endif // __STDAIR_BOM_FLIGHTPERIOD_HPP
76