00001
00002 #ifndef WAREHOUSE_SERVICE_SETUPCOLLECTION_H
00003 #define WAREHOUSE_SERVICE_SETUPCOLLECTION_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 SetupCollectionRequest_ : public ros::Message
00022 {
00023 typedef SetupCollectionRequest_<ContainerAllocator> Type;
00024
00025 SetupCollectionRequest_()
00026 : db_name()
00027 , collection_name()
00028 , msg_pkg()
00029 , msg_type()
00030 , additional_metadata_fields()
00031 , indexed_fields()
00032 , topic()
00033 {
00034 }
00035
00036 SetupCollectionRequest_(const ContainerAllocator& _alloc)
00037 : db_name(_alloc)
00038 , collection_name(_alloc)
00039 , msg_pkg(_alloc)
00040 , msg_type(_alloc)
00041 , additional_metadata_fields(_alloc)
00042 , indexed_fields(_alloc)
00043 , topic(_alloc)
00044 {
00045 }
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _db_name_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > db_name;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _collection_name_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > collection_name;
00052
00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _msg_pkg_type;
00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > msg_pkg;
00055
00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _msg_type_type;
00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > msg_type;
00058
00059 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _additional_metadata_fields_type;
00060 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > additional_metadata_fields;
00061
00062 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _indexed_fields_type;
00063 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > indexed_fields;
00064
00065 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type;
00066 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic;
00067
00068
00069 ROS_DEPRECATED uint32_t get_additional_metadata_fields_size() const { return (uint32_t)additional_metadata_fields.size(); }
00070 ROS_DEPRECATED void set_additional_metadata_fields_size(uint32_t size) { additional_metadata_fields.resize((size_t)size); }
00071 ROS_DEPRECATED void get_additional_metadata_fields_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->additional_metadata_fields; }
00072 ROS_DEPRECATED void set_additional_metadata_fields_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->additional_metadata_fields = vec; }
00073 ROS_DEPRECATED uint32_t get_indexed_fields_size() const { return (uint32_t)indexed_fields.size(); }
00074 ROS_DEPRECATED void set_indexed_fields_size(uint32_t size) { indexed_fields.resize((size_t)size); }
00075 ROS_DEPRECATED void get_indexed_fields_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->indexed_fields; }
00076 ROS_DEPRECATED void set_indexed_fields_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->indexed_fields = vec; }
00077 private:
00078 static const char* __s_getDataType_() { return "warehouse/SetupCollectionRequest"; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00081
00082 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00083
00084 private:
00085 static const char* __s_getMD5Sum_() { return "951edafce54d5ca98a323aa86f5cd6e8"; }
00086 public:
00087 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00088
00089 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00090
00091 private:
00092 static const char* __s_getServerMD5Sum_() { return "a8b88948c712c7460f4fad513bb5fc30"; }
00093 public:
00094 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00095
00096 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00097
00098 private:
00099 static const char* __s_getMessageDefinition_() { return "string db_name\n\
00100 string collection_name\n\
00101 \n\
00102 string msg_pkg\n\
00103 string msg_type\n\
00104 \n\
00105 \n\
00106 \n\
00107 string[] additional_metadata_fields\n\
00108 \n\
00109 \n\
00110 \n\
00111 string[] indexed_fields\n\
00112 \n\
00113 \n\
00114 \n\
00115 \n\
00116 string topic\n\
00117 \n\
00118 \n\
00119 "; }
00120 public:
00121 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00122
00123 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00124
00125 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00126 {
00127 ros::serialization::OStream stream(write_ptr, 1000000000);
00128 ros::serialization::serialize(stream, db_name);
00129 ros::serialization::serialize(stream, collection_name);
00130 ros::serialization::serialize(stream, msg_pkg);
00131 ros::serialization::serialize(stream, msg_type);
00132 ros::serialization::serialize(stream, additional_metadata_fields);
00133 ros::serialization::serialize(stream, indexed_fields);
00134 ros::serialization::serialize(stream, topic);
00135 return stream.getData();
00136 }
00137
00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00139 {
00140 ros::serialization::IStream stream(read_ptr, 1000000000);
00141 ros::serialization::deserialize(stream, db_name);
00142 ros::serialization::deserialize(stream, collection_name);
00143 ros::serialization::deserialize(stream, msg_pkg);
00144 ros::serialization::deserialize(stream, msg_type);
00145 ros::serialization::deserialize(stream, additional_metadata_fields);
00146 ros::serialization::deserialize(stream, indexed_fields);
00147 ros::serialization::deserialize(stream, topic);
00148 return stream.getData();
00149 }
00150
00151 ROS_DEPRECATED virtual uint32_t serializationLength() const
00152 {
00153 uint32_t size = 0;
00154 size += ros::serialization::serializationLength(db_name);
00155 size += ros::serialization::serializationLength(collection_name);
00156 size += ros::serialization::serializationLength(msg_pkg);
00157 size += ros::serialization::serializationLength(msg_type);
00158 size += ros::serialization::serializationLength(additional_metadata_fields);
00159 size += ros::serialization::serializationLength(indexed_fields);
00160 size += ros::serialization::serializationLength(topic);
00161 return size;
00162 }
00163
00164 typedef boost::shared_ptr< ::warehouse::SetupCollectionRequest_<ContainerAllocator> > Ptr;
00165 typedef boost::shared_ptr< ::warehouse::SetupCollectionRequest_<ContainerAllocator> const> ConstPtr;
00166 };
00167 typedef ::warehouse::SetupCollectionRequest_<std::allocator<void> > SetupCollectionRequest;
00168
00169 typedef boost::shared_ptr< ::warehouse::SetupCollectionRequest> SetupCollectionRequestPtr;
00170 typedef boost::shared_ptr< ::warehouse::SetupCollectionRequest const> SetupCollectionRequestConstPtr;
00171
00172
00173 template <class ContainerAllocator>
00174 struct SetupCollectionResponse_ : public ros::Message
00175 {
00176 typedef SetupCollectionResponse_<ContainerAllocator> Type;
00177
00178 SetupCollectionResponse_()
00179 : error_code(0)
00180 , error_msg()
00181 , topic()
00182 , db_created(false)
00183 , collection_created(false)
00184 {
00185 }
00186
00187 SetupCollectionResponse_(const ContainerAllocator& _alloc)
00188 : error_code(0)
00189 , error_msg(_alloc)
00190 , topic(_alloc)
00191 , db_created(false)
00192 , collection_created(false)
00193 {
00194 }
00195
00196 typedef int8_t _error_code_type;
00197 int8_t error_code;
00198
00199 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _error_msg_type;
00200 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > error_msg;
00201
00202 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type;
00203 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic;
00204
00205 typedef uint8_t _db_created_type;
00206 uint8_t db_created;
00207
00208 typedef uint8_t _collection_created_type;
00209 uint8_t collection_created;
00210
00211 enum { SUCCESS = 0 };
00212 enum { PACKAGE_NOT_FOUND = 1 };
00213 enum { MESSAGE_NOT_FOUND_IN_PACKAGE = 2 };
00214 enum { EXISTING_COLLECTION_MISMATCH = 3 };
00215 enum { INVALID_INDEXED_FIELD = 4 };
00216 enum { ILLEGAL_DB_NAME = 5 };
00217 enum { ILLEGAL_COLLECTION_NAME = 6 };
00218 enum { ILLEGAL_TOPIC_NAME = 7 };
00219
00220 private:
00221 static const char* __s_getDataType_() { return "warehouse/SetupCollectionResponse"; }
00222 public:
00223 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00224
00225 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00226
00227 private:
00228 static const char* __s_getMD5Sum_() { return "60987d4183548cf4020578d7f6366bb4"; }
00229 public:
00230 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00231
00232 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00233
00234 private:
00235 static const char* __s_getServerMD5Sum_() { return "a8b88948c712c7460f4fad513bb5fc30"; }
00236 public:
00237 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00238
00239 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00240
00241 private:
00242 static const char* __s_getMessageDefinition_() { return "int8 error_code\n\
00243 string error_msg\n\
00244 \n\
00245 \n\
00246 string topic\n\
00247 \n\
00248 \n\
00249 bool db_created\n\
00250 \n\
00251 \n\
00252 bool collection_created\n\
00253 \n\
00254 \n\
00255 int8 SUCCESS=0\n\
00256 int8 PACKAGE_NOT_FOUND=1\n\
00257 int8 MESSAGE_NOT_FOUND_IN_PACKAGE=2\n\
00258 int8 EXISTING_COLLECTION_MISMATCH=3\n\
00259 int8 INVALID_INDEXED_FIELD=4\n\
00260 int8 ILLEGAL_DB_NAME=5\n\
00261 int8 ILLEGAL_COLLECTION_NAME=6\n\
00262 int8 ILLEGAL_TOPIC_NAME=7\n\
00263 \n\
00264 "; }
00265 public:
00266 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00267
00268 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00269
00270 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00271 {
00272 ros::serialization::OStream stream(write_ptr, 1000000000);
00273 ros::serialization::serialize(stream, error_code);
00274 ros::serialization::serialize(stream, error_msg);
00275 ros::serialization::serialize(stream, topic);
00276 ros::serialization::serialize(stream, db_created);
00277 ros::serialization::serialize(stream, collection_created);
00278 return stream.getData();
00279 }
00280
00281 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00282 {
00283 ros::serialization::IStream stream(read_ptr, 1000000000);
00284 ros::serialization::deserialize(stream, error_code);
00285 ros::serialization::deserialize(stream, error_msg);
00286 ros::serialization::deserialize(stream, topic);
00287 ros::serialization::deserialize(stream, db_created);
00288 ros::serialization::deserialize(stream, collection_created);
00289 return stream.getData();
00290 }
00291
00292 ROS_DEPRECATED virtual uint32_t serializationLength() const
00293 {
00294 uint32_t size = 0;
00295 size += ros::serialization::serializationLength(error_code);
00296 size += ros::serialization::serializationLength(error_msg);
00297 size += ros::serialization::serializationLength(topic);
00298 size += ros::serialization::serializationLength(db_created);
00299 size += ros::serialization::serializationLength(collection_created);
00300 return size;
00301 }
00302
00303 typedef boost::shared_ptr< ::warehouse::SetupCollectionResponse_<ContainerAllocator> > Ptr;
00304 typedef boost::shared_ptr< ::warehouse::SetupCollectionResponse_<ContainerAllocator> const> ConstPtr;
00305 };
00306 typedef ::warehouse::SetupCollectionResponse_<std::allocator<void> > SetupCollectionResponse;
00307
00308 typedef boost::shared_ptr< ::warehouse::SetupCollectionResponse> SetupCollectionResponsePtr;
00309 typedef boost::shared_ptr< ::warehouse::SetupCollectionResponse const> SetupCollectionResponseConstPtr;
00310
00311 struct SetupCollection
00312 {
00313
00314 typedef SetupCollectionRequest Request;
00315 typedef SetupCollectionResponse Response;
00316 Request request;
00317 Response response;
00318
00319 typedef Request RequestType;
00320 typedef Response ResponseType;
00321 };
00322 }
00323
00324 namespace ros
00325 {
00326 namespace message_traits
00327 {
00328 template<class ContainerAllocator>
00329 struct MD5Sum< ::warehouse::SetupCollectionRequest_<ContainerAllocator> > {
00330 static const char* value()
00331 {
00332 return "951edafce54d5ca98a323aa86f5cd6e8";
00333 }
00334
00335 static const char* value(const ::warehouse::SetupCollectionRequest_<ContainerAllocator> &) { return value(); }
00336 static const uint64_t static_value1 = 0x951edafce54d5ca9ULL;
00337 static const uint64_t static_value2 = 0x8a323aa86f5cd6e8ULL;
00338 };
00339
00340 template<class ContainerAllocator>
00341 struct DataType< ::warehouse::SetupCollectionRequest_<ContainerAllocator> > {
00342 static const char* value()
00343 {
00344 return "warehouse/SetupCollectionRequest";
00345 }
00346
00347 static const char* value(const ::warehouse::SetupCollectionRequest_<ContainerAllocator> &) { return value(); }
00348 };
00349
00350 template<class ContainerAllocator>
00351 struct Definition< ::warehouse::SetupCollectionRequest_<ContainerAllocator> > {
00352 static const char* value()
00353 {
00354 return "string db_name\n\
00355 string collection_name\n\
00356 \n\
00357 string msg_pkg\n\
00358 string msg_type\n\
00359 \n\
00360 \n\
00361 \n\
00362 string[] additional_metadata_fields\n\
00363 \n\
00364 \n\
00365 \n\
00366 string[] indexed_fields\n\
00367 \n\
00368 \n\
00369 \n\
00370 \n\
00371 string topic\n\
00372 \n\
00373 \n\
00374 ";
00375 }
00376
00377 static const char* value(const ::warehouse::SetupCollectionRequest_<ContainerAllocator> &) { return value(); }
00378 };
00379
00380 }
00381 }
00382
00383
00384 namespace ros
00385 {
00386 namespace message_traits
00387 {
00388 template<class ContainerAllocator>
00389 struct MD5Sum< ::warehouse::SetupCollectionResponse_<ContainerAllocator> > {
00390 static const char* value()
00391 {
00392 return "60987d4183548cf4020578d7f6366bb4";
00393 }
00394
00395 static const char* value(const ::warehouse::SetupCollectionResponse_<ContainerAllocator> &) { return value(); }
00396 static const uint64_t static_value1 = 0x60987d4183548cf4ULL;
00397 static const uint64_t static_value2 = 0x020578d7f6366bb4ULL;
00398 };
00399
00400 template<class ContainerAllocator>
00401 struct DataType< ::warehouse::SetupCollectionResponse_<ContainerAllocator> > {
00402 static const char* value()
00403 {
00404 return "warehouse/SetupCollectionResponse";
00405 }
00406
00407 static const char* value(const ::warehouse::SetupCollectionResponse_<ContainerAllocator> &) { return value(); }
00408 };
00409
00410 template<class ContainerAllocator>
00411 struct Definition< ::warehouse::SetupCollectionResponse_<ContainerAllocator> > {
00412 static const char* value()
00413 {
00414 return "int8 error_code\n\
00415 string error_msg\n\
00416 \n\
00417 \n\
00418 string topic\n\
00419 \n\
00420 \n\
00421 bool db_created\n\
00422 \n\
00423 \n\
00424 bool collection_created\n\
00425 \n\
00426 \n\
00427 int8 SUCCESS=0\n\
00428 int8 PACKAGE_NOT_FOUND=1\n\
00429 int8 MESSAGE_NOT_FOUND_IN_PACKAGE=2\n\
00430 int8 EXISTING_COLLECTION_MISMATCH=3\n\
00431 int8 INVALID_INDEXED_FIELD=4\n\
00432 int8 ILLEGAL_DB_NAME=5\n\
00433 int8 ILLEGAL_COLLECTION_NAME=6\n\
00434 int8 ILLEGAL_TOPIC_NAME=7\n\
00435 \n\
00436 ";
00437 }
00438
00439 static const char* value(const ::warehouse::SetupCollectionResponse_<ContainerAllocator> &) { return value(); }
00440 };
00441
00442 }
00443 }
00444
00445 namespace ros
00446 {
00447 namespace serialization
00448 {
00449
00450 template<class ContainerAllocator> struct Serializer< ::warehouse::SetupCollectionRequest_<ContainerAllocator> >
00451 {
00452 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00453 {
00454 stream.next(m.db_name);
00455 stream.next(m.collection_name);
00456 stream.next(m.msg_pkg);
00457 stream.next(m.msg_type);
00458 stream.next(m.additional_metadata_fields);
00459 stream.next(m.indexed_fields);
00460 stream.next(m.topic);
00461 }
00462
00463 ROS_DECLARE_ALLINONE_SERIALIZER;
00464 };
00465 }
00466 }
00467
00468
00469 namespace ros
00470 {
00471 namespace serialization
00472 {
00473
00474 template<class ContainerAllocator> struct Serializer< ::warehouse::SetupCollectionResponse_<ContainerAllocator> >
00475 {
00476 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00477 {
00478 stream.next(m.error_code);
00479 stream.next(m.error_msg);
00480 stream.next(m.topic);
00481 stream.next(m.db_created);
00482 stream.next(m.collection_created);
00483 }
00484
00485 ROS_DECLARE_ALLINONE_SERIALIZER;
00486 };
00487 }
00488 }
00489
00490 namespace ros
00491 {
00492 namespace service_traits
00493 {
00494 template<>
00495 struct MD5Sum<warehouse::SetupCollection> {
00496 static const char* value()
00497 {
00498 return "a8b88948c712c7460f4fad513bb5fc30";
00499 }
00500
00501 static const char* value(const warehouse::SetupCollection&) { return value(); }
00502 };
00503
00504 template<>
00505 struct DataType<warehouse::SetupCollection> {
00506 static const char* value()
00507 {
00508 return "warehouse/SetupCollection";
00509 }
00510
00511 static const char* value(const warehouse::SetupCollection&) { return value(); }
00512 };
00513
00514 template<class ContainerAllocator>
00515 struct MD5Sum<warehouse::SetupCollectionRequest_<ContainerAllocator> > {
00516 static const char* value()
00517 {
00518 return "a8b88948c712c7460f4fad513bb5fc30";
00519 }
00520
00521 static const char* value(const warehouse::SetupCollectionRequest_<ContainerAllocator> &) { return value(); }
00522 };
00523
00524 template<class ContainerAllocator>
00525 struct DataType<warehouse::SetupCollectionRequest_<ContainerAllocator> > {
00526 static const char* value()
00527 {
00528 return "warehouse/SetupCollection";
00529 }
00530
00531 static const char* value(const warehouse::SetupCollectionRequest_<ContainerAllocator> &) { return value(); }
00532 };
00533
00534 template<class ContainerAllocator>
00535 struct MD5Sum<warehouse::SetupCollectionResponse_<ContainerAllocator> > {
00536 static const char* value()
00537 {
00538 return "a8b88948c712c7460f4fad513bb5fc30";
00539 }
00540
00541 static const char* value(const warehouse::SetupCollectionResponse_<ContainerAllocator> &) { return value(); }
00542 };
00543
00544 template<class ContainerAllocator>
00545 struct DataType<warehouse::SetupCollectionResponse_<ContainerAllocator> > {
00546 static const char* value()
00547 {
00548 return "warehouse/SetupCollection";
00549 }
00550
00551 static const char* value(const warehouse::SetupCollectionResponse_<ContainerAllocator> &) { return value(); }
00552 };
00553
00554 }
00555 }
00556
00557 #endif // WAREHOUSE_SERVICE_SETUPCOLLECTION_H
00558