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