UniqueID.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-unique_identifier/doc_stacks/2014-10-06_08-22-04.691803/unique_identifier/uuid_msgs/msg/UniqueID.msg */
00002 #ifndef UUID_MSGS_MESSAGE_UNIQUEID_H
00003 #define UUID_MSGS_MESSAGE_UNIQUEID_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 uuid_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct UniqueID_ {
00022   typedef UniqueID_<ContainerAllocator> Type;
00023 
00024   UniqueID_()
00025   : uuid()
00026   {
00027     uuid.assign(0);
00028   }
00029 
00030   UniqueID_(const ContainerAllocator& _alloc)
00031   : uuid()
00032   {
00033     uuid.assign(0);
00034   }
00035 
00036   typedef boost::array<uint8_t, 16>  _uuid_type;
00037   boost::array<uint8_t, 16>  uuid;
00038 
00039 
00040   typedef boost::shared_ptr< ::uuid_msgs::UniqueID_<ContainerAllocator> > Ptr;
00041   typedef boost::shared_ptr< ::uuid_msgs::UniqueID_<ContainerAllocator>  const> ConstPtr;
00042   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00043 }; // struct UniqueID
00044 typedef  ::uuid_msgs::UniqueID_<std::allocator<void> > UniqueID;
00045 
00046 typedef boost::shared_ptr< ::uuid_msgs::UniqueID> UniqueIDPtr;
00047 typedef boost::shared_ptr< ::uuid_msgs::UniqueID const> UniqueIDConstPtr;
00048 
00049 
00050 template<typename ContainerAllocator>
00051 std::ostream& operator<<(std::ostream& s, const  ::uuid_msgs::UniqueID_<ContainerAllocator> & v)
00052 {
00053   ros::message_operations::Printer< ::uuid_msgs::UniqueID_<ContainerAllocator> >::stream(s, "", v);
00054   return s;}
00055 
00056 } // namespace uuid_msgs
00057 
00058 namespace ros
00059 {
00060 namespace message_traits
00061 {
00062 template<class ContainerAllocator> struct IsMessage< ::uuid_msgs::UniqueID_<ContainerAllocator> > : public TrueType {};
00063 template<class ContainerAllocator> struct IsMessage< ::uuid_msgs::UniqueID_<ContainerAllocator>  const> : public TrueType {};
00064 template<class ContainerAllocator>
00065 struct MD5Sum< ::uuid_msgs::UniqueID_<ContainerAllocator> > {
00066   static const char* value() 
00067   {
00068     return "fec2a93b6f5367ee8112c9c0b41ff310";
00069   }
00070 
00071   static const char* value(const  ::uuid_msgs::UniqueID_<ContainerAllocator> &) { return value(); } 
00072   static const uint64_t static_value1 = 0xfec2a93b6f5367eeULL;
00073   static const uint64_t static_value2 = 0x8112c9c0b41ff310ULL;
00074 };
00075 
00076 template<class ContainerAllocator>
00077 struct DataType< ::uuid_msgs::UniqueID_<ContainerAllocator> > {
00078   static const char* value() 
00079   {
00080     return "uuid_msgs/UniqueID";
00081   }
00082 
00083   static const char* value(const  ::uuid_msgs::UniqueID_<ContainerAllocator> &) { return value(); } 
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct Definition< ::uuid_msgs::UniqueID_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "# A universally unique identifier (UUID).\n\
00091 #\n\
00092 #  http://en.wikipedia.org/wiki/Universally_unique_identifier\n\
00093 #  http://tools.ietf.org/html/rfc4122.html\n\
00094 \n\
00095 uint8[16] uuid\n\
00096 \n\
00097 ";
00098   }
00099 
00100   static const char* value(const  ::uuid_msgs::UniqueID_<ContainerAllocator> &) { return value(); } 
00101 };
00102 
00103 template<class ContainerAllocator> struct IsFixedSize< ::uuid_msgs::UniqueID_<ContainerAllocator> > : public TrueType {};
00104 } // namespace message_traits
00105 } // namespace ros
00106 
00107 namespace ros
00108 {
00109 namespace serialization
00110 {
00111 
00112 template<class ContainerAllocator> struct Serializer< ::uuid_msgs::UniqueID_<ContainerAllocator> >
00113 {
00114   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00115   {
00116     stream.next(m.uuid);
00117   }
00118 
00119   ROS_DECLARE_ALLINONE_SERIALIZER;
00120 }; // struct UniqueID_
00121 } // namespace serialization
00122 } // namespace ros
00123 
00124 namespace ros
00125 {
00126 namespace message_operations
00127 {
00128 
00129 template<class ContainerAllocator>
00130 struct Printer< ::uuid_msgs::UniqueID_<ContainerAllocator> >
00131 {
00132   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::uuid_msgs::UniqueID_<ContainerAllocator> & v) 
00133   {
00134     s << indent << "uuid[]" << std::endl;
00135     for (size_t i = 0; i < v.uuid.size(); ++i)
00136     {
00137       s << indent << "  uuid[" << i << "]: ";
00138       Printer<uint8_t>::stream(s, indent + "  ", v.uuid[i]);
00139     }
00140   }
00141 };
00142 
00143 
00144 } // namespace message_operations
00145 } // namespace ros
00146 
00147 #endif // UUID_MSGS_MESSAGE_UNIQUEID_H
00148 


uuid_msgs
Author(s): Jack O'Quin
autogenerated on Mon Oct 6 2014 08:23:43