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