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