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