Go to the documentation of this file.00001
00002 #ifndef WIFI_DDWRT_MESSAGE_NETWORK_H
00003 #define WIFI_DDWRT_MESSAGE_NETWORK_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
00018 namespace wifi_ddwrt
00019 {
00020 template <class ContainerAllocator>
00021 struct Network_ {
00022 typedef Network_<ContainerAllocator> Type;
00023
00024 Network_()
00025 : macattr()
00026 , essid()
00027 , channel(0)
00028 , rssi(0)
00029 , noise(0)
00030 , beacon(0)
00031 {
00032 }
00033
00034 Network_(const ContainerAllocator& _alloc)
00035 : macattr(_alloc)
00036 , essid(_alloc)
00037 , channel(0)
00038 , rssi(0)
00039 , noise(0)
00040 , beacon(0)
00041 {
00042 }
00043
00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _macattr_type;
00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > macattr;
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _essid_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > essid;
00049
00050 typedef int32_t _channel_type;
00051 int32_t channel;
00052
00053 typedef int32_t _rssi_type;
00054 int32_t rssi;
00055
00056 typedef int32_t _noise_type;
00057 int32_t noise;
00058
00059 typedef int32_t _beacon_type;
00060 int32_t beacon;
00061
00062
00063 typedef boost::shared_ptr< ::wifi_ddwrt::Network_<ContainerAllocator> > Ptr;
00064 typedef boost::shared_ptr< ::wifi_ddwrt::Network_<ContainerAllocator> const> ConstPtr;
00065 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 };
00067 typedef ::wifi_ddwrt::Network_<std::allocator<void> > Network;
00068
00069 typedef boost::shared_ptr< ::wifi_ddwrt::Network> NetworkPtr;
00070 typedef boost::shared_ptr< ::wifi_ddwrt::Network const> NetworkConstPtr;
00071
00072
00073 template<typename ContainerAllocator>
00074 std::ostream& operator<<(std::ostream& s, const ::wifi_ddwrt::Network_<ContainerAllocator> & v)
00075 {
00076 ros::message_operations::Printer< ::wifi_ddwrt::Network_<ContainerAllocator> >::stream(s, "", v);
00077 return s;}
00078
00079 }
00080
00081 namespace ros
00082 {
00083 namespace message_traits
00084 {
00085 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::Network_<ContainerAllocator> > : public TrueType {};
00086 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::Network_<ContainerAllocator> const> : public TrueType {};
00087 template<class ContainerAllocator>
00088 struct MD5Sum< ::wifi_ddwrt::Network_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "b0854419660dc197dd94305843bee07f";
00092 }
00093
00094 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); }
00095 static const uint64_t static_value1 = 0xb0854419660dc197ULL;
00096 static const uint64_t static_value2 = 0xdd94305843bee07fULL;
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct DataType< ::wifi_ddwrt::Network_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "wifi_ddwrt/Network";
00104 }
00105
00106 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct Definition< ::wifi_ddwrt::Network_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "string macattr\n\
00114 string essid\n\
00115 int32 channel\n\
00116 int32 rssi\n\
00117 int32 noise\n\
00118 int32 beacon\n\
00119 \n\
00120 ";
00121 }
00122
00123 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 }
00127 }
00128
00129 namespace ros
00130 {
00131 namespace serialization
00132 {
00133
00134 template<class ContainerAllocator> struct Serializer< ::wifi_ddwrt::Network_<ContainerAllocator> >
00135 {
00136 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00137 {
00138 stream.next(m.macattr);
00139 stream.next(m.essid);
00140 stream.next(m.channel);
00141 stream.next(m.rssi);
00142 stream.next(m.noise);
00143 stream.next(m.beacon);
00144 }
00145
00146 ROS_DECLARE_ALLINONE_SERIALIZER;
00147 };
00148 }
00149 }
00150
00151 namespace ros
00152 {
00153 namespace message_operations
00154 {
00155
00156 template<class ContainerAllocator>
00157 struct Printer< ::wifi_ddwrt::Network_<ContainerAllocator> >
00158 {
00159 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wifi_ddwrt::Network_<ContainerAllocator> & v)
00160 {
00161 s << indent << "macattr: ";
00162 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.macattr);
00163 s << indent << "essid: ";
00164 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.essid);
00165 s << indent << "channel: ";
00166 Printer<int32_t>::stream(s, indent + " ", v.channel);
00167 s << indent << "rssi: ";
00168 Printer<int32_t>::stream(s, indent + " ", v.rssi);
00169 s << indent << "noise: ";
00170 Printer<int32_t>::stream(s, indent + " ", v.noise);
00171 s << indent << "beacon: ";
00172 Printer<int32_t>::stream(s, indent + " ", v.beacon);
00173 }
00174 };
00175
00176
00177 }
00178 }
00179
00180 #endif // WIFI_DDWRT_MESSAGE_NETWORK_H
00181