$treeview $search $mathjax
00001 #ifndef __STDAIR_BOM_POSCHANNELKEY_HPP 00002 #define __STDAIR_BOM_POSCHANNELKEY_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // SIMFQT 00008 #include <stdair/bom/KeyAbstract.hpp> 00009 #include <stdair/stdair_types.hpp> 00010 00011 namespace stdair { 00015 struct PosChannelKey : public KeyAbstract { 00016 00017 public: 00018 // /////////// Construction /////////// 00022 PosChannelKey (const stdair::CityCode_T&, const stdair::ChannelLabel_T&); 00026 PosChannelKey (const PosChannelKey&); 00030 ~PosChannelKey (); 00031 private: 00035 PosChannelKey (); 00036 00037 public: 00038 // /////////// Getters ////////// 00039 00043 const stdair::CityCode_T& getPos() const { 00044 return _pos; 00045 } 00046 00050 const stdair::ChannelLabel_T& getChannel() const { 00051 return _channel; 00052 } 00053 00054 public: 00055 // /////////// Display support methods ///////// 00060 void toStream (std::ostream& ioOut) const; 00061 00066 void fromStream (std::istream& ioIn); 00067 00072 const std::string toString() const; 00073 00074 private: 00075 // //////////////// Attributes ////////////////// 00079 CityCode_T _pos; 00080 00085 ChannelLabel_T _channel; 00086 00087 }; 00088 00089 } 00090 #endif // __STDAIR_BOM_POSCHANNELKEY_HPP