$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/ScanResult.msg */ 00002 #ifndef WPA_SUPPLICANT_NODE_MESSAGE_SCANRESULT_H 00003 #define WPA_SUPPLICANT_NODE_MESSAGE_SCANRESULT_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/Bss.h" 00018 00019 namespace wpa_supplicant_node 00020 { 00021 template <class ContainerAllocator> 00022 struct ScanResult_ { 00023 typedef ScanResult_<ContainerAllocator> Type; 00024 00025 ScanResult_() 00026 : success(false) 00027 , bss() 00028 { 00029 } 00030 00031 ScanResult_(const ContainerAllocator& _alloc) 00032 : success(false) 00033 , bss(_alloc) 00034 { 00035 } 00036 00037 typedef uint8_t _success_type; 00038 uint8_t success; 00039 00040 typedef std::vector< ::wpa_supplicant_node::Bss_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::other > _bss_type; 00041 std::vector< ::wpa_supplicant_node::Bss_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::other > bss; 00042 00043 00044 ROS_DEPRECATED uint32_t get_bss_size() const { return (uint32_t)bss.size(); } 00045 ROS_DEPRECATED void set_bss_size(uint32_t size) { bss.resize((size_t)size); } 00046 ROS_DEPRECATED void get_bss_vec(std::vector< ::wpa_supplicant_node::Bss_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::other > & vec) const { vec = this->bss; } 00047 ROS_DEPRECATED void set_bss_vec(const std::vector< ::wpa_supplicant_node::Bss_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::other > & vec) { this->bss = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "wpa_supplicant_node/ScanResult"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "7711babbb245cae96c0966d701bb6f5d"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00064 #int32 SUCCESS = 0\n\ 00065 #int32 TOO_MANY_SSIDS = 1\n\ 00066 #int32 TOO_MANY_CHANNELS = 2\n\ 00067 #int32 SCAN_REQUEST_FAILED = 3\n\ 00068 #int32 SCAN_REQUEST_TIMED_OUT = 4\n\ 00069 #\n\ 00070 bool success\n\ 00071 Bss[] bss\n\ 00072 \n\ 00073 ================================================================================\n\ 00074 MSG: wpa_supplicant_node/Bss\n\ 00075 time stamp\n\ 00076 string ssid\n\ 00077 uint8[6] bssid\n\ 00078 int32 frequency # In MHz\n\ 00079 int16 beacon_interval\n\ 00080 int16 capabilities\n\ 00081 int32 quality\n\ 00082 int32 noise\n\ 00083 int32 level\n\ 00084 SecurityProperties wpa\n\ 00085 SecurityProperties rsn\n\ 00086 \n\ 00087 #InformationElement []ies\n\ 00088 #InformationElement []beacon_ies\n\ 00089 # flags\n\ 00090 # tsf\n\ 00091 # age\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: wpa_supplicant_node/SecurityProperties\n\ 00095 string[] key_mgmt\n\ 00096 string[] group\n\ 00097 string[] pairwise\n\ 00098 \n\ 00099 "; } 00100 public: 00101 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00106 { 00107 ros::serialization::OStream stream(write_ptr, 1000000000); 00108 ros::serialization::serialize(stream, success); 00109 ros::serialization::serialize(stream, bss); 00110 return stream.getData(); 00111 } 00112 00113 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00114 { 00115 ros::serialization::IStream stream(read_ptr, 1000000000); 00116 ros::serialization::deserialize(stream, success); 00117 ros::serialization::deserialize(stream, bss); 00118 return stream.getData(); 00119 } 00120 00121 ROS_DEPRECATED virtual uint32_t serializationLength() const 00122 { 00123 uint32_t size = 0; 00124 size += ros::serialization::serializationLength(success); 00125 size += ros::serialization::serializationLength(bss); 00126 return size; 00127 } 00128 00129 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > Ptr; 00130 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> const> ConstPtr; 00131 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00132 }; // struct ScanResult 00133 typedef ::wpa_supplicant_node::ScanResult_<std::allocator<void> > ScanResult; 00134 00135 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult> ScanResultPtr; 00136 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult const> ScanResultConstPtr; 00137 00138 00139 template<typename ContainerAllocator> 00140 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> & v) 00141 { 00142 ros::message_operations::Printer< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> >::stream(s, "", v); 00143 return s;} 00144 00145 } // namespace wpa_supplicant_node 00146 00147 namespace ros 00148 { 00149 namespace message_traits 00150 { 00151 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > : public TrueType {}; 00152 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> const> : public TrueType {}; 00153 template<class ContainerAllocator> 00154 struct MD5Sum< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "7711babbb245cae96c0966d701bb6f5d"; 00158 } 00159 00160 static const char* value(const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> &) { return value(); } 00161 static const uint64_t static_value1 = 0x7711babbb245cae9ULL; 00162 static const uint64_t static_value2 = 0x6c0966d701bb6f5dULL; 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct DataType< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "wpa_supplicant_node/ScanResult"; 00170 } 00171 00172 static const char* value(const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> &) { return value(); } 00173 }; 00174 00175 template<class ContainerAllocator> 00176 struct Definition< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00180 #int32 SUCCESS = 0\n\ 00181 #int32 TOO_MANY_SSIDS = 1\n\ 00182 #int32 TOO_MANY_CHANNELS = 2\n\ 00183 #int32 SCAN_REQUEST_FAILED = 3\n\ 00184 #int32 SCAN_REQUEST_TIMED_OUT = 4\n\ 00185 #\n\ 00186 bool success\n\ 00187 Bss[] bss\n\ 00188 \n\ 00189 ================================================================================\n\ 00190 MSG: wpa_supplicant_node/Bss\n\ 00191 time stamp\n\ 00192 string ssid\n\ 00193 uint8[6] bssid\n\ 00194 int32 frequency # In MHz\n\ 00195 int16 beacon_interval\n\ 00196 int16 capabilities\n\ 00197 int32 quality\n\ 00198 int32 noise\n\ 00199 int32 level\n\ 00200 SecurityProperties wpa\n\ 00201 SecurityProperties rsn\n\ 00202 \n\ 00203 #InformationElement []ies\n\ 00204 #InformationElement []beacon_ies\n\ 00205 # flags\n\ 00206 # tsf\n\ 00207 # age\n\ 00208 \n\ 00209 ================================================================================\n\ 00210 MSG: wpa_supplicant_node/SecurityProperties\n\ 00211 string[] key_mgmt\n\ 00212 string[] group\n\ 00213 string[] pairwise\n\ 00214 \n\ 00215 "; 00216 } 00217 00218 static const char* value(const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> &) { return value(); } 00219 }; 00220 00221 } // namespace message_traits 00222 } // namespace ros 00223 00224 namespace ros 00225 { 00226 namespace serialization 00227 { 00228 00229 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > 00230 { 00231 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00232 { 00233 stream.next(m.success); 00234 stream.next(m.bss); 00235 } 00236 00237 ROS_DECLARE_ALLINONE_SERIALIZER; 00238 }; // struct ScanResult_ 00239 } // namespace serialization 00240 } // namespace ros 00241 00242 namespace ros 00243 { 00244 namespace message_operations 00245 { 00246 00247 template<class ContainerAllocator> 00248 struct Printer< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > 00249 { 00250 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> & v) 00251 { 00252 s << indent << "success: "; 00253 Printer<uint8_t>::stream(s, indent + " ", v.success); 00254 s << indent << "bss[]" << std::endl; 00255 for (size_t i = 0; i < v.bss.size(); ++i) 00256 { 00257 s << indent << " bss[" << i << "]: "; 00258 s << std::endl; 00259 s << indent; 00260 Printer< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::stream(s, indent + " ", v.bss[i]); 00261 } 00262 } 00263 }; 00264 00265 00266 } // namespace message_operations 00267 } // namespace ros 00268 00269 #endif // WPA_SUPPLICANT_NODE_MESSAGE_SCANRESULT_H 00270