StdAir Logo  1.00.19
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
12namespace 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
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
71
72 private:
73
77 FlightPeriod ();
78
83
84 protected:
85 // Attributes
89 };
90
91}
92#endif // __STDAIR_BOM_FLIGHTPERIOD_HPP
93
Handle on the StdAir library context.
std::map< const std::type_info *, BomAbstract * > HolderMap_T
unsigned short FlightNumber_T
const Key_T & getKey() const
FlightPeriod(const Key_T &)
const HolderMap_T & getHolderMap() const
std::string toString() const
FlightPeriodKey Key_T
const FlightNumber_T & getFlightNumber() const
const PeriodStruct & getPeriod() const
BomAbstract * _parent
void toStream(std::ostream &ioOut) const
const std::string describeKey() const
void fromStream(std::istream &ioIn)
friend class FacCloneBom
friend class FacBomManager
BomAbstract *const getParent() const