00001
00002 #ifndef WAREHOUSE_SERVICE_LISTCOLLECTIONS_H
00003 #define WAREHOUSE_SERVICE_LISTCOLLECTIONS_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 ListCollectionsRequest_ : public ros::Message
00022 {
00023 typedef ListCollectionsRequest_<ContainerAllocator> Type;
00024
00025 ListCollectionsRequest_()
00026 : db_name()
00027 {
00028 }
00029
00030 ListCollectionsRequest_(const ContainerAllocator& _alloc)
00031 : db_name(_alloc)
00032 {
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _db_name_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > db_name;
00037
00038
00039 private:
00040 static const char* __s_getDataType_() { return "warehouse/ListCollectionsRequest"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "44f07d812d03f1115371671aefc84215"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getServerMD5Sum_() { return "ff488a0c7b8202d280e8841c2b4d4248"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00057
00058 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00059
00060 private:
00061 static const char* __s_getMessageDefinition_() { return "string db_name\n\
00062 \n\
00063 "; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00070 {
00071 ros::serialization::OStream stream(write_ptr, 1000000000);
00072 ros::serialization::serialize(stream, db_name);
00073 return stream.getData();
00074 }
00075
00076 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00077 {
00078 ros::serialization::IStream stream(read_ptr, 1000000000);
00079 ros::serialization::deserialize(stream, db_name);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint32_t serializationLength() const
00084 {
00085 uint32_t size = 0;
00086 size += ros::serialization::serializationLength(db_name);
00087 return size;
00088 }
00089
00090 typedef boost::shared_ptr< ::warehouse::ListCollectionsRequest_<ContainerAllocator> > Ptr;
00091 typedef boost::shared_ptr< ::warehouse::ListCollectionsRequest_<ContainerAllocator> const> ConstPtr;
00092 };
00093 typedef ::warehouse::ListCollectionsRequest_<std::allocator<void> > ListCollectionsRequest;
00094
00095 typedef boost::shared_ptr< ::warehouse::ListCollectionsRequest> ListCollectionsRequestPtr;
00096 typedef boost::shared_ptr< ::warehouse::ListCollectionsRequest const> ListCollectionsRequestConstPtr;
00097
00098
00099 template <class ContainerAllocator>
00100 struct ListCollectionsResponse_ : public ros::Message
00101 {
00102 typedef ListCollectionsResponse_<ContainerAllocator> Type;
00103
00104 ListCollectionsResponse_()
00105 : db_exists(false)
00106 , collections()
00107 {
00108 }
00109
00110 ListCollectionsResponse_(const ContainerAllocator& _alloc)
00111 : db_exists(false)
00112 , collections(_alloc)
00113 {
00114 }
00115
00116 typedef uint8_t _db_exists_type;
00117 uint8_t db_exists;
00118
00119 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 > _collections_type;
00120 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 > collections;
00121
00122
00123 ROS_DEPRECATED uint32_t get_collections_size() const { return (uint32_t)collections.size(); }
00124 ROS_DEPRECATED void set_collections_size(uint32_t size) { collections.resize((size_t)size); }
00125 ROS_DEPRECATED void get_collections_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->collections; }
00126 ROS_DEPRECATED void set_collections_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->collections = vec; }
00127 private:
00128 static const char* __s_getDataType_() { return "warehouse/ListCollectionsResponse"; }
00129 public:
00130 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00131
00132 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00133
00134 private:
00135 static const char* __s_getMD5Sum_() { return "95ee24386c692082eeabf00aeb27a8d1"; }
00136 public:
00137 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00138
00139 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00140
00141 private:
00142 static const char* __s_getServerMD5Sum_() { return "ff488a0c7b8202d280e8841c2b4d4248"; }
00143 public:
00144 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00145
00146 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00147
00148 private:
00149 static const char* __s_getMessageDefinition_() { return "bool db_exists\n\
00150 string[] collections\n\
00151 \n\
00152 \n\
00153 "; }
00154 public:
00155 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00156
00157 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00158
00159 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00160 {
00161 ros::serialization::OStream stream(write_ptr, 1000000000);
00162 ros::serialization::serialize(stream, db_exists);
00163 ros::serialization::serialize(stream, collections);
00164 return stream.getData();
00165 }
00166
00167 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00168 {
00169 ros::serialization::IStream stream(read_ptr, 1000000000);
00170 ros::serialization::deserialize(stream, db_exists);
00171 ros::serialization::deserialize(stream, collections);
00172 return stream.getData();
00173 }
00174
00175 ROS_DEPRECATED virtual uint32_t serializationLength() const
00176 {
00177 uint32_t size = 0;
00178 size += ros::serialization::serializationLength(db_exists);
00179 size += ros::serialization::serializationLength(collections);
00180 return size;
00181 }
00182
00183 typedef boost::shared_ptr< ::warehouse::ListCollectionsResponse_<ContainerAllocator> > Ptr;
00184 typedef boost::shared_ptr< ::warehouse::ListCollectionsResponse_<ContainerAllocator> const> ConstPtr;
00185 };
00186 typedef ::warehouse::ListCollectionsResponse_<std::allocator<void> > ListCollectionsResponse;
00187
00188 typedef boost::shared_ptr< ::warehouse::ListCollectionsResponse> ListCollectionsResponsePtr;
00189 typedef boost::shared_ptr< ::warehouse::ListCollectionsResponse const> ListCollectionsResponseConstPtr;
00190
00191 struct ListCollections
00192 {
00193
00194 typedef ListCollectionsRequest Request;
00195 typedef ListCollectionsResponse Response;
00196 Request request;
00197 Response response;
00198
00199 typedef Request RequestType;
00200 typedef Response ResponseType;
00201 };
00202 }
00203
00204 namespace ros
00205 {
00206 namespace message_traits
00207 {
00208 template<class ContainerAllocator>
00209 struct MD5Sum< ::warehouse::ListCollectionsRequest_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "44f07d812d03f1115371671aefc84215";
00213 }
00214
00215 static const char* value(const ::warehouse::ListCollectionsRequest_<ContainerAllocator> &) { return value(); }
00216 static const uint64_t static_value1 = 0x44f07d812d03f111ULL;
00217 static const uint64_t static_value2 = 0x5371671aefc84215ULL;
00218 };
00219
00220 template<class ContainerAllocator>
00221 struct DataType< ::warehouse::ListCollectionsRequest_<ContainerAllocator> > {
00222 static const char* value()
00223 {
00224 return "warehouse/ListCollectionsRequest";
00225 }
00226
00227 static const char* value(const ::warehouse::ListCollectionsRequest_<ContainerAllocator> &) { return value(); }
00228 };
00229
00230 template<class ContainerAllocator>
00231 struct Definition< ::warehouse::ListCollectionsRequest_<ContainerAllocator> > {
00232 static const char* value()
00233 {
00234 return "string db_name\n\
00235 \n\
00236 ";
00237 }
00238
00239 static const char* value(const ::warehouse::ListCollectionsRequest_<ContainerAllocator> &) { return value(); }
00240 };
00241
00242 }
00243 }
00244
00245
00246 namespace ros
00247 {
00248 namespace message_traits
00249 {
00250 template<class ContainerAllocator>
00251 struct MD5Sum< ::warehouse::ListCollectionsResponse_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "95ee24386c692082eeabf00aeb27a8d1";
00255 }
00256
00257 static const char* value(const ::warehouse::ListCollectionsResponse_<ContainerAllocator> &) { return value(); }
00258 static const uint64_t static_value1 = 0x95ee24386c692082ULL;
00259 static const uint64_t static_value2 = 0xeeabf00aeb27a8d1ULL;
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct DataType< ::warehouse::ListCollectionsResponse_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "warehouse/ListCollectionsResponse";
00267 }
00268
00269 static const char* value(const ::warehouse::ListCollectionsResponse_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct Definition< ::warehouse::ListCollectionsResponse_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "bool db_exists\n\
00277 string[] collections\n\
00278 \n\
00279 \n\
00280 ";
00281 }
00282
00283 static const char* value(const ::warehouse::ListCollectionsResponse_<ContainerAllocator> &) { return value(); }
00284 };
00285
00286 }
00287 }
00288
00289 namespace ros
00290 {
00291 namespace serialization
00292 {
00293
00294 template<class ContainerAllocator> struct Serializer< ::warehouse::ListCollectionsRequest_<ContainerAllocator> >
00295 {
00296 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00297 {
00298 stream.next(m.db_name);
00299 }
00300
00301 ROS_DECLARE_ALLINONE_SERIALIZER;
00302 };
00303 }
00304 }
00305
00306
00307 namespace ros
00308 {
00309 namespace serialization
00310 {
00311
00312 template<class ContainerAllocator> struct Serializer< ::warehouse::ListCollectionsResponse_<ContainerAllocator> >
00313 {
00314 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00315 {
00316 stream.next(m.db_exists);
00317 stream.next(m.collections);
00318 }
00319
00320 ROS_DECLARE_ALLINONE_SERIALIZER;
00321 };
00322 }
00323 }
00324
00325 namespace ros
00326 {
00327 namespace service_traits
00328 {
00329 template<>
00330 struct MD5Sum<warehouse::ListCollections> {
00331 static const char* value()
00332 {
00333 return "ff488a0c7b8202d280e8841c2b4d4248";
00334 }
00335
00336 static const char* value(const warehouse::ListCollections&) { return value(); }
00337 };
00338
00339 template<>
00340 struct DataType<warehouse::ListCollections> {
00341 static const char* value()
00342 {
00343 return "warehouse/ListCollections";
00344 }
00345
00346 static const char* value(const warehouse::ListCollections&) { return value(); }
00347 };
00348
00349 template<class ContainerAllocator>
00350 struct MD5Sum<warehouse::ListCollectionsRequest_<ContainerAllocator> > {
00351 static const char* value()
00352 {
00353 return "ff488a0c7b8202d280e8841c2b4d4248";
00354 }
00355
00356 static const char* value(const warehouse::ListCollectionsRequest_<ContainerAllocator> &) { return value(); }
00357 };
00358
00359 template<class ContainerAllocator>
00360 struct DataType<warehouse::ListCollectionsRequest_<ContainerAllocator> > {
00361 static const char* value()
00362 {
00363 return "warehouse/ListCollections";
00364 }
00365
00366 static const char* value(const warehouse::ListCollectionsRequest_<ContainerAllocator> &) { return value(); }
00367 };
00368
00369 template<class ContainerAllocator>
00370 struct MD5Sum<warehouse::ListCollectionsResponse_<ContainerAllocator> > {
00371 static const char* value()
00372 {
00373 return "ff488a0c7b8202d280e8841c2b4d4248";
00374 }
00375
00376 static const char* value(const warehouse::ListCollectionsResponse_<ContainerAllocator> &) { return value(); }
00377 };
00378
00379 template<class ContainerAllocator>
00380 struct DataType<warehouse::ListCollectionsResponse_<ContainerAllocator> > {
00381 static const char* value()
00382 {
00383 return "warehouse/ListCollections";
00384 }
00385
00386 static const char* value(const warehouse::ListCollectionsResponse_<ContainerAllocator> &) { return value(); }
00387 };
00388
00389 }
00390 }
00391
00392 #endif // WAREHOUSE_SERVICE_LISTCOLLECTIONS_H
00393