StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
PosChannelKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_POSCHANNELKEY_HPP
2 #define __STDAIR_BOM_POSCHANNELKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // SIMFQT
10 
11 namespace stdair {
15  struct PosChannelKey : public KeyAbstract {
16 
17  public:
18  // /////////// Construction ///////////
30  ~PosChannelKey ();
31  private:
35  PosChannelKey ();
36 
37  public:
38  // /////////// Getters //////////
39 
43  const stdair::CityCode_T& getPos() const {
44  return _pos;
45  }
46 
51  return _channel;
52  }
53 
54  public:
55  // /////////// Display support methods /////////
60  void toStream (std::ostream& ioOut) const;
61 
66  void fromStream (std::istream& ioIn);
67 
72  const std::string toString() const;
73 
74  private:
75  // //////////////// Attributes //////////////////
79  CityCode_T _pos;
80 
85  ChannelLabel_T _channel;
86 
87  };
88 
89 }
90 #endif // __STDAIR_BOM_POSCHANNELKEY_HPP
Handle on the StdAir library context.
void fromStream(std::istream &ioIn)
Key of point of sale and channel.
LocationCode_T CityCode_T
const std::string toString() const
const stdair::CityCode_T & getPos() const
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
const stdair::ChannelLabel_T & getChannel() const
void toStream(std::ostream &ioOut) const
std::string ChannelLabel_T