StdAir Logo  1.00.10
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
stdair::PosChannelKey
Key of point of sale and channel.
Definition: PosChannelKey.hpp:15
stdair::PosChannelKey::toStream
void toStream(std::ostream &ioOut) const
Definition: PosChannelKey.cpp:37
stdair_types.hpp
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::PosChannelKey::toString
const std::string toString() const
Definition: PosChannelKey.cpp:46
stdair::CityCode_T
LocationCode_T CityCode_T
Definition: stdair_basic_types.hpp:25
stdair::PosChannelKey::getChannel
const stdair::ChannelLabel_T & getChannel() const
Definition: PosChannelKey.hpp:50
stdair::PosChannelKey::fromStream
void fromStream(std::istream &ioIn)
Definition: PosChannelKey.cpp:42
stdair::PosChannelKey::~PosChannelKey
~PosChannelKey()
Definition: PosChannelKey.cpp:33
stdair::ChannelLabel_T
std::string ChannelLabel_T
Definition: stdair_demand_types.hpp:92
stdair::PosChannelKey::getPos
const stdair::CityCode_T & getPos() const
Definition: PosChannelKey.hpp:43
KeyAbstract.hpp
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27