StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AirlineFeature.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_AIRLINEFEATURE_HPP
2 #define __STDAIR_BOM_AIRLINEFEATURE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
12 
13 namespace stdair {
14 
16  class AirlineFeature : public BomAbstract {
17  template <typename BOM> friend class FacBom;
18 
19  public:
20  // Type definitions.
23 
24  public:
25  // /////////// Getters ////////////
27  const Key_T& getKey() const {
28  return _key;
29  }
30 
31  public:
32  // //////////// Setters //////////
34  void init (const ForecasterMode_T&, const HistoricalDataLimit_T&,
35  const ControlMode_T&);
36 
37  public:
38  // /////////// Display support methods /////////
41  void toStream (std::ostream& ioOut) const { ioOut << toString(); }
42 
45  void fromStream (std::istream& ioIn) { }
46 
48  std::string toString() const;
49 
51  const std::string describeKey() const { return _key.toString(); }
52 
53  protected:
55  AirlineFeature ();
57  AirlineFeature (const Key_T&);
59  virtual ~AirlineFeature();
60 
61  protected:
62  // Attributes
65 
68 
71 
74  };
75 
76 }
77 #endif // __STDAIR_BOM_AIRLINEFEATURE_HPP
78