Go to the documentation of this file.00001
00002 #ifndef AUCTION_SRVS_SERVICE_BUYERFORWARDBIDSERVICE_H
00003 #define AUCTION_SRVS_SERVICE_BUYERFORWARDBIDSERVICE_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 "auction_msgs/Bid.h"
00020
00021
00022
00023 namespace auction_srvs
00024 {
00025 template <class ContainerAllocator>
00026 struct BuyerForwardBidServiceRequest_ {
00027 typedef BuyerForwardBidServiceRequest_<ContainerAllocator> Type;
00028
00029 BuyerForwardBidServiceRequest_()
00030 : sending_node()
00031 , path()
00032 , bid_data()
00033 {
00034 }
00035
00036 BuyerForwardBidServiceRequest_(const ContainerAllocator& _alloc)
00037 : sending_node(_alloc)
00038 , path(_alloc)
00039 , bid_data(_alloc)
00040 {
00041 }
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _sending_node_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > sending_node;
00045
00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _path_type;
00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > path;
00048
00049 typedef ::auction_msgs::Bid_<ContainerAllocator> _bid_data_type;
00050 ::auction_msgs::Bid_<ContainerAllocator> bid_data;
00051
00052
00053 private:
00054 static const char* __s_getDataType_() { return "auction_srvs/BuyerForwardBidServiceRequest"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00057
00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00059
00060 private:
00061 static const char* __s_getMD5Sum_() { return "b4c86983f75792aea5ba04c640173bff"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00064
00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00066
00067 private:
00068 static const char* __s_getServerMD5Sum_() { return "cbc49abd05aae81cb92ec30f51b288e8"; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00071
00072 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00073
00074 private:
00075 static const char* __s_getMessageDefinition_() { return "\n\
00076 \n\
00077 \n\
00078 string sending_node\n\
00079 string path\n\
00080 auction_msgs/Bid bid_data\n\
00081 \n\
00082 \n\
00083 ================================================================================\n\
00084 MSG: auction_msgs/Bid\n\
00085 Header header\n\
00086 string buyer_id\n\
00087 int64 cost_distance\n\
00088 \n\
00089 ================================================================================\n\
00090 MSG: std_msgs/Header\n\
00091 # Standard metadata for higher-level stamped data types.\n\
00092 # This is generally used to communicate timestamped data \n\
00093 # in a particular coordinate frame.\n\
00094 # \n\
00095 # sequence ID: consecutively increasing ID \n\
00096 uint32 seq\n\
00097 #Two-integer timestamp that is expressed as:\n\
00098 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00099 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00100 # time-handling sugar is provided by the client library\n\
00101 time stamp\n\
00102 #Frame this data is associated with\n\
00103 # 0: no frame\n\
00104 # 1: global frame\n\
00105 string frame_id\n\
00106 \n\
00107 "; }
00108 public:
00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00110
00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00112
00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00114 {
00115 ros::serialization::OStream stream(write_ptr, 1000000000);
00116 ros::serialization::serialize(stream, sending_node);
00117 ros::serialization::serialize(stream, path);
00118 ros::serialization::serialize(stream, bid_data);
00119 return stream.getData();
00120 }
00121
00122 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00123 {
00124 ros::serialization::IStream stream(read_ptr, 1000000000);
00125 ros::serialization::deserialize(stream, sending_node);
00126 ros::serialization::deserialize(stream, path);
00127 ros::serialization::deserialize(stream, bid_data);
00128 return stream.getData();
00129 }
00130
00131 ROS_DEPRECATED virtual uint32_t serializationLength() const
00132 {
00133 uint32_t size = 0;
00134 size += ros::serialization::serializationLength(sending_node);
00135 size += ros::serialization::serializationLength(path);
00136 size += ros::serialization::serializationLength(bid_data);
00137 return size;
00138 }
00139
00140 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> > Ptr;
00141 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> const> ConstPtr;
00142 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00143 };
00144 typedef ::auction_srvs::BuyerForwardBidServiceRequest_<std::allocator<void> > BuyerForwardBidServiceRequest;
00145
00146 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceRequest> BuyerForwardBidServiceRequestPtr;
00147 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceRequest const> BuyerForwardBidServiceRequestConstPtr;
00148
00149
00150 template <class ContainerAllocator>
00151 struct BuyerForwardBidServiceResponse_ {
00152 typedef BuyerForwardBidServiceResponse_<ContainerAllocator> Type;
00153
00154 BuyerForwardBidServiceResponse_()
00155 : response_info()
00156 {
00157 }
00158
00159 BuyerForwardBidServiceResponse_(const ContainerAllocator& _alloc)
00160 : response_info(_alloc)
00161 {
00162 }
00163
00164 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _response_info_type;
00165 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > response_info;
00166
00167
00168 private:
00169 static const char* __s_getDataType_() { return "auction_srvs/BuyerForwardBidServiceResponse"; }
00170 public:
00171 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00172
00173 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00174
00175 private:
00176 static const char* __s_getMD5Sum_() { return "3807fca4b87e6d8139990870471dd195"; }
00177 public:
00178 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00179
00180 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00181
00182 private:
00183 static const char* __s_getServerMD5Sum_() { return "cbc49abd05aae81cb92ec30f51b288e8"; }
00184 public:
00185 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00186
00187 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00188
00189 private:
00190 static const char* __s_getMessageDefinition_() { return "\n\
00191 \n\
00192 \n\
00193 string response_info\n\
00194 \n\
00195 "; }
00196 public:
00197 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00198
00199 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00200
00201 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00202 {
00203 ros::serialization::OStream stream(write_ptr, 1000000000);
00204 ros::serialization::serialize(stream, response_info);
00205 return stream.getData();
00206 }
00207
00208 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00209 {
00210 ros::serialization::IStream stream(read_ptr, 1000000000);
00211 ros::serialization::deserialize(stream, response_info);
00212 return stream.getData();
00213 }
00214
00215 ROS_DEPRECATED virtual uint32_t serializationLength() const
00216 {
00217 uint32_t size = 0;
00218 size += ros::serialization::serializationLength(response_info);
00219 return size;
00220 }
00221
00222 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> > Ptr;
00223 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> const> ConstPtr;
00224 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00225 };
00226 typedef ::auction_srvs::BuyerForwardBidServiceResponse_<std::allocator<void> > BuyerForwardBidServiceResponse;
00227
00228 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceResponse> BuyerForwardBidServiceResponsePtr;
00229 typedef boost::shared_ptr< ::auction_srvs::BuyerForwardBidServiceResponse const> BuyerForwardBidServiceResponseConstPtr;
00230
00231 struct BuyerForwardBidService
00232 {
00233
00234 typedef BuyerForwardBidServiceRequest Request;
00235 typedef BuyerForwardBidServiceResponse Response;
00236 Request request;
00237 Response response;
00238
00239 typedef Request RequestType;
00240 typedef Response ResponseType;
00241 };
00242 }
00243
00244 namespace ros
00245 {
00246 namespace message_traits
00247 {
00248 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> > : public TrueType {};
00249 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> const> : public TrueType {};
00250 template<class ContainerAllocator>
00251 struct MD5Sum< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "b4c86983f75792aea5ba04c640173bff";
00255 }
00256
00257 static const char* value(const ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> &) { return value(); }
00258 static const uint64_t static_value1 = 0xb4c86983f75792aeULL;
00259 static const uint64_t static_value2 = 0xa5ba04c640173bffULL;
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct DataType< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "auction_srvs/BuyerForwardBidServiceRequest";
00267 }
00268
00269 static const char* value(const ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct Definition< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "\n\
00277 \n\
00278 \n\
00279 string sending_node\n\
00280 string path\n\
00281 auction_msgs/Bid bid_data\n\
00282 \n\
00283 \n\
00284 ================================================================================\n\
00285 MSG: auction_msgs/Bid\n\
00286 Header header\n\
00287 string buyer_id\n\
00288 int64 cost_distance\n\
00289 \n\
00290 ================================================================================\n\
00291 MSG: std_msgs/Header\n\
00292 # Standard metadata for higher-level stamped data types.\n\
00293 # This is generally used to communicate timestamped data \n\
00294 # in a particular coordinate frame.\n\
00295 # \n\
00296 # sequence ID: consecutively increasing ID \n\
00297 uint32 seq\n\
00298 #Two-integer timestamp that is expressed as:\n\
00299 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00300 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00301 # time-handling sugar is provided by the client library\n\
00302 time stamp\n\
00303 #Frame this data is associated with\n\
00304 # 0: no frame\n\
00305 # 1: global frame\n\
00306 string frame_id\n\
00307 \n\
00308 ";
00309 }
00310
00311 static const char* value(const ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> &) { return value(); }
00312 };
00313
00314 }
00315 }
00316
00317
00318 namespace ros
00319 {
00320 namespace message_traits
00321 {
00322 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> > : public TrueType {};
00323 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> const> : public TrueType {};
00324 template<class ContainerAllocator>
00325 struct MD5Sum< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> > {
00326 static const char* value()
00327 {
00328 return "3807fca4b87e6d8139990870471dd195";
00329 }
00330
00331 static const char* value(const ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> &) { return value(); }
00332 static const uint64_t static_value1 = 0x3807fca4b87e6d81ULL;
00333 static const uint64_t static_value2 = 0x39990870471dd195ULL;
00334 };
00335
00336 template<class ContainerAllocator>
00337 struct DataType< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> > {
00338 static const char* value()
00339 {
00340 return "auction_srvs/BuyerForwardBidServiceResponse";
00341 }
00342
00343 static const char* value(const ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> &) { return value(); }
00344 };
00345
00346 template<class ContainerAllocator>
00347 struct Definition< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> > {
00348 static const char* value()
00349 {
00350 return "\n\
00351 \n\
00352 \n\
00353 string response_info\n\
00354 \n\
00355 ";
00356 }
00357
00358 static const char* value(const ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> &) { return value(); }
00359 };
00360
00361 }
00362 }
00363
00364 namespace ros
00365 {
00366 namespace serialization
00367 {
00368
00369 template<class ContainerAllocator> struct Serializer< ::auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> >
00370 {
00371 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00372 {
00373 stream.next(m.sending_node);
00374 stream.next(m.path);
00375 stream.next(m.bid_data);
00376 }
00377
00378 ROS_DECLARE_ALLINONE_SERIALIZER;
00379 };
00380 }
00381 }
00382
00383
00384 namespace ros
00385 {
00386 namespace serialization
00387 {
00388
00389 template<class ContainerAllocator> struct Serializer< ::auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> >
00390 {
00391 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00392 {
00393 stream.next(m.response_info);
00394 }
00395
00396 ROS_DECLARE_ALLINONE_SERIALIZER;
00397 };
00398 }
00399 }
00400
00401 namespace ros
00402 {
00403 namespace service_traits
00404 {
00405 template<>
00406 struct MD5Sum<auction_srvs::BuyerForwardBidService> {
00407 static const char* value()
00408 {
00409 return "cbc49abd05aae81cb92ec30f51b288e8";
00410 }
00411
00412 static const char* value(const auction_srvs::BuyerForwardBidService&) { return value(); }
00413 };
00414
00415 template<>
00416 struct DataType<auction_srvs::BuyerForwardBidService> {
00417 static const char* value()
00418 {
00419 return "auction_srvs/BuyerForwardBidService";
00420 }
00421
00422 static const char* value(const auction_srvs::BuyerForwardBidService&) { return value(); }
00423 };
00424
00425 template<class ContainerAllocator>
00426 struct MD5Sum<auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> > {
00427 static const char* value()
00428 {
00429 return "cbc49abd05aae81cb92ec30f51b288e8";
00430 }
00431
00432 static const char* value(const auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> &) { return value(); }
00433 };
00434
00435 template<class ContainerAllocator>
00436 struct DataType<auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> > {
00437 static const char* value()
00438 {
00439 return "auction_srvs/BuyerForwardBidService";
00440 }
00441
00442 static const char* value(const auction_srvs::BuyerForwardBidServiceRequest_<ContainerAllocator> &) { return value(); }
00443 };
00444
00445 template<class ContainerAllocator>
00446 struct MD5Sum<auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> > {
00447 static const char* value()
00448 {
00449 return "cbc49abd05aae81cb92ec30f51b288e8";
00450 }
00451
00452 static const char* value(const auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> &) { return value(); }
00453 };
00454
00455 template<class ContainerAllocator>
00456 struct DataType<auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> > {
00457 static const char* value()
00458 {
00459 return "auction_srvs/BuyerForwardBidService";
00460 }
00461
00462 static const char* value(const auction_srvs::BuyerForwardBidServiceResponse_<ContainerAllocator> &) { return value(); }
00463 };
00464
00465 }
00466 }
00467
00468 #endif // AUCTION_SRVS_SERVICE_BUYERFORWARDBIDSERVICE_H
00469