AuctionService.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/joaoquintas/ros_workspace/SRC/auction_methods_stack/auction_srvs/srv/AuctionService.srv */
00002 #ifndef AUCTION_SRVS_SERVICE_AUCTIONSERVICE_H
00003 #define AUCTION_SRVS_SERVICE_AUCTIONSERVICE_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/Auction.h"
00020 
00021 
00022 #include "auction_msgs/Bid.h"
00023 
00024 namespace auction_srvs
00025 {
00026 template <class ContainerAllocator>
00027 struct AuctionServiceRequest_ {
00028   typedef AuctionServiceRequest_<ContainerAllocator> Type;
00029 
00030   AuctionServiceRequest_()
00031   : role()
00032   , auction_type()
00033   , sending_node()
00034   , nodes_collected()
00035   , auction_data()
00036   {
00037   }
00038 
00039   AuctionServiceRequest_(const ContainerAllocator& _alloc)
00040   : role(_alloc)
00041   , auction_type(_alloc)
00042   , sending_node(_alloc)
00043   , nodes_collected(_alloc)
00044   , auction_data(_alloc)
00045   {
00046   }
00047 
00048   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _role_type;
00049   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  role;
00050 
00051   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _auction_type_type;
00052   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  auction_type;
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _sending_node_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  sending_node;
00056 
00057   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _nodes_collected_type;
00058   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  nodes_collected;
00059 
00060   typedef  ::auction_msgs::Auction_<ContainerAllocator>  _auction_data_type;
00061    ::auction_msgs::Auction_<ContainerAllocator>  auction_data;
00062 
00063 
00064 private:
00065   static const char* __s_getDataType_() { return "auction_srvs/AuctionServiceRequest"; }
00066 public:
00067   ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00068 
00069   ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00070 
00071 private:
00072   static const char* __s_getMD5Sum_() { return "71cdc8b8f8b1a628ff5e78f4bb4202a8"; }
00073 public:
00074   ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00075 
00076   ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00077 
00078 private:
00079   static const char* __s_getServerMD5Sum_() { return "d6b81557d076b0cba63ad79512801bd6"; }
00080 public:
00081   ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00082 
00083   ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00084 
00085 private:
00086   static const char* __s_getMessageDefinition_() { return "\n\
00087 \n\
00088 \n\
00089 string role\n\
00090 string auction_type\n\
00091 string sending_node\n\
00092 string nodes_collected\n\
00093 auction_msgs/Auction auction_data\n\
00094 \n\
00095 \n\
00096 ================================================================================\n\
00097 MSG: auction_msgs/Auction\n\
00098 Header header\n\
00099 string command\n\
00100 string task_type_name\n\
00101 string subject\n\
00102 string metrics\n\
00103 duration length\n\
00104 geometry_msgs/Point task_location\n\
00105 \n\
00106 ================================================================================\n\
00107 MSG: std_msgs/Header\n\
00108 # Standard metadata for higher-level stamped data types.\n\
00109 # This is generally used to communicate timestamped data \n\
00110 # in a particular coordinate frame.\n\
00111 # \n\
00112 # sequence ID: consecutively increasing ID \n\
00113 uint32 seq\n\
00114 #Two-integer timestamp that is expressed as:\n\
00115 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00116 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00117 # time-handling sugar is provided by the client library\n\
00118 time stamp\n\
00119 #Frame this data is associated with\n\
00120 # 0: no frame\n\
00121 # 1: global frame\n\
00122 string frame_id\n\
00123 \n\
00124 ================================================================================\n\
00125 MSG: geometry_msgs/Point\n\
00126 # This contains the position of a point in free space\n\
00127 float64 x\n\
00128 float64 y\n\
00129 float64 z\n\
00130 \n\
00131 "; }
00132 public:
00133   ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00134 
00135   ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00136 
00137   ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00138   {
00139     ros::serialization::OStream stream(write_ptr, 1000000000);
00140     ros::serialization::serialize(stream, role);
00141     ros::serialization::serialize(stream, auction_type);
00142     ros::serialization::serialize(stream, sending_node);
00143     ros::serialization::serialize(stream, nodes_collected);
00144     ros::serialization::serialize(stream, auction_data);
00145     return stream.getData();
00146   }
00147 
00148   ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00149   {
00150     ros::serialization::IStream stream(read_ptr, 1000000000);
00151     ros::serialization::deserialize(stream, role);
00152     ros::serialization::deserialize(stream, auction_type);
00153     ros::serialization::deserialize(stream, sending_node);
00154     ros::serialization::deserialize(stream, nodes_collected);
00155     ros::serialization::deserialize(stream, auction_data);
00156     return stream.getData();
00157   }
00158 
00159   ROS_DEPRECATED virtual uint32_t serializationLength() const
00160   {
00161     uint32_t size = 0;
00162     size += ros::serialization::serializationLength(role);
00163     size += ros::serialization::serializationLength(auction_type);
00164     size += ros::serialization::serializationLength(sending_node);
00165     size += ros::serialization::serializationLength(nodes_collected);
00166     size += ros::serialization::serializationLength(auction_data);
00167     return size;
00168   }
00169 
00170   typedef boost::shared_ptr< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> > Ptr;
00171   typedef boost::shared_ptr< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator>  const> ConstPtr;
00172   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00173 }; // struct AuctionServiceRequest
00174 typedef  ::auction_srvs::AuctionServiceRequest_<std::allocator<void> > AuctionServiceRequest;
00175 
00176 typedef boost::shared_ptr< ::auction_srvs::AuctionServiceRequest> AuctionServiceRequestPtr;
00177 typedef boost::shared_ptr< ::auction_srvs::AuctionServiceRequest const> AuctionServiceRequestConstPtr;
00178 
00179 
00180 template <class ContainerAllocator>
00181 struct AuctionServiceResponse_ {
00182   typedef AuctionServiceResponse_<ContainerAllocator> Type;
00183 
00184   AuctionServiceResponse_()
00185   : response_info()
00186   , bid_data()
00187   {
00188   }
00189 
00190   AuctionServiceResponse_(const ContainerAllocator& _alloc)
00191   : response_info(_alloc)
00192   , bid_data(_alloc)
00193   {
00194   }
00195 
00196   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _response_info_type;
00197   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  response_info;
00198 
00199   typedef  ::auction_msgs::Bid_<ContainerAllocator>  _bid_data_type;
00200    ::auction_msgs::Bid_<ContainerAllocator>  bid_data;
00201 
00202 
00203 private:
00204   static const char* __s_getDataType_() { return "auction_srvs/AuctionServiceResponse"; }
00205 public:
00206   ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00207 
00208   ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00209 
00210 private:
00211   static const char* __s_getMD5Sum_() { return "60191484f19ef1e101f27cfcfa9ff2c2"; }
00212 public:
00213   ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00214 
00215   ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00216 
00217 private:
00218   static const char* __s_getServerMD5Sum_() { return "d6b81557d076b0cba63ad79512801bd6"; }
00219 public:
00220   ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00221 
00222   ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00223 
00224 private:
00225   static const char* __s_getMessageDefinition_() { return "\n\
00226 \n\
00227 \n\
00228 string response_info\n\
00229 auction_msgs/Bid bid_data\n\
00230 \n\
00231 ================================================================================\n\
00232 MSG: auction_msgs/Bid\n\
00233 Header header\n\
00234 string buyer_id\n\
00235 int64 cost_distance\n\
00236 \n\
00237 ================================================================================\n\
00238 MSG: std_msgs/Header\n\
00239 # Standard metadata for higher-level stamped data types.\n\
00240 # This is generally used to communicate timestamped data \n\
00241 # in a particular coordinate frame.\n\
00242 # \n\
00243 # sequence ID: consecutively increasing ID \n\
00244 uint32 seq\n\
00245 #Two-integer timestamp that is expressed as:\n\
00246 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00247 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00248 # time-handling sugar is provided by the client library\n\
00249 time stamp\n\
00250 #Frame this data is associated with\n\
00251 # 0: no frame\n\
00252 # 1: global frame\n\
00253 string frame_id\n\
00254 \n\
00255 "; }
00256 public:
00257   ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00258 
00259   ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00260 
00261   ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00262   {
00263     ros::serialization::OStream stream(write_ptr, 1000000000);
00264     ros::serialization::serialize(stream, response_info);
00265     ros::serialization::serialize(stream, bid_data);
00266     return stream.getData();
00267   }
00268 
00269   ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00270   {
00271     ros::serialization::IStream stream(read_ptr, 1000000000);
00272     ros::serialization::deserialize(stream, response_info);
00273     ros::serialization::deserialize(stream, bid_data);
00274     return stream.getData();
00275   }
00276 
00277   ROS_DEPRECATED virtual uint32_t serializationLength() const
00278   {
00279     uint32_t size = 0;
00280     size += ros::serialization::serializationLength(response_info);
00281     size += ros::serialization::serializationLength(bid_data);
00282     return size;
00283   }
00284 
00285   typedef boost::shared_ptr< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> > Ptr;
00286   typedef boost::shared_ptr< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator>  const> ConstPtr;
00287   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00288 }; // struct AuctionServiceResponse
00289 typedef  ::auction_srvs::AuctionServiceResponse_<std::allocator<void> > AuctionServiceResponse;
00290 
00291 typedef boost::shared_ptr< ::auction_srvs::AuctionServiceResponse> AuctionServiceResponsePtr;
00292 typedef boost::shared_ptr< ::auction_srvs::AuctionServiceResponse const> AuctionServiceResponseConstPtr;
00293 
00294 struct AuctionService
00295 {
00296 
00297 typedef AuctionServiceRequest Request;
00298 typedef AuctionServiceResponse Response;
00299 Request request;
00300 Response response;
00301 
00302 typedef Request RequestType;
00303 typedef Response ResponseType;
00304 }; // struct AuctionService
00305 } // namespace auction_srvs
00306 
00307 namespace ros
00308 {
00309 namespace message_traits
00310 {
00311 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> > : public TrueType {};
00312 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator>  const> : public TrueType {};
00313 template<class ContainerAllocator>
00314 struct MD5Sum< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> > {
00315   static const char* value() 
00316   {
00317     return "71cdc8b8f8b1a628ff5e78f4bb4202a8";
00318   }
00319 
00320   static const char* value(const  ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> &) { return value(); } 
00321   static const uint64_t static_value1 = 0x71cdc8b8f8b1a628ULL;
00322   static const uint64_t static_value2 = 0xff5e78f4bb4202a8ULL;
00323 };
00324 
00325 template<class ContainerAllocator>
00326 struct DataType< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> > {
00327   static const char* value() 
00328   {
00329     return "auction_srvs/AuctionServiceRequest";
00330   }
00331 
00332   static const char* value(const  ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> &) { return value(); } 
00333 };
00334 
00335 template<class ContainerAllocator>
00336 struct Definition< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> > {
00337   static const char* value() 
00338   {
00339     return "\n\
00340 \n\
00341 \n\
00342 string role\n\
00343 string auction_type\n\
00344 string sending_node\n\
00345 string nodes_collected\n\
00346 auction_msgs/Auction auction_data\n\
00347 \n\
00348 \n\
00349 ================================================================================\n\
00350 MSG: auction_msgs/Auction\n\
00351 Header header\n\
00352 string command\n\
00353 string task_type_name\n\
00354 string subject\n\
00355 string metrics\n\
00356 duration length\n\
00357 geometry_msgs/Point task_location\n\
00358 \n\
00359 ================================================================================\n\
00360 MSG: std_msgs/Header\n\
00361 # Standard metadata for higher-level stamped data types.\n\
00362 # This is generally used to communicate timestamped data \n\
00363 # in a particular coordinate frame.\n\
00364 # \n\
00365 # sequence ID: consecutively increasing ID \n\
00366 uint32 seq\n\
00367 #Two-integer timestamp that is expressed as:\n\
00368 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00369 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00370 # time-handling sugar is provided by the client library\n\
00371 time stamp\n\
00372 #Frame this data is associated with\n\
00373 # 0: no frame\n\
00374 # 1: global frame\n\
00375 string frame_id\n\
00376 \n\
00377 ================================================================================\n\
00378 MSG: geometry_msgs/Point\n\
00379 # This contains the position of a point in free space\n\
00380 float64 x\n\
00381 float64 y\n\
00382 float64 z\n\
00383 \n\
00384 ";
00385   }
00386 
00387   static const char* value(const  ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> &) { return value(); } 
00388 };
00389 
00390 } // namespace message_traits
00391 } // namespace ros
00392 
00393 
00394 namespace ros
00395 {
00396 namespace message_traits
00397 {
00398 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> > : public TrueType {};
00399 template<class ContainerAllocator> struct IsMessage< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator>  const> : public TrueType {};
00400 template<class ContainerAllocator>
00401 struct MD5Sum< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> > {
00402   static const char* value() 
00403   {
00404     return "60191484f19ef1e101f27cfcfa9ff2c2";
00405   }
00406 
00407   static const char* value(const  ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> &) { return value(); } 
00408   static const uint64_t static_value1 = 0x60191484f19ef1e1ULL;
00409   static const uint64_t static_value2 = 0x01f27cfcfa9ff2c2ULL;
00410 };
00411 
00412 template<class ContainerAllocator>
00413 struct DataType< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> > {
00414   static const char* value() 
00415   {
00416     return "auction_srvs/AuctionServiceResponse";
00417   }
00418 
00419   static const char* value(const  ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> &) { return value(); } 
00420 };
00421 
00422 template<class ContainerAllocator>
00423 struct Definition< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> > {
00424   static const char* value() 
00425   {
00426     return "\n\
00427 \n\
00428 \n\
00429 string response_info\n\
00430 auction_msgs/Bid bid_data\n\
00431 \n\
00432 ================================================================================\n\
00433 MSG: auction_msgs/Bid\n\
00434 Header header\n\
00435 string buyer_id\n\
00436 int64 cost_distance\n\
00437 \n\
00438 ================================================================================\n\
00439 MSG: std_msgs/Header\n\
00440 # Standard metadata for higher-level stamped data types.\n\
00441 # This is generally used to communicate timestamped data \n\
00442 # in a particular coordinate frame.\n\
00443 # \n\
00444 # sequence ID: consecutively increasing ID \n\
00445 uint32 seq\n\
00446 #Two-integer timestamp that is expressed as:\n\
00447 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00448 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00449 # time-handling sugar is provided by the client library\n\
00450 time stamp\n\
00451 #Frame this data is associated with\n\
00452 # 0: no frame\n\
00453 # 1: global frame\n\
00454 string frame_id\n\
00455 \n\
00456 ";
00457   }
00458 
00459   static const char* value(const  ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> &) { return value(); } 
00460 };
00461 
00462 } // namespace message_traits
00463 } // namespace ros
00464 
00465 namespace ros
00466 {
00467 namespace serialization
00468 {
00469 
00470 template<class ContainerAllocator> struct Serializer< ::auction_srvs::AuctionServiceRequest_<ContainerAllocator> >
00471 {
00472   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00473   {
00474     stream.next(m.role);
00475     stream.next(m.auction_type);
00476     stream.next(m.sending_node);
00477     stream.next(m.nodes_collected);
00478     stream.next(m.auction_data);
00479   }
00480 
00481   ROS_DECLARE_ALLINONE_SERIALIZER;
00482 }; // struct AuctionServiceRequest_
00483 } // namespace serialization
00484 } // namespace ros
00485 
00486 
00487 namespace ros
00488 {
00489 namespace serialization
00490 {
00491 
00492 template<class ContainerAllocator> struct Serializer< ::auction_srvs::AuctionServiceResponse_<ContainerAllocator> >
00493 {
00494   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00495   {
00496     stream.next(m.response_info);
00497     stream.next(m.bid_data);
00498   }
00499 
00500   ROS_DECLARE_ALLINONE_SERIALIZER;
00501 }; // struct AuctionServiceResponse_
00502 } // namespace serialization
00503 } // namespace ros
00504 
00505 namespace ros
00506 {
00507 namespace service_traits
00508 {
00509 template<>
00510 struct MD5Sum<auction_srvs::AuctionService> {
00511   static const char* value() 
00512   {
00513     return "d6b81557d076b0cba63ad79512801bd6";
00514   }
00515 
00516   static const char* value(const auction_srvs::AuctionService&) { return value(); } 
00517 };
00518 
00519 template<>
00520 struct DataType<auction_srvs::AuctionService> {
00521   static const char* value() 
00522   {
00523     return "auction_srvs/AuctionService";
00524   }
00525 
00526   static const char* value(const auction_srvs::AuctionService&) { return value(); } 
00527 };
00528 
00529 template<class ContainerAllocator>
00530 struct MD5Sum<auction_srvs::AuctionServiceRequest_<ContainerAllocator> > {
00531   static const char* value() 
00532   {
00533     return "d6b81557d076b0cba63ad79512801bd6";
00534   }
00535 
00536   static const char* value(const auction_srvs::AuctionServiceRequest_<ContainerAllocator> &) { return value(); } 
00537 };
00538 
00539 template<class ContainerAllocator>
00540 struct DataType<auction_srvs::AuctionServiceRequest_<ContainerAllocator> > {
00541   static const char* value() 
00542   {
00543     return "auction_srvs/AuctionService";
00544   }
00545 
00546   static const char* value(const auction_srvs::AuctionServiceRequest_<ContainerAllocator> &) { return value(); } 
00547 };
00548 
00549 template<class ContainerAllocator>
00550 struct MD5Sum<auction_srvs::AuctionServiceResponse_<ContainerAllocator> > {
00551   static const char* value() 
00552   {
00553     return "d6b81557d076b0cba63ad79512801bd6";
00554   }
00555 
00556   static const char* value(const auction_srvs::AuctionServiceResponse_<ContainerAllocator> &) { return value(); } 
00557 };
00558 
00559 template<class ContainerAllocator>
00560 struct DataType<auction_srvs::AuctionServiceResponse_<ContainerAllocator> > {
00561   static const char* value() 
00562   {
00563     return "auction_srvs/AuctionService";
00564   }
00565 
00566   static const char* value(const auction_srvs::AuctionServiceResponse_<ContainerAllocator> &) { return value(); } 
00567 };
00568 
00569 } // namespace service_traits
00570 } // namespace ros
00571 
00572 #endif // AUCTION_SRVS_SERVICE_AUCTIONSERVICE_H
00573 


auction_srvs
Author(s): Joao Manuel Leitao Quintas
autogenerated on Mon Jan 6 2014 11:25:32