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