Go to the documentation of this file.00001
00002 #ifndef AUCTION_MSGS_MESSAGE_BID_H
00003 #define AUCTION_MSGS_MESSAGE_BID_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 "std_msgs/Header.h"
00018
00019 namespace auction_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Bid_ {
00023 typedef Bid_<ContainerAllocator> Type;
00024
00025 Bid_()
00026 : header()
00027 , buyer_id()
00028 , cost_distance(0)
00029 {
00030 }
00031
00032 Bid_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , buyer_id(_alloc)
00035 , cost_distance(0)
00036 {
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _buyer_id_type;
00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > buyer_id;
00044
00045 typedef int64_t _cost_distance_type;
00046 int64_t cost_distance;
00047
00048
00049 private:
00050 static const char* __s_getDataType_() { return "auction_msgs/Bid"; }
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 "a9fd8c7cc5d27c4274d3730239f98aaf"; }
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_getMessageDefinition_() { return "Header header\n\
00065 string buyer_id\n\
00066 int64 cost_distance\n\
00067 \n\
00068 ================================================================================\n\
00069 MSG: std_msgs/Header\n\
00070 # Standard metadata for higher-level stamped data types.\n\
00071 # This is generally used to communicate timestamped data \n\
00072 # in a particular coordinate frame.\n\
00073 # \n\
00074 # sequence ID: consecutively increasing ID \n\
00075 uint32 seq\n\
00076 #Two-integer timestamp that is expressed as:\n\
00077 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00078 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00079 # time-handling sugar is provided by the client library\n\
00080 time stamp\n\
00081 #Frame this data is associated with\n\
00082 # 0: no frame\n\
00083 # 1: global frame\n\
00084 string frame_id\n\
00085 \n\
00086 "; }
00087 public:
00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00089
00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00091
00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00093 {
00094 ros::serialization::OStream stream(write_ptr, 1000000000);
00095 ros::serialization::serialize(stream, header);
00096 ros::serialization::serialize(stream, buyer_id);
00097 ros::serialization::serialize(stream, cost_distance);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00102 {
00103 ros::serialization::IStream stream(read_ptr, 1000000000);
00104 ros::serialization::deserialize(stream, header);
00105 ros::serialization::deserialize(stream, buyer_id);
00106 ros::serialization::deserialize(stream, cost_distance);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(header);
00114 size += ros::serialization::serializationLength(buyer_id);
00115 size += ros::serialization::serializationLength(cost_distance);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::auction_msgs::Bid_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::auction_msgs::Bid_<ContainerAllocator> const> ConstPtr;
00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00122 };
00123 typedef ::auction_msgs::Bid_<std::allocator<void> > Bid;
00124
00125 typedef boost::shared_ptr< ::auction_msgs::Bid> BidPtr;
00126 typedef boost::shared_ptr< ::auction_msgs::Bid const> BidConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::auction_msgs::Bid_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::auction_msgs::Bid_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator> struct IsMessage< ::auction_msgs::Bid_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct IsMessage< ::auction_msgs::Bid_<ContainerAllocator> const> : public TrueType {};
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::auction_msgs::Bid_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "a9fd8c7cc5d27c4274d3730239f98aaf";
00148 }
00149
00150 static const char* value(const ::auction_msgs::Bid_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0xa9fd8c7cc5d27c42ULL;
00152 static const uint64_t static_value2 = 0x74d3730239f98aafULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::auction_msgs::Bid_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "auction_msgs/Bid";
00160 }
00161
00162 static const char* value(const ::auction_msgs::Bid_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::auction_msgs::Bid_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "Header header\n\
00170 string buyer_id\n\
00171 int64 cost_distance\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: std_msgs/Header\n\
00175 # Standard metadata for higher-level stamped data types.\n\
00176 # This is generally used to communicate timestamped data \n\
00177 # in a particular coordinate frame.\n\
00178 # \n\
00179 # sequence ID: consecutively increasing ID \n\
00180 uint32 seq\n\
00181 #Two-integer timestamp that is expressed as:\n\
00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00184 # time-handling sugar is provided by the client library\n\
00185 time stamp\n\
00186 #Frame this data is associated with\n\
00187 # 0: no frame\n\
00188 # 1: global frame\n\
00189 string frame_id\n\
00190 \n\
00191 ";
00192 }
00193
00194 static const char* value(const ::auction_msgs::Bid_<ContainerAllocator> &) { return value(); }
00195 };
00196
00197 template<class ContainerAllocator> struct HasHeader< ::auction_msgs::Bid_<ContainerAllocator> > : public TrueType {};
00198 template<class ContainerAllocator> struct HasHeader< const ::auction_msgs::Bid_<ContainerAllocator> > : public TrueType {};
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace serialization
00205 {
00206
00207 template<class ContainerAllocator> struct Serializer< ::auction_msgs::Bid_<ContainerAllocator> >
00208 {
00209 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00210 {
00211 stream.next(m.header);
00212 stream.next(m.buyer_id);
00213 stream.next(m.cost_distance);
00214 }
00215
00216 ROS_DECLARE_ALLINONE_SERIALIZER;
00217 };
00218 }
00219 }
00220
00221 namespace ros
00222 {
00223 namespace message_operations
00224 {
00225
00226 template<class ContainerAllocator>
00227 struct Printer< ::auction_msgs::Bid_<ContainerAllocator> >
00228 {
00229 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::auction_msgs::Bid_<ContainerAllocator> & v)
00230 {
00231 s << indent << "header: ";
00232 s << std::endl;
00233 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00234 s << indent << "buyer_id: ";
00235 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.buyer_id);
00236 s << indent << "cost_distance: ";
00237 Printer<int64_t>::stream(s, indent + " ", v.cost_distance);
00238 }
00239 };
00240
00241
00242 }
00243 }
00244
00245 #endif // AUCTION_MSGS_MESSAGE_BID_H
00246