$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-linux_networking/doc_stacks/2013-03-01_15-56-27.119261/linux_networking/wpa_supplicant_node/msg/Bss.msg */ 00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_BSS_H 00003 #define WPA_SUPPLICANT_NODE_MESSAGE_BSS_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 #include "wpa_supplicant_node/SecurityProperties.h" 00018 #include "wpa_supplicant_node/SecurityProperties.h" 00019 00020 namespace wpa_supplicant_node 00021 { 00022 template <class ContainerAllocator> 00023 struct Bss_ { 00024 typedef Bss_<ContainerAllocator> Type; 00025 00026 Bss_() 00027 : stamp() 00028 , ssid() 00029 , bssid() 00030 , frequency(0) 00031 , beacon_interval(0) 00032 , capabilities(0) 00033 , quality(0) 00034 , noise(0) 00035 , level(0) 00036 , wpa() 00037 , rsn() 00038 { 00039 bssid.assign(0); 00040 } 00041 00042 Bss_(const ContainerAllocator& _alloc) 00043 : stamp() 00044 , ssid(_alloc) 00045 , bssid() 00046 , frequency(0) 00047 , beacon_interval(0) 00048 , capabilities(0) 00049 , quality(0) 00050 , noise(0) 00051 , level(0) 00052 , wpa(_alloc) 00053 , rsn(_alloc) 00054 { 00055 bssid.assign(0); 00056 } 00057 00058 typedef ros::Time _stamp_type; 00059 ros::Time stamp; 00060 00061 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _ssid_type; 00062 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > ssid; 00063 00064 typedef boost::array<uint8_t, 6> _bssid_type; 00065 boost::array<uint8_t, 6> bssid; 00066 00067 typedef int32_t _frequency_type; 00068 int32_t frequency; 00069 00070 typedef int16_t _beacon_interval_type; 00071 int16_t beacon_interval; 00072 00073 typedef int16_t _capabilities_type; 00074 int16_t capabilities; 00075 00076 typedef int32_t _quality_type; 00077 int32_t quality; 00078 00079 typedef int32_t _noise_type; 00080 int32_t noise; 00081 00082 typedef int32_t _level_type; 00083 int32_t level; 00084 00085 typedef ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> _wpa_type; 00086 ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> wpa; 00087 00088 typedef ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> _rsn_type; 00089 ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> rsn; 00090 00091 00092 ROS_DEPRECATED uint32_t get_bssid_size() const { return (uint32_t)bssid.size(); } 00093 private: 00094 static const char* __s_getDataType_() { return "wpa_supplicant_node/Bss"; } 00095 public: 00096 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00097 00098 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00099 00100 private: 00101 static const char* __s_getMD5Sum_() { return "80facb0ec718ef7a27a68ac18771763a"; } 00102 public: 00103 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00104 00105 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00106 00107 private: 00108 static const char* __s_getMessageDefinition_() { return "time stamp\n\ 00109 string ssid\n\ 00110 uint8[6] bssid\n\ 00111 int32 frequency # In MHz\n\ 00112 int16 beacon_interval\n\ 00113 int16 capabilities\n\ 00114 int32 quality\n\ 00115 int32 noise\n\ 00116 int32 level\n\ 00117 SecurityProperties wpa\n\ 00118 SecurityProperties rsn\n\ 00119 \n\ 00120 #InformationElement []ies\n\ 00121 #InformationElement []beacon_ies\n\ 00122 # flags\n\ 00123 # tsf\n\ 00124 # age\n\ 00125 \n\ 00126 ================================================================================\n\ 00127 MSG: wpa_supplicant_node/SecurityProperties\n\ 00128 string[] key_mgmt\n\ 00129 string[] group\n\ 00130 string[] pairwise\n\ 00131 \n\ 00132 "; } 00133 public: 00134 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00135 00136 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00137 00138 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00139 { 00140 ros::serialization::OStream stream(write_ptr, 1000000000); 00141 ros::serialization::serialize(stream, stamp); 00142 ros::serialization::serialize(stream, ssid); 00143 ros::serialization::serialize(stream, bssid); 00144 ros::serialization::serialize(stream, frequency); 00145 ros::serialization::serialize(stream, beacon_interval); 00146 ros::serialization::serialize(stream, capabilities); 00147 ros::serialization::serialize(stream, quality); 00148 ros::serialization::serialize(stream, noise); 00149 ros::serialization::serialize(stream, level); 00150 ros::serialization::serialize(stream, wpa); 00151 ros::serialization::serialize(stream, rsn); 00152 return stream.getData(); 00153 } 00154 00155 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00156 { 00157 ros::serialization::IStream stream(read_ptr, 1000000000); 00158 ros::serialization::deserialize(stream, stamp); 00159 ros::serialization::deserialize(stream, ssid); 00160 ros::serialization::deserialize(stream, bssid); 00161 ros::serialization::deserialize(stream, frequency); 00162 ros::serialization::deserialize(stream, beacon_interval); 00163 ros::serialization::deserialize(stream, capabilities); 00164 ros::serialization::deserialize(stream, quality); 00165 ros::serialization::deserialize(stream, noise); 00166 ros::serialization::deserialize(stream, level); 00167 ros::serialization::deserialize(stream, wpa); 00168 ros::serialization::deserialize(stream, rsn); 00169 return stream.getData(); 00170 } 00171 00172 ROS_DEPRECATED virtual uint32_t serializationLength() const 00173 { 00174 uint32_t size = 0; 00175 size += ros::serialization::serializationLength(stamp); 00176 size += ros::serialization::serializationLength(ssid); 00177 size += ros::serialization::serializationLength(bssid); 00178 size += ros::serialization::serializationLength(frequency); 00179 size += ros::serialization::serializationLength(beacon_interval); 00180 size += ros::serialization::serializationLength(capabilities); 00181 size += ros::serialization::serializationLength(quality); 00182 size += ros::serialization::serializationLength(noise); 00183 size += ros::serialization::serializationLength(level); 00184 size += ros::serialization::serializationLength(wpa); 00185 size += ros::serialization::serializationLength(rsn); 00186 return size; 00187 } 00188 00189 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss_<ContainerAllocator> > Ptr; 00190 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss_<ContainerAllocator> const> ConstPtr; 00191 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00192 }; // struct Bss 00193 typedef ::wpa_supplicant_node::Bss_<std::allocator<void> > Bss; 00194 00195 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss> BssPtr; 00196 typedef boost::shared_ptr< ::wpa_supplicant_node::Bss const> BssConstPtr; 00197 00198 00199 template<typename ContainerAllocator> 00200 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::Bss_<ContainerAllocator> & v) 00201 { 00202 ros::message_operations::Printer< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::stream(s, "", v); 00203 return s;} 00204 00205 } // namespace wpa_supplicant_node 00206 00207 namespace ros 00208 { 00209 namespace message_traits 00210 { 00211 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::Bss_<ContainerAllocator> > : public TrueType {}; 00212 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::Bss_<ContainerAllocator> const> : public TrueType {}; 00213 template<class ContainerAllocator> 00214 struct MD5Sum< ::wpa_supplicant_node::Bss_<ContainerAllocator> > { 00215 static const char* value() 00216 { 00217 return "80facb0ec718ef7a27a68ac18771763a"; 00218 } 00219 00220 static const char* value(const ::wpa_supplicant_node::Bss_<ContainerAllocator> &) { return value(); } 00221 static const uint64_t static_value1 = 0x80facb0ec718ef7aULL; 00222 static const uint64_t static_value2 = 0x27a68ac18771763aULL; 00223 }; 00224 00225 template<class ContainerAllocator> 00226 struct DataType< ::wpa_supplicant_node::Bss_<ContainerAllocator> > { 00227 static const char* value() 00228 { 00229 return "wpa_supplicant_node/Bss"; 00230 } 00231 00232 static const char* value(const ::wpa_supplicant_node::Bss_<ContainerAllocator> &) { return value(); } 00233 }; 00234 00235 template<class ContainerAllocator> 00236 struct Definition< ::wpa_supplicant_node::Bss_<ContainerAllocator> > { 00237 static const char* value() 00238 { 00239 return "time stamp\n\ 00240 string ssid\n\ 00241 uint8[6] bssid\n\ 00242 int32 frequency # In MHz\n\ 00243 int16 beacon_interval\n\ 00244 int16 capabilities\n\ 00245 int32 quality\n\ 00246 int32 noise\n\ 00247 int32 level\n\ 00248 SecurityProperties wpa\n\ 00249 SecurityProperties rsn\n\ 00250 \n\ 00251 #InformationElement []ies\n\ 00252 #InformationElement []beacon_ies\n\ 00253 # flags\n\ 00254 # tsf\n\ 00255 # age\n\ 00256 \n\ 00257 ================================================================================\n\ 00258 MSG: wpa_supplicant_node/SecurityProperties\n\ 00259 string[] key_mgmt\n\ 00260 string[] group\n\ 00261 string[] pairwise\n\ 00262 \n\ 00263 "; 00264 } 00265 00266 static const char* value(const ::wpa_supplicant_node::Bss_<ContainerAllocator> &) { return value(); } 00267 }; 00268 00269 } // namespace message_traits 00270 } // namespace ros 00271 00272 namespace ros 00273 { 00274 namespace serialization 00275 { 00276 00277 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::Bss_<ContainerAllocator> > 00278 { 00279 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00280 { 00281 stream.next(m.stamp); 00282 stream.next(m.ssid); 00283 stream.next(m.bssid); 00284 stream.next(m.frequency); 00285 stream.next(m.beacon_interval); 00286 stream.next(m.capabilities); 00287 stream.next(m.quality); 00288 stream.next(m.noise); 00289 stream.next(m.level); 00290 stream.next(m.wpa); 00291 stream.next(m.rsn); 00292 } 00293 00294 ROS_DECLARE_ALLINONE_SERIALIZER; 00295 }; // struct Bss_ 00296 } // namespace serialization 00297 } // namespace ros 00298 00299 namespace ros 00300 { 00301 namespace message_operations 00302 { 00303 00304 template<class ContainerAllocator> 00305 struct Printer< ::wpa_supplicant_node::Bss_<ContainerAllocator> > 00306 { 00307 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::Bss_<ContainerAllocator> & v) 00308 { 00309 s << indent << "stamp: "; 00310 Printer<ros::Time>::stream(s, indent + " ", v.stamp); 00311 s << indent << "ssid: "; 00312 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.ssid); 00313 s << indent << "bssid[]" << std::endl; 00314 for (size_t i = 0; i < v.bssid.size(); ++i) 00315 { 00316 s << indent << " bssid[" << i << "]: "; 00317 Printer<uint8_t>::stream(s, indent + " ", v.bssid[i]); 00318 } 00319 s << indent << "frequency: "; 00320 Printer<int32_t>::stream(s, indent + " ", v.frequency); 00321 s << indent << "beacon_interval: "; 00322 Printer<int16_t>::stream(s, indent + " ", v.beacon_interval); 00323 s << indent << "capabilities: "; 00324 Printer<int16_t>::stream(s, indent + " ", v.capabilities); 00325 s << indent << "quality: "; 00326 Printer<int32_t>::stream(s, indent + " ", v.quality); 00327 s << indent << "noise: "; 00328 Printer<int32_t>::stream(s, indent + " ", v.noise); 00329 s << indent << "level: "; 00330 Printer<int32_t>::stream(s, indent + " ", v.level); 00331 s << indent << "wpa: "; 00332 s << std::endl; 00333 Printer< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> >::stream(s, indent + " ", v.wpa); 00334 s << indent << "rsn: "; 00335 s << std::endl; 00336 Printer< ::wpa_supplicant_node::SecurityProperties_<ContainerAllocator> >::stream(s, indent + " ", v.rsn); 00337 } 00338 }; 00339 00340 00341 } // namespace message_operations 00342 } // namespace ros 00343 00344 #endif // WPA_SUPPLICANT_NODE_MESSAGE_BSS_H 00345