00001
00002 #ifndef WAREHOUSE_SERVICE_REMOVEMESSAGES_H
00003 #define WAREHOUSE_SERVICE_REMOVEMESSAGES_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 #include "warehouse/Condition.h"
00016
00017
00018
00019 namespace warehouse
00020 {
00021 template <class ContainerAllocator>
00022 struct RemoveMessagesRequest_ : public ros::Message
00023 {
00024 typedef RemoveMessagesRequest_<ContainerAllocator> Type;
00025
00026 RemoveMessagesRequest_()
00027 : db_name()
00028 , collection_name()
00029 , conditions()
00030 {
00031 }
00032
00033 RemoveMessagesRequest_(const ContainerAllocator& _alloc)
00034 : db_name(_alloc)
00035 , collection_name(_alloc)
00036 , conditions(_alloc)
00037 {
00038 }
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _db_name_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > db_name;
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _collection_name_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > collection_name;
00045
00046 typedef std::vector< ::warehouse::Condition_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::warehouse::Condition_<ContainerAllocator> >::other > _conditions_type;
00047 std::vector< ::warehouse::Condition_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::warehouse::Condition_<ContainerAllocator> >::other > conditions;
00048
00049
00050 ROS_DEPRECATED uint32_t get_conditions_size() const { return (uint32_t)conditions.size(); }
00051 ROS_DEPRECATED void set_conditions_size(uint32_t size) { conditions.resize((size_t)size); }
00052 ROS_DEPRECATED void get_conditions_vec(std::vector< ::warehouse::Condition_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::warehouse::Condition_<ContainerAllocator> >::other > & vec) const { vec = this->conditions; }
00053 ROS_DEPRECATED void set_conditions_vec(const std::vector< ::warehouse::Condition_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::warehouse::Condition_<ContainerAllocator> >::other > & vec) { this->conditions = vec; }
00054 private:
00055 static const char* __s_getDataType_() { return "warehouse/RemoveMessagesRequest"; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00058
00059 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00060
00061 private:
00062 static const char* __s_getMD5Sum_() { return "7e4303fc6b23ec4988d0ff3fae7ae313"; }
00063 public:
00064 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00065
00066 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00067
00068 private:
00069 static const char* __s_getServerMD5Sum_() { return "16cc3633758e6558698695e643f5e022"; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00072
00073 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00074
00075 private:
00076 static const char* __s_getMessageDefinition_() { return "\n\
00077 \n\
00078 string db_name\n\
00079 string collection_name\n\
00080 warehouse/Condition[] conditions\n\
00081 \n\
00082 ================================================================================\n\
00083 MSG: warehouse/Condition\n\
00084 # Represents an individual condition on a field in a query\n\
00085 \n\
00086 # Field name, which can be nested. E.g., \"pose.position.x\"\n\
00087 string field_name\n\
00088 \n\
00089 # Predicate, which must be of one the types below\n\
00090 uint8 predicate\n\
00091 \n\
00092 # Predicate arguments, which are parsed from strings, in a predicate-dependent manner\n\
00093 string[] args\n\
00094 \n\
00095 \n\
00096 ## Predicate types\n\
00097 \n\
00098 # numerical field must be less than args[0]\n\
00099 uint8 LESS_THAN=0\n\
00100 \n\
00101 # numerical field must be greater than args[0]\n\
00102 uint8 GREATER_THAN=1\n\
00103 \n\
00104 # field must equal args[0]\n\
00105 uint8 EQUALS=2\n\
00106 "; }
00107 public:
00108 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00109
00110 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00111
00112 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00113 {
00114 ros::serialization::OStream stream(write_ptr, 1000000000);
00115 ros::serialization::serialize(stream, db_name);
00116 ros::serialization::serialize(stream, collection_name);
00117 ros::serialization::serialize(stream, conditions);
00118 return stream.getData();
00119 }
00120
00121 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00122 {
00123 ros::serialization::IStream stream(read_ptr, 1000000000);
00124 ros::serialization::deserialize(stream, db_name);
00125 ros::serialization::deserialize(stream, collection_name);
00126 ros::serialization::deserialize(stream, conditions);
00127 return stream.getData();
00128 }
00129
00130 ROS_DEPRECATED virtual uint32_t serializationLength() const
00131 {
00132 uint32_t size = 0;
00133 size += ros::serialization::serializationLength(db_name);
00134 size += ros::serialization::serializationLength(collection_name);
00135 size += ros::serialization::serializationLength(conditions);
00136 return size;
00137 }
00138
00139 typedef boost::shared_ptr< ::warehouse::RemoveMessagesRequest_<ContainerAllocator> > Ptr;
00140 typedef boost::shared_ptr< ::warehouse::RemoveMessagesRequest_<ContainerAllocator> const> ConstPtr;
00141 };
00142 typedef ::warehouse::RemoveMessagesRequest_<std::allocator<void> > RemoveMessagesRequest;
00143
00144 typedef boost::shared_ptr< ::warehouse::RemoveMessagesRequest> RemoveMessagesRequestPtr;
00145 typedef boost::shared_ptr< ::warehouse::RemoveMessagesRequest const> RemoveMessagesRequestConstPtr;
00146
00147
00148 template <class ContainerAllocator>
00149 struct RemoveMessagesResponse_ : public ros::Message
00150 {
00151 typedef RemoveMessagesResponse_<ContainerAllocator> Type;
00152
00153 RemoveMessagesResponse_()
00154 : num_messages_removed(0)
00155 , error_code(0)
00156 , error_msg()
00157 {
00158 }
00159
00160 RemoveMessagesResponse_(const ContainerAllocator& _alloc)
00161 : num_messages_removed(0)
00162 , error_code(0)
00163 , error_msg(_alloc)
00164 {
00165 }
00166
00167 typedef uint32_t _num_messages_removed_type;
00168 uint32_t num_messages_removed;
00169
00170 typedef uint8_t _error_code_type;
00171 uint8_t error_code;
00172
00173 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_msg_type;
00174 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error_msg;
00175
00176 enum { SUCCESS = 0 };
00177 enum { INVALID_DB_NAME = 1 };
00178 enum { INVALID_COLLECTION_NAME = 2 };
00179
00180 private:
00181 static const char* __s_getDataType_() { return "warehouse/RemoveMessagesResponse"; }
00182 public:
00183 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00184
00185 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00186
00187 private:
00188 static const char* __s_getMD5Sum_() { return "788391563ab53b738044525b2669fcfb"; }
00189 public:
00190 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00191
00192 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00193
00194 private:
00195 static const char* __s_getServerMD5Sum_() { return "16cc3633758e6558698695e643f5e022"; }
00196 public:
00197 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00198
00199 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00200
00201 private:
00202 static const char* __s_getMessageDefinition_() { return "\n\
00203 uint32 num_messages_removed\n\
00204 uint8 error_code\n\
00205 string error_msg\n\
00206 \n\
00207 uint8 SUCCESS=0\n\
00208 uint8 INVALID_DB_NAME=1\n\
00209 uint8 INVALID_COLLECTION_NAME=2\n\
00210 \n\
00211 \n\
00212 \n\
00213 \n\
00214 "; }
00215 public:
00216 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00217
00218 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00219
00220 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00221 {
00222 ros::serialization::OStream stream(write_ptr, 1000000000);
00223 ros::serialization::serialize(stream, num_messages_removed);
00224 ros::serialization::serialize(stream, error_code);
00225 ros::serialization::serialize(stream, error_msg);
00226 return stream.getData();
00227 }
00228
00229 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00230 {
00231 ros::serialization::IStream stream(read_ptr, 1000000000);
00232 ros::serialization::deserialize(stream, num_messages_removed);
00233 ros::serialization::deserialize(stream, error_code);
00234 ros::serialization::deserialize(stream, error_msg);
00235 return stream.getData();
00236 }
00237
00238 ROS_DEPRECATED virtual uint32_t serializationLength() const
00239 {
00240 uint32_t size = 0;
00241 size += ros::serialization::serializationLength(num_messages_removed);
00242 size += ros::serialization::serializationLength(error_code);
00243 size += ros::serialization::serializationLength(error_msg);
00244 return size;
00245 }
00246
00247 typedef boost::shared_ptr< ::warehouse::RemoveMessagesResponse_<ContainerAllocator> > Ptr;
00248 typedef boost::shared_ptr< ::warehouse::RemoveMessagesResponse_<ContainerAllocator> const> ConstPtr;
00249 };
00250 typedef ::warehouse::RemoveMessagesResponse_<std::allocator<void> > RemoveMessagesResponse;
00251
00252 typedef boost::shared_ptr< ::warehouse::RemoveMessagesResponse> RemoveMessagesResponsePtr;
00253 typedef boost::shared_ptr< ::warehouse::RemoveMessagesResponse const> RemoveMessagesResponseConstPtr;
00254
00255 struct RemoveMessages
00256 {
00257
00258 typedef RemoveMessagesRequest Request;
00259 typedef RemoveMessagesResponse Response;
00260 Request request;
00261 Response response;
00262
00263 typedef Request RequestType;
00264 typedef Response ResponseType;
00265 };
00266 }
00267
00268 namespace ros
00269 {
00270 namespace message_traits
00271 {
00272 template<class ContainerAllocator>
00273 struct MD5Sum< ::warehouse::RemoveMessagesRequest_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "7e4303fc6b23ec4988d0ff3fae7ae313";
00277 }
00278
00279 static const char* value(const ::warehouse::RemoveMessagesRequest_<ContainerAllocator> &) { return value(); }
00280 static const uint64_t static_value1 = 0x7e4303fc6b23ec49ULL;
00281 static const uint64_t static_value2 = 0x88d0ff3fae7ae313ULL;
00282 };
00283
00284 template<class ContainerAllocator>
00285 struct DataType< ::warehouse::RemoveMessagesRequest_<ContainerAllocator> > {
00286 static const char* value()
00287 {
00288 return "warehouse/RemoveMessagesRequest";
00289 }
00290
00291 static const char* value(const ::warehouse::RemoveMessagesRequest_<ContainerAllocator> &) { return value(); }
00292 };
00293
00294 template<class ContainerAllocator>
00295 struct Definition< ::warehouse::RemoveMessagesRequest_<ContainerAllocator> > {
00296 static const char* value()
00297 {
00298 return "\n\
00299 \n\
00300 string db_name\n\
00301 string collection_name\n\
00302 warehouse/Condition[] conditions\n\
00303 \n\
00304 ================================================================================\n\
00305 MSG: warehouse/Condition\n\
00306 # Represents an individual condition on a field in a query\n\
00307 \n\
00308 # Field name, which can be nested. E.g., \"pose.position.x\"\n\
00309 string field_name\n\
00310 \n\
00311 # Predicate, which must be of one the types below\n\
00312 uint8 predicate\n\
00313 \n\
00314 # Predicate arguments, which are parsed from strings, in a predicate-dependent manner\n\
00315 string[] args\n\
00316 \n\
00317 \n\
00318 ## Predicate types\n\
00319 \n\
00320 # numerical field must be less than args[0]\n\
00321 uint8 LESS_THAN=0\n\
00322 \n\
00323 # numerical field must be greater than args[0]\n\
00324 uint8 GREATER_THAN=1\n\
00325 \n\
00326 # field must equal args[0]\n\
00327 uint8 EQUALS=2\n\
00328 ";
00329 }
00330
00331 static const char* value(const ::warehouse::RemoveMessagesRequest_<ContainerAllocator> &) { return value(); }
00332 };
00333
00334 }
00335 }
00336
00337
00338 namespace ros
00339 {
00340 namespace message_traits
00341 {
00342 template<class ContainerAllocator>
00343 struct MD5Sum< ::warehouse::RemoveMessagesResponse_<ContainerAllocator> > {
00344 static const char* value()
00345 {
00346 return "788391563ab53b738044525b2669fcfb";
00347 }
00348
00349 static const char* value(const ::warehouse::RemoveMessagesResponse_<ContainerAllocator> &) { return value(); }
00350 static const uint64_t static_value1 = 0x788391563ab53b73ULL;
00351 static const uint64_t static_value2 = 0x8044525b2669fcfbULL;
00352 };
00353
00354 template<class ContainerAllocator>
00355 struct DataType< ::warehouse::RemoveMessagesResponse_<ContainerAllocator> > {
00356 static const char* value()
00357 {
00358 return "warehouse/RemoveMessagesResponse";
00359 }
00360
00361 static const char* value(const ::warehouse::RemoveMessagesResponse_<ContainerAllocator> &) { return value(); }
00362 };
00363
00364 template<class ContainerAllocator>
00365 struct Definition< ::warehouse::RemoveMessagesResponse_<ContainerAllocator> > {
00366 static const char* value()
00367 {
00368 return "\n\
00369 uint32 num_messages_removed\n\
00370 uint8 error_code\n\
00371 string error_msg\n\
00372 \n\
00373 uint8 SUCCESS=0\n\
00374 uint8 INVALID_DB_NAME=1\n\
00375 uint8 INVALID_COLLECTION_NAME=2\n\
00376 \n\
00377 \n\
00378 \n\
00379 \n\
00380 ";
00381 }
00382
00383 static const char* value(const ::warehouse::RemoveMessagesResponse_<ContainerAllocator> &) { return value(); }
00384 };
00385
00386 }
00387 }
00388
00389 namespace ros
00390 {
00391 namespace serialization
00392 {
00393
00394 template<class ContainerAllocator> struct Serializer< ::warehouse::RemoveMessagesRequest_<ContainerAllocator> >
00395 {
00396 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00397 {
00398 stream.next(m.db_name);
00399 stream.next(m.collection_name);
00400 stream.next(m.conditions);
00401 }
00402
00403 ROS_DECLARE_ALLINONE_SERIALIZER;
00404 };
00405 }
00406 }
00407
00408
00409 namespace ros
00410 {
00411 namespace serialization
00412 {
00413
00414 template<class ContainerAllocator> struct Serializer< ::warehouse::RemoveMessagesResponse_<ContainerAllocator> >
00415 {
00416 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00417 {
00418 stream.next(m.num_messages_removed);
00419 stream.next(m.error_code);
00420 stream.next(m.error_msg);
00421 }
00422
00423 ROS_DECLARE_ALLINONE_SERIALIZER;
00424 };
00425 }
00426 }
00427
00428 namespace ros
00429 {
00430 namespace service_traits
00431 {
00432 template<>
00433 struct MD5Sum<warehouse::RemoveMessages> {
00434 static const char* value()
00435 {
00436 return "16cc3633758e6558698695e643f5e022";
00437 }
00438
00439 static const char* value(const warehouse::RemoveMessages&) { return value(); }
00440 };
00441
00442 template<>
00443 struct DataType<warehouse::RemoveMessages> {
00444 static const char* value()
00445 {
00446 return "warehouse/RemoveMessages";
00447 }
00448
00449 static const char* value(const warehouse::RemoveMessages&) { return value(); }
00450 };
00451
00452 template<class ContainerAllocator>
00453 struct MD5Sum<warehouse::RemoveMessagesRequest_<ContainerAllocator> > {
00454 static const char* value()
00455 {
00456 return "16cc3633758e6558698695e643f5e022";
00457 }
00458
00459 static const char* value(const warehouse::RemoveMessagesRequest_<ContainerAllocator> &) { return value(); }
00460 };
00461
00462 template<class ContainerAllocator>
00463 struct DataType<warehouse::RemoveMessagesRequest_<ContainerAllocator> > {
00464 static const char* value()
00465 {
00466 return "warehouse/RemoveMessages";
00467 }
00468
00469 static const char* value(const warehouse::RemoveMessagesRequest_<ContainerAllocator> &) { return value(); }
00470 };
00471
00472 template<class ContainerAllocator>
00473 struct MD5Sum<warehouse::RemoveMessagesResponse_<ContainerAllocator> > {
00474 static const char* value()
00475 {
00476 return "16cc3633758e6558698695e643f5e022";
00477 }
00478
00479 static const char* value(const warehouse::RemoveMessagesResponse_<ContainerAllocator> &) { return value(); }
00480 };
00481
00482 template<class ContainerAllocator>
00483 struct DataType<warehouse::RemoveMessagesResponse_<ContainerAllocator> > {
00484 static const char* value()
00485 {
00486 return "warehouse/RemoveMessages";
00487 }
00488
00489 static const char* value(const warehouse::RemoveMessagesResponse_<ContainerAllocator> &) { return value(); }
00490 };
00491
00492 }
00493 }
00494
00495 #endif // WAREHOUSE_SERVICE_REMOVEMESSAGES_H
00496