$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/srv/AddNetwork.srv */ 00002 #ifndef WPA_SUPPLICANT_NODE_SERVICE_ADDNETWORK_H 00003 #define WPA_SUPPLICANT_NODE_SERVICE_ADDNETWORK_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 "ros/service_traits.h" 00018 00019 00020 00021 00022 namespace wpa_supplicant_node 00023 { 00024 template <class ContainerAllocator> 00025 struct AddNetworkRequest_ { 00026 typedef AddNetworkRequest_<ContainerAllocator> Type; 00027 00028 AddNetworkRequest_() 00029 { 00030 } 00031 00032 AddNetworkRequest_(const ContainerAllocator& _alloc) 00033 { 00034 } 00035 00036 00037 private: 00038 static const char* __s_getDataType_() { return "wpa_supplicant_node/AddNetworkRequest"; } 00039 public: 00040 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00041 00042 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00043 00044 private: 00045 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00048 00049 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00050 00051 private: 00052 static const char* __s_getServerMD5Sum_() { return "beccb82ed0f84d8e0d5117e923477b3f"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "\n\ 00060 \n\ 00061 "; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00066 00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00068 { 00069 ros::serialization::OStream stream(write_ptr, 1000000000); 00070 return stream.getData(); 00071 } 00072 00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00074 { 00075 ros::serialization::IStream stream(read_ptr, 1000000000); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 return size; 00083 } 00084 00085 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > Ptr; 00086 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> const> ConstPtr; 00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00088 }; // struct AddNetworkRequest 00089 typedef ::wpa_supplicant_node::AddNetworkRequest_<std::allocator<void> > AddNetworkRequest; 00090 00091 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkRequest> AddNetworkRequestPtr; 00092 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkRequest const> AddNetworkRequestConstPtr; 00093 00094 00095 template <class ContainerAllocator> 00096 struct AddNetworkResponse_ { 00097 typedef AddNetworkResponse_<ContainerAllocator> Type; 00098 00099 AddNetworkResponse_() 00100 : success(false) 00101 , network_id(0) 00102 { 00103 } 00104 00105 AddNetworkResponse_(const ContainerAllocator& _alloc) 00106 : success(false) 00107 , network_id(0) 00108 { 00109 } 00110 00111 typedef uint8_t _success_type; 00112 uint8_t success; 00113 00114 typedef int32_t _network_id_type; 00115 int32_t network_id; 00116 00117 00118 private: 00119 static const char* __s_getDataType_() { return "wpa_supplicant_node/AddNetworkResponse"; } 00120 public: 00121 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00122 00123 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00124 00125 private: 00126 static const char* __s_getMD5Sum_() { return "beccb82ed0f84d8e0d5117e923477b3f"; } 00127 public: 00128 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00129 00130 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00131 00132 private: 00133 static const char* __s_getServerMD5Sum_() { return "beccb82ed0f84d8e0d5117e923477b3f"; } 00134 public: 00135 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00136 00137 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00138 00139 private: 00140 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00141 int32 network_id\n\ 00142 \n\ 00143 \n\ 00144 "; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00147 00148 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00149 00150 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00151 { 00152 ros::serialization::OStream stream(write_ptr, 1000000000); 00153 ros::serialization::serialize(stream, success); 00154 ros::serialization::serialize(stream, network_id); 00155 return stream.getData(); 00156 } 00157 00158 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00159 { 00160 ros::serialization::IStream stream(read_ptr, 1000000000); 00161 ros::serialization::deserialize(stream, success); 00162 ros::serialization::deserialize(stream, network_id); 00163 return stream.getData(); 00164 } 00165 00166 ROS_DEPRECATED virtual uint32_t serializationLength() const 00167 { 00168 uint32_t size = 0; 00169 size += ros::serialization::serializationLength(success); 00170 size += ros::serialization::serializationLength(network_id); 00171 return size; 00172 } 00173 00174 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > Ptr; 00175 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> const> ConstPtr; 00176 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00177 }; // struct AddNetworkResponse 00178 typedef ::wpa_supplicant_node::AddNetworkResponse_<std::allocator<void> > AddNetworkResponse; 00179 00180 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkResponse> AddNetworkResponsePtr; 00181 typedef boost::shared_ptr< ::wpa_supplicant_node::AddNetworkResponse const> AddNetworkResponseConstPtr; 00182 00183 struct AddNetwork 00184 { 00185 00186 typedef AddNetworkRequest Request; 00187 typedef AddNetworkResponse Response; 00188 Request request; 00189 Response response; 00190 00191 typedef Request RequestType; 00192 typedef Response ResponseType; 00193 }; // struct AddNetwork 00194 } // namespace wpa_supplicant_node 00195 00196 namespace ros 00197 { 00198 namespace message_traits 00199 { 00200 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > : public TrueType {}; 00201 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> const> : public TrueType {}; 00202 template<class ContainerAllocator> 00203 struct MD5Sum< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > { 00204 static const char* value() 00205 { 00206 return "d41d8cd98f00b204e9800998ecf8427e"; 00207 } 00208 00209 static const char* value(const ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> &) { return value(); } 00210 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL; 00211 static const uint64_t static_value2 = 0xe9800998ecf8427eULL; 00212 }; 00213 00214 template<class ContainerAllocator> 00215 struct DataType< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > { 00216 static const char* value() 00217 { 00218 return "wpa_supplicant_node/AddNetworkRequest"; 00219 } 00220 00221 static const char* value(const ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> &) { return value(); } 00222 }; 00223 00224 template<class ContainerAllocator> 00225 struct Definition< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > { 00226 static const char* value() 00227 { 00228 return "\n\ 00229 \n\ 00230 "; 00231 } 00232 00233 static const char* value(const ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> &) { return value(); } 00234 }; 00235 00236 template<class ContainerAllocator> struct IsFixedSize< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > : public TrueType {}; 00237 } // namespace message_traits 00238 } // namespace ros 00239 00240 00241 namespace ros 00242 { 00243 namespace message_traits 00244 { 00245 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > : public TrueType {}; 00246 template<class ContainerAllocator> struct IsMessage< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> const> : public TrueType {}; 00247 template<class ContainerAllocator> 00248 struct MD5Sum< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > { 00249 static const char* value() 00250 { 00251 return "beccb82ed0f84d8e0d5117e923477b3f"; 00252 } 00253 00254 static const char* value(const ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> &) { return value(); } 00255 static const uint64_t static_value1 = 0xbeccb82ed0f84d8eULL; 00256 static const uint64_t static_value2 = 0x0d5117e923477b3fULL; 00257 }; 00258 00259 template<class ContainerAllocator> 00260 struct DataType< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > { 00261 static const char* value() 00262 { 00263 return "wpa_supplicant_node/AddNetworkResponse"; 00264 } 00265 00266 static const char* value(const ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> &) { return value(); } 00267 }; 00268 00269 template<class ContainerAllocator> 00270 struct Definition< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > { 00271 static const char* value() 00272 { 00273 return "bool success\n\ 00274 int32 network_id\n\ 00275 \n\ 00276 \n\ 00277 "; 00278 } 00279 00280 static const char* value(const ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> &) { return value(); } 00281 }; 00282 00283 template<class ContainerAllocator> struct IsFixedSize< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > : public TrueType {}; 00284 } // namespace message_traits 00285 } // namespace ros 00286 00287 namespace ros 00288 { 00289 namespace serialization 00290 { 00291 00292 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > 00293 { 00294 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00295 { 00296 } 00297 00298 ROS_DECLARE_ALLINONE_SERIALIZER; 00299 }; // struct AddNetworkRequest_ 00300 } // namespace serialization 00301 } // namespace ros 00302 00303 00304 namespace ros 00305 { 00306 namespace serialization 00307 { 00308 00309 template<class ContainerAllocator> struct Serializer< ::wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > 00310 { 00311 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00312 { 00313 stream.next(m.success); 00314 stream.next(m.network_id); 00315 } 00316 00317 ROS_DECLARE_ALLINONE_SERIALIZER; 00318 }; // struct AddNetworkResponse_ 00319 } // namespace serialization 00320 } // namespace ros 00321 00322 namespace ros 00323 { 00324 namespace service_traits 00325 { 00326 template<> 00327 struct MD5Sum<wpa_supplicant_node::AddNetwork> { 00328 static const char* value() 00329 { 00330 return "beccb82ed0f84d8e0d5117e923477b3f"; 00331 } 00332 00333 static const char* value(const wpa_supplicant_node::AddNetwork&) { return value(); } 00334 }; 00335 00336 template<> 00337 struct DataType<wpa_supplicant_node::AddNetwork> { 00338 static const char* value() 00339 { 00340 return "wpa_supplicant_node/AddNetwork"; 00341 } 00342 00343 static const char* value(const wpa_supplicant_node::AddNetwork&) { return value(); } 00344 }; 00345 00346 template<class ContainerAllocator> 00347 struct MD5Sum<wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > { 00348 static const char* value() 00349 { 00350 return "beccb82ed0f84d8e0d5117e923477b3f"; 00351 } 00352 00353 static const char* value(const wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> &) { return value(); } 00354 }; 00355 00356 template<class ContainerAllocator> 00357 struct DataType<wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> > { 00358 static const char* value() 00359 { 00360 return "wpa_supplicant_node/AddNetwork"; 00361 } 00362 00363 static const char* value(const wpa_supplicant_node::AddNetworkRequest_<ContainerAllocator> &) { return value(); } 00364 }; 00365 00366 template<class ContainerAllocator> 00367 struct MD5Sum<wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > { 00368 static const char* value() 00369 { 00370 return "beccb82ed0f84d8e0d5117e923477b3f"; 00371 } 00372 00373 static const char* value(const wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> &) { return value(); } 00374 }; 00375 00376 template<class ContainerAllocator> 00377 struct DataType<wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> > { 00378 static const char* value() 00379 { 00380 return "wpa_supplicant_node/AddNetwork"; 00381 } 00382 00383 static const char* value(const wpa_supplicant_node::AddNetworkResponse_<ContainerAllocator> &) { return value(); } 00384 }; 00385 00386 } // namespace service_traits 00387 } // namespace ros 00388 00389 #endif // WPA_SUPPLICANT_NODE_SERVICE_ADDNETWORK_H 00390