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