StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
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  template <typename BOM> friend class FacCloneBom;
18  friend class FacBomManager;
19 
20  public:
21  // Type definitions.
24 
25  public:
26  // /////////// Getters ///////////////
28  const Key_T& getKey () const { return _key; }
29 
31  BomAbstract* const getParent() const { return _parent; }
32 
34  const FlightNumber_T& getFlightNumber () const {
35  return _key.getFlightNumber();
36  }
37 
39  const PeriodStruct& getPeriod () const { return _key.getPeriod(); }
40 
42  const HolderMap_T& getHolderMap() const { return _holderMap; }
43 
44 
45  public:
46  // /////////// Display support methods /////////
49  void toStream (std::ostream& ioOut) const { ioOut << toString(); }
50 
53  void fromStream (std::istream& ioIn) { }
54 
56  std::string toString() const;
57 
59  const std::string describeKey() const { return _key.toString(); }
60 
61  protected:
65  FlightPeriod (const Key_T&);
66 
70  ~FlightPeriod ();
71 
72  private:
73 
77  FlightPeriod ();
78 
82  FlightPeriod (const FlightPeriod&);
83 
84  protected:
85  // Attributes
86  Key_T _key;
89  };
90 
91 }
92 #endif // __STDAIR_BOM_FLIGHTPERIOD_HPP
93 
const PeriodStruct & getPeriod() const
const PeriodStruct & getPeriod() const
Utility class for linking StdAir-based objects.
unsigned short FlightNumber_T
Handle on the StdAir library context.
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition: BomAbstract.hpp:63
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:24
const std::string toString() const
BomAbstract * _parent
const HolderMap_T & getHolderMap() const
std::string toString() const
FlightPeriodKey Key_T
HolderMap_T _holderMap
void fromStream(std::istream &ioIn)
const std::string describeKey() const
const Key_T & getKey() const
Base class for Factory layer.
Definition: FacBom.hpp:22
void toStream(std::ostream &ioOut) const
const FlightNumber_T & getFlightNumber() const
const FlightNumber_T & getFlightNumber() const
Base class for Factory layer.
Definition: FacCloneBom.hpp:22
BomAbstract *const getParent() const