Go to the documentation of this file.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 <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 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::wpa_supplicant_node::ScanResult_<std::allocator<void> > ScanResult;
00049
00050 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult> ScanResultPtr;
00051 typedef boost::shared_ptr< ::wpa_supplicant_node::ScanResult const> ScanResultConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "7711babbb245cae96c0966d701bb6f5d";
00073 }
00074
00075 static const char* value(const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0x7711babbb245cae9ULL;
00077 static const uint64_t static_value2 = 0x6c0966d701bb6f5dULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "wpa_supplicant_node/ScanResult";
00085 }
00086
00087 static const char* value(const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00095 #int32 SUCCESS = 0\n\
00096 #int32 TOO_MANY_SSIDS = 1\n\
00097 #int32 TOO_MANY_CHANNELS = 2\n\
00098 #int32 SCAN_REQUEST_FAILED = 3\n\
00099 #int32 SCAN_REQUEST_TIMED_OUT = 4\n\
00100 #\n\
00101 bool success\n\
00102 Bss[] bss\n\
00103 \n\
00104 ================================================================================\n\
00105 MSG: wpa_supplicant_node/Bss\n\
00106 time stamp\n\
00107 string ssid\n\
00108 uint8[6] bssid\n\
00109 int32 frequency # In MHz\n\
00110 int16 beacon_interval\n\
00111 int16 capabilities\n\
00112 int32 quality\n\
00113 int32 noise\n\
00114 int32 level\n\
00115 SecurityProperties wpa\n\
00116 SecurityProperties rsn\n\
00117 \n\
00118 #InformationElement []ies\n\
00119 #InformationElement []beacon_ies\n\
00120 # flags\n\
00121 # tsf\n\
00122 # age\n\
00123 \n\
00124 ================================================================================\n\
00125 MSG: wpa_supplicant_node/SecurityProperties\n\
00126 string[] key_mgmt\n\
00127 string[] group\n\
00128 string[] pairwise\n\
00129 \n\
00130 ";
00131 }
00132
00133 static const char* value(const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 }
00137 }
00138
00139 namespace ros
00140 {
00141 namespace serialization
00142 {
00143
00144 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> >
00145 {
00146 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00147 {
00148 stream.next(m.success);
00149 stream.next(m.bss);
00150 }
00151
00152 ROS_DECLARE_ALLINONE_SERIALIZER;
00153 };
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace message_operations
00160 {
00161
00162 template<class ContainerAllocator>
00163 struct Printer< ::wpa_supplicant_node::ScanResult_<ContainerAllocator> >
00164 {
00165 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wpa_supplicant_node::ScanResult_<ContainerAllocator> & v)
00166 {
00167 s << indent << "success: ";
00168 Printer<uint8_t>::stream(s, indent + " ", v.success);
00169 s << indent << "bss[]" << std::endl;
00170 for (size_t i = 0; i < v.bss.size(); ++i)
00171 {
00172 s << indent << " bss[" << i << "]: ";
00173 s << std::endl;
00174 s << indent;
00175 Printer< ::wpa_supplicant_node::Bss_<ContainerAllocator> >::stream(s, indent + " ", v.bss[i]);
00176 }
00177 }
00178 };
00179
00180
00181 }
00182 }
00183
00184 #endif // WPA_SUPPLICANT_NODE_MESSAGE_SCANRESULT_H
00185