SharedMemBlock.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-ethzasl_message_transport/doc_stacks/2014-10-05_23-46-11.625558/ethzasl_message_transport/sharedmem_transport/msg/SharedMemBlock.msg */
00002 #ifndef SHAREDMEM_TRANSPORT_MESSAGE_SHAREDMEMBLOCK_H
00003 #define SHAREDMEM_TRANSPORT_MESSAGE_SHAREDMEMBLOCK_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 
00018 namespace sharedmem_transport
00019 {
00020 template <class ContainerAllocator>
00021 struct SharedMemBlock_ {
00022   typedef SharedMemBlock_<ContainerAllocator> Type;
00023 
00024   SharedMemBlock_()
00025   : handle(0)
00026   , size(0)
00027   , allocated(0)
00028   , name()
00029   {
00030   }
00031 
00032   SharedMemBlock_(const ContainerAllocator& _alloc)
00033   : handle(0)
00034   , size(0)
00035   , allocated(0)
00036   , name(_alloc)
00037   {
00038   }
00039 
00040   typedef uint32_t _handle_type;
00041   uint32_t handle;
00042 
00043   typedef uint32_t _size_type;
00044   uint32_t size;
00045 
00046   typedef uint32_t _allocated_type;
00047   uint32_t allocated;
00048 
00049   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00050   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00051 
00052 
00053   typedef boost::shared_ptr< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct SharedMemBlock
00057 typedef  ::sharedmem_transport::SharedMemBlock_<std::allocator<void> > SharedMemBlock;
00058 
00059 typedef boost::shared_ptr< ::sharedmem_transport::SharedMemBlock> SharedMemBlockPtr;
00060 typedef boost::shared_ptr< ::sharedmem_transport::SharedMemBlock const> SharedMemBlockConstPtr;
00061 
00062 
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const  ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> & v)
00065 {
00066   ros::message_operations::Printer< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> >::stream(s, "", v);
00067   return s;}
00068 
00069 } // namespace sharedmem_transport
00070 
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator>  const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "56cdbb4565401cc80f0d826e209bbbe5";
00082   }
00083 
00084   static const char* value(const  ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> &) { return value(); } 
00085   static const uint64_t static_value1 = 0x56cdbb4565401cc8ULL;
00086   static const uint64_t static_value2 = 0x0f0d826e209bbbe5ULL;
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct DataType< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "sharedmem_transport/SharedMemBlock";
00094   }
00095 
00096   static const char* value(const  ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> &) { return value(); } 
00097 };
00098 
00099 template<class ContainerAllocator>
00100 struct Definition< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "uint32 handle\n\
00104 uint32 size\n\
00105 uint32 allocated\n\
00106 string name\n\
00107 \n\
00108 ";
00109   }
00110 
00111   static const char* value(const  ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> &) { return value(); } 
00112 };
00113 
00114 } // namespace message_traits
00115 } // namespace ros
00116 
00117 namespace ros
00118 {
00119 namespace serialization
00120 {
00121 
00122 template<class ContainerAllocator> struct Serializer< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> >
00123 {
00124   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00125   {
00126     stream.next(m.handle);
00127     stream.next(m.size);
00128     stream.next(m.allocated);
00129     stream.next(m.name);
00130   }
00131 
00132   ROS_DECLARE_ALLINONE_SERIALIZER;
00133 }; // struct SharedMemBlock_
00134 } // namespace serialization
00135 } // namespace ros
00136 
00137 namespace ros
00138 {
00139 namespace message_operations
00140 {
00141 
00142 template<class ContainerAllocator>
00143 struct Printer< ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> >
00144 {
00145   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::sharedmem_transport::SharedMemBlock_<ContainerAllocator> & v) 
00146   {
00147     s << indent << "handle: ";
00148     Printer<uint32_t>::stream(s, indent + "  ", v.handle);
00149     s << indent << "size: ";
00150     Printer<uint32_t>::stream(s, indent + "  ", v.size);
00151     s << indent << "allocated: ";
00152     Printer<uint32_t>::stream(s, indent + "  ", v.allocated);
00153     s << indent << "name: ";
00154     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00155   }
00156 };
00157 
00158 
00159 } // namespace message_operations
00160 } // namespace ros
00161 
00162 #endif // SHAREDMEM_TRANSPORT_MESSAGE_SHAREDMEMBLOCK_H
00163 


sharedmem_transport
Author(s): Cedric Pradalier
autogenerated on Sun Oct 5 2014 23:49:07