StdAir Logo  1.00.15
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
PosChannel.hpp
Go to the documentation of this file.
1#ifndef __STDAIR_BOM_POSCHANNEL_HPP
2#define __STDAIR_BOM_POSCHANNEL_HPP
3
4// //////////////////////////////////////////////////////////////////////
5// Import section
6// //////////////////////////////////////////////////////////////////////
7// STDAIR
11
12// Forward declaration
13namespace stdair {
14
19 class PosChannel : public BomAbstract {
20 template <typename BOM> friend class FacBom;
21 template <typename BOM> friend class FacCloneBom;
22 friend class FacBomManager;
23
24 public:
25 // /////// Type definitions
30
31 public:
32 // /////////// Display support methods /////////
38 void toStream (std::ostream& ioOut) const {
39 ioOut << toString();
40 }
41
47 void fromStream (std::istream& ioIn) {
48 }
49
53 std::string toString() const;
54
58 const std::string describeKey() const {
59 return _key.toString();
60 }
61
62 public:
63 // ////////// Getters ////////////
67 const Key_T& getKey() const {
68 return _key;
69 }
70
74 BomAbstract* const getParent() const {
75 return _parent;
76 }
77
82 return _holderMap;
83 }
84
88 const CityCode_T& getPos() const {
89 return _key.getPos();
90 }
91
95 const ChannelLabel_T& getChannel() const {
96 return _key.getChannel();
97 }
98
99 protected:
100 // ////////// Constructors and destructors /////////
104 PosChannel (const Key_T&);
105
109 virtual ~PosChannel();
110
111 private:
115 PosChannel ();
116
120 PosChannel (const PosChannel&);
121
122 protected:
123 // ////////// Attributes /////////
128
133
138
139 };
140
141}
142#endif // __STDAIR_BOM_POSCHANNEL_HPP
143
Handle on the StdAir library context.
std::string ChannelLabel_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
LocationCode_T CityCode_T
Base class for the Business Object Model (BOM) layer.
Class representing the actual attributes for a fare point of sale.
HolderMap_T _holderMap
const std::string describeKey() const
std::string toString() const
PosChannelKey Key_T
virtual ~PosChannel()
void fromStream(std::istream &ioIn)
const Key_T & getKey() const
const ChannelLabel_T & getChannel() const
BomAbstract * _parent
const CityCode_T & getPos() const
void toStream(std::ostream &ioOut) const
const stdair::HolderMap_T & getHolderMap() const
BomAbstract *const getParent() const
Key of point of sale and channel.
const stdair::CityCode_T & getPos() const
const std::string toString() const
const stdair::ChannelLabel_T & getChannel() const
Base class for Factory layer.
Definition FacBom.hpp:22
Utility class for linking StdAir-based objects.
Base class for Factory layer.