$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-wifi_drivers/doc_stacks/2013-03-02_14-19-41.222952/wifi_drivers/wifi_ddwrt/msg/Network.msg */ 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 private: 00064 static const char* __s_getDataType_() { return "wifi_ddwrt/Network"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00067 00068 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00069 00070 private: 00071 static const char* __s_getMD5Sum_() { return "b0854419660dc197dd94305843bee07f"; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00074 00075 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00076 00077 private: 00078 static const char* __s_getMessageDefinition_() { return "string macattr\n\ 00079 string essid\n\ 00080 int32 channel\n\ 00081 int32 rssi\n\ 00082 int32 noise\n\ 00083 int32 beacon\n\ 00084 \n\ 00085 "; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00092 { 00093 ros::serialization::OStream stream(write_ptr, 1000000000); 00094 ros::serialization::serialize(stream, macattr); 00095 ros::serialization::serialize(stream, essid); 00096 ros::serialization::serialize(stream, channel); 00097 ros::serialization::serialize(stream, rssi); 00098 ros::serialization::serialize(stream, noise); 00099 ros::serialization::serialize(stream, beacon); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00104 { 00105 ros::serialization::IStream stream(read_ptr, 1000000000); 00106 ros::serialization::deserialize(stream, macattr); 00107 ros::serialization::deserialize(stream, essid); 00108 ros::serialization::deserialize(stream, channel); 00109 ros::serialization::deserialize(stream, rssi); 00110 ros::serialization::deserialize(stream, noise); 00111 ros::serialization::deserialize(stream, beacon); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint32_t serializationLength() const 00116 { 00117 uint32_t size = 0; 00118 size += ros::serialization::serializationLength(macattr); 00119 size += ros::serialization::serializationLength(essid); 00120 size += ros::serialization::serializationLength(channel); 00121 size += ros::serialization::serializationLength(rssi); 00122 size += ros::serialization::serializationLength(noise); 00123 size += ros::serialization::serializationLength(beacon); 00124 return size; 00125 } 00126 00127 typedef boost::shared_ptr< ::wifi_ddwrt::Network_<ContainerAllocator> > Ptr; 00128 typedef boost::shared_ptr< ::wifi_ddwrt::Network_<ContainerAllocator> const> ConstPtr; 00129 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00130 }; // struct Network 00131 typedef ::wifi_ddwrt::Network_<std::allocator<void> > Network; 00132 00133 typedef boost::shared_ptr< ::wifi_ddwrt::Network> NetworkPtr; 00134 typedef boost::shared_ptr< ::wifi_ddwrt::Network const> NetworkConstPtr; 00135 00136 00137 template<typename ContainerAllocator> 00138 std::ostream& operator<<(std::ostream& s, const ::wifi_ddwrt::Network_<ContainerAllocator> & v) 00139 { 00140 ros::message_operations::Printer< ::wifi_ddwrt::Network_<ContainerAllocator> >::stream(s, "", v); 00141 return s;} 00142 00143 } // namespace wifi_ddwrt 00144 00145 namespace ros 00146 { 00147 namespace message_traits 00148 { 00149 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::Network_<ContainerAllocator> > : public TrueType {}; 00150 template<class ContainerAllocator> struct IsMessage< ::wifi_ddwrt::Network_<ContainerAllocator> const> : public TrueType {}; 00151 template<class ContainerAllocator> 00152 struct MD5Sum< ::wifi_ddwrt::Network_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "b0854419660dc197dd94305843bee07f"; 00156 } 00157 00158 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); } 00159 static const uint64_t static_value1 = 0xb0854419660dc197ULL; 00160 static const uint64_t static_value2 = 0xdd94305843bee07fULL; 00161 }; 00162 00163 template<class ContainerAllocator> 00164 struct DataType< ::wifi_ddwrt::Network_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "wifi_ddwrt/Network"; 00168 } 00169 00170 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 template<class ContainerAllocator> 00174 struct Definition< ::wifi_ddwrt::Network_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "string macattr\n\ 00178 string essid\n\ 00179 int32 channel\n\ 00180 int32 rssi\n\ 00181 int32 noise\n\ 00182 int32 beacon\n\ 00183 \n\ 00184 "; 00185 } 00186 00187 static const char* value(const ::wifi_ddwrt::Network_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 } // namespace message_traits 00191 } // namespace ros 00192 00193 namespace ros 00194 { 00195 namespace serialization 00196 { 00197 00198 template<class ContainerAllocator> struct Serializer< ::wifi_ddwrt::Network_<ContainerAllocator> > 00199 { 00200 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00201 { 00202 stream.next(m.macattr); 00203 stream.next(m.essid); 00204 stream.next(m.channel); 00205 stream.next(m.rssi); 00206 stream.next(m.noise); 00207 stream.next(m.beacon); 00208 } 00209 00210 ROS_DECLARE_ALLINONE_SERIALIZER; 00211 }; // struct Network_ 00212 } // namespace serialization 00213 } // namespace ros 00214 00215 namespace ros 00216 { 00217 namespace message_operations 00218 { 00219 00220 template<class ContainerAllocator> 00221 struct Printer< ::wifi_ddwrt::Network_<ContainerAllocator> > 00222 { 00223 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::wifi_ddwrt::Network_<ContainerAllocator> & v) 00224 { 00225 s << indent << "macattr: "; 00226 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.macattr); 00227 s << indent << "essid: "; 00228 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.essid); 00229 s << indent << "channel: "; 00230 Printer<int32_t>::stream(s, indent + " ", v.channel); 00231 s << indent << "rssi: "; 00232 Printer<int32_t>::stream(s, indent + " ", v.rssi); 00233 s << indent << "noise: "; 00234 Printer<int32_t>::stream(s, indent + " ", v.noise); 00235 s << indent << "beacon: "; 00236 Printer<int32_t>::stream(s, indent + " ", v.beacon); 00237 } 00238 }; 00239 00240 00241 } // namespace message_operations 00242 } // namespace ros 00243 00244 #endif // WIFI_DDWRT_MESSAGE_NETWORK_H 00245