00001
00002 #ifndef WAREHOUSE_SERVICE_PULLMESSAGE_H
00003 #define WAREHOUSE_SERVICE_PULLMESSAGE_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 warehouse
00019 {
00020 template <class ContainerAllocator>
00021 struct PullMessageRequest_ : public ros::Message
00022 {
00023 typedef PullMessageRequest_<ContainerAllocator> Type;
00024
00025 PullMessageRequest_()
00026 : db_name()
00027 , collection_name()
00028 , query_id()
00029 {
00030 }
00031
00032 PullMessageRequest_(const ContainerAllocator& _alloc)
00033 : db_name(_alloc)
00034 , collection_name(_alloc)
00035 , query_id(_alloc)
00036 {
00037 }
00038
00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _db_name_type;
00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > db_name;
00041
00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _collection_name_type;
00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > collection_name;
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _query_id_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > query_id;
00047
00048
00049 private:
00050 static const char* __s_getDataType_() { return "warehouse/PullMessageRequest"; }
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 "814cd901a14878d47b309e001c0b234e"; }
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 "0fe07f71870836db684293e395593937"; }
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 "string db_name\n\
00072 string collection_name\n\
00073 string query_id\n\
00074 \n\
00075 "; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00078
00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00082 {
00083 ros::serialization::OStream stream(write_ptr, 1000000000);
00084 ros::serialization::serialize(stream, db_name);
00085 ros::serialization::serialize(stream, collection_name);
00086 ros::serialization::serialize(stream, query_id);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00091 {
00092 ros::serialization::IStream stream(read_ptr, 1000000000);
00093 ros::serialization::deserialize(stream, db_name);
00094 ros::serialization::deserialize(stream, collection_name);
00095 ros::serialization::deserialize(stream, query_id);
00096 return stream.getData();
00097 }
00098
00099 ROS_DEPRECATED virtual uint32_t serializationLength() const
00100 {
00101 uint32_t size = 0;
00102 size += ros::serialization::serializationLength(db_name);
00103 size += ros::serialization::serializationLength(collection_name);
00104 size += ros::serialization::serializationLength(query_id);
00105 return size;
00106 }
00107
00108 typedef boost::shared_ptr< ::warehouse::PullMessageRequest_<ContainerAllocator> > Ptr;
00109 typedef boost::shared_ptr< ::warehouse::PullMessageRequest_<ContainerAllocator> const> ConstPtr;
00110 };
00111 typedef ::warehouse::PullMessageRequest_<std::allocator<void> > PullMessageRequest;
00112
00113 typedef boost::shared_ptr< ::warehouse::PullMessageRequest> PullMessageRequestPtr;
00114 typedef boost::shared_ptr< ::warehouse::PullMessageRequest const> PullMessageRequestConstPtr;
00115
00116
00117 template <class ContainerAllocator>
00118 struct PullMessageResponse_ : public ros::Message
00119 {
00120 typedef PullMessageResponse_<ContainerAllocator> Type;
00121
00122 PullMessageResponse_()
00123 : num_messages_sent(0)
00124 {
00125 }
00126
00127 PullMessageResponse_(const ContainerAllocator& _alloc)
00128 : num_messages_sent(0)
00129 {
00130 }
00131
00132 typedef uint8_t _num_messages_sent_type;
00133 uint8_t num_messages_sent;
00134
00135
00136 private:
00137 static const char* __s_getDataType_() { return "warehouse/PullMessageResponse"; }
00138 public:
00139 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00140
00141 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00142
00143 private:
00144 static const char* __s_getMD5Sum_() { return "3cf56d7b7dcbe3266b78fc31eb8a472c"; }
00145 public:
00146 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00147
00148 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00149
00150 private:
00151 static const char* __s_getServerMD5Sum_() { return "0fe07f71870836db684293e395593937"; }
00152 public:
00153 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00154
00155 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00156
00157 private:
00158 static const char* __s_getMessageDefinition_() { return "\n\
00159 \n\
00160 uint8 num_messages_sent\n\
00161 \n\
00162 \n\
00163 "; }
00164 public:
00165 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00166
00167 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00168
00169 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00170 {
00171 ros::serialization::OStream stream(write_ptr, 1000000000);
00172 ros::serialization::serialize(stream, num_messages_sent);
00173 return stream.getData();
00174 }
00175
00176 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00177 {
00178 ros::serialization::IStream stream(read_ptr, 1000000000);
00179 ros::serialization::deserialize(stream, num_messages_sent);
00180 return stream.getData();
00181 }
00182
00183 ROS_DEPRECATED virtual uint32_t serializationLength() const
00184 {
00185 uint32_t size = 0;
00186 size += ros::serialization::serializationLength(num_messages_sent);
00187 return size;
00188 }
00189
00190 typedef boost::shared_ptr< ::warehouse::PullMessageResponse_<ContainerAllocator> > Ptr;
00191 typedef boost::shared_ptr< ::warehouse::PullMessageResponse_<ContainerAllocator> const> ConstPtr;
00192 };
00193 typedef ::warehouse::PullMessageResponse_<std::allocator<void> > PullMessageResponse;
00194
00195 typedef boost::shared_ptr< ::warehouse::PullMessageResponse> PullMessageResponsePtr;
00196 typedef boost::shared_ptr< ::warehouse::PullMessageResponse const> PullMessageResponseConstPtr;
00197
00198 struct PullMessage
00199 {
00200
00201 typedef PullMessageRequest Request;
00202 typedef PullMessageResponse Response;
00203 Request request;
00204 Response response;
00205
00206 typedef Request RequestType;
00207 typedef Response ResponseType;
00208 };
00209 }
00210
00211 namespace ros
00212 {
00213 namespace message_traits
00214 {
00215 template<class ContainerAllocator>
00216 struct MD5Sum< ::warehouse::PullMessageRequest_<ContainerAllocator> > {
00217 static const char* value()
00218 {
00219 return "814cd901a14878d47b309e001c0b234e";
00220 }
00221
00222 static const char* value(const ::warehouse::PullMessageRequest_<ContainerAllocator> &) { return value(); }
00223 static const uint64_t static_value1 = 0x814cd901a14878d4ULL;
00224 static const uint64_t static_value2 = 0x7b309e001c0b234eULL;
00225 };
00226
00227 template<class ContainerAllocator>
00228 struct DataType< ::warehouse::PullMessageRequest_<ContainerAllocator> > {
00229 static const char* value()
00230 {
00231 return "warehouse/PullMessageRequest";
00232 }
00233
00234 static const char* value(const ::warehouse::PullMessageRequest_<ContainerAllocator> &) { return value(); }
00235 };
00236
00237 template<class ContainerAllocator>
00238 struct Definition< ::warehouse::PullMessageRequest_<ContainerAllocator> > {
00239 static const char* value()
00240 {
00241 return "string db_name\n\
00242 string collection_name\n\
00243 string query_id\n\
00244 \n\
00245 ";
00246 }
00247
00248 static const char* value(const ::warehouse::PullMessageRequest_<ContainerAllocator> &) { return value(); }
00249 };
00250
00251 }
00252 }
00253
00254
00255 namespace ros
00256 {
00257 namespace message_traits
00258 {
00259 template<class ContainerAllocator>
00260 struct MD5Sum< ::warehouse::PullMessageResponse_<ContainerAllocator> > {
00261 static const char* value()
00262 {
00263 return "3cf56d7b7dcbe3266b78fc31eb8a472c";
00264 }
00265
00266 static const char* value(const ::warehouse::PullMessageResponse_<ContainerAllocator> &) { return value(); }
00267 static const uint64_t static_value1 = 0x3cf56d7b7dcbe326ULL;
00268 static const uint64_t static_value2 = 0x6b78fc31eb8a472cULL;
00269 };
00270
00271 template<class ContainerAllocator>
00272 struct DataType< ::warehouse::PullMessageResponse_<ContainerAllocator> > {
00273 static const char* value()
00274 {
00275 return "warehouse/PullMessageResponse";
00276 }
00277
00278 static const char* value(const ::warehouse::PullMessageResponse_<ContainerAllocator> &) { return value(); }
00279 };
00280
00281 template<class ContainerAllocator>
00282 struct Definition< ::warehouse::PullMessageResponse_<ContainerAllocator> > {
00283 static const char* value()
00284 {
00285 return "\n\
00286 \n\
00287 uint8 num_messages_sent\n\
00288 \n\
00289 \n\
00290 ";
00291 }
00292
00293 static const char* value(const ::warehouse::PullMessageResponse_<ContainerAllocator> &) { return value(); }
00294 };
00295
00296 template<class ContainerAllocator> struct IsFixedSize< ::warehouse::PullMessageResponse_<ContainerAllocator> > : public TrueType {};
00297 }
00298 }
00299
00300 namespace ros
00301 {
00302 namespace serialization
00303 {
00304
00305 template<class ContainerAllocator> struct Serializer< ::warehouse::PullMessageRequest_<ContainerAllocator> >
00306 {
00307 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00308 {
00309 stream.next(m.db_name);
00310 stream.next(m.collection_name);
00311 stream.next(m.query_id);
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< ::warehouse::PullMessageResponse_<ContainerAllocator> >
00326 {
00327 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00328 {
00329 stream.next(m.num_messages_sent);
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<warehouse::PullMessage> {
00343 static const char* value()
00344 {
00345 return "0fe07f71870836db684293e395593937";
00346 }
00347
00348 static const char* value(const warehouse::PullMessage&) { return value(); }
00349 };
00350
00351 template<>
00352 struct DataType<warehouse::PullMessage> {
00353 static const char* value()
00354 {
00355 return "warehouse/PullMessage";
00356 }
00357
00358 static const char* value(const warehouse::PullMessage&) { return value(); }
00359 };
00360
00361 template<class ContainerAllocator>
00362 struct MD5Sum<warehouse::PullMessageRequest_<ContainerAllocator> > {
00363 static const char* value()
00364 {
00365 return "0fe07f71870836db684293e395593937";
00366 }
00367
00368 static const char* value(const warehouse::PullMessageRequest_<ContainerAllocator> &) { return value(); }
00369 };
00370
00371 template<class ContainerAllocator>
00372 struct DataType<warehouse::PullMessageRequest_<ContainerAllocator> > {
00373 static const char* value()
00374 {
00375 return "warehouse/PullMessage";
00376 }
00377
00378 static const char* value(const warehouse::PullMessageRequest_<ContainerAllocator> &) { return value(); }
00379 };
00380
00381 template<class ContainerAllocator>
00382 struct MD5Sum<warehouse::PullMessageResponse_<ContainerAllocator> > {
00383 static const char* value()
00384 {
00385 return "0fe07f71870836db684293e395593937";
00386 }
00387
00388 static const char* value(const warehouse::PullMessageResponse_<ContainerAllocator> &) { return value(); }
00389 };
00390
00391 template<class ContainerAllocator>
00392 struct DataType<warehouse::PullMessageResponse_<ContainerAllocator> > {
00393 static const char* value()
00394 {
00395 return "warehouse/PullMessage";
00396 }
00397
00398 static const char* value(const warehouse::PullMessageResponse_<ContainerAllocator> &) { return value(); }
00399 };
00400
00401 }
00402 }
00403
00404 #endif // WAREHOUSE_SERVICE_PULLMESSAGE_H
00405