PublishedService.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-zeroconf_comms/doc_stacks/2012-11-13_23-46-23.193189/zeroconf_comms/msg/PublishedService.msg */
00002 #ifndef ZEROCONF_COMMS_MESSAGE_PUBLISHEDSERVICE_H
00003 #define ZEROCONF_COMMS_MESSAGE_PUBLISHEDSERVICE_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 zeroconf_comms
00019 {
00020 template <class ContainerAllocator>
00021 struct PublishedService_ {
00022   typedef PublishedService_<ContainerAllocator> Type;
00023 
00024   PublishedService_()
00025   : name()
00026   , type()
00027   , domain()
00028   , port(0)
00029   , description()
00030   {
00031   }
00032 
00033   PublishedService_(const ContainerAllocator& _alloc)
00034   : name(_alloc)
00035   , type(_alloc)
00036   , domain(_alloc)
00037   , port(0)
00038   , description(_alloc)
00039   {
00040   }
00041 
00042   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00043   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00044 
00045   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _type_type;
00046   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  type;
00047 
00048   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _domain_type;
00049   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  domain;
00050 
00051   typedef int32_t _port_type;
00052   int32_t port;
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _description_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  description;
00056 
00057 
00058   typedef boost::shared_ptr< ::zeroconf_comms::PublishedService_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::zeroconf_comms::PublishedService_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct PublishedService
00062 typedef  ::zeroconf_comms::PublishedService_<std::allocator<void> > PublishedService;
00063 
00064 typedef boost::shared_ptr< ::zeroconf_comms::PublishedService> PublishedServicePtr;
00065 typedef boost::shared_ptr< ::zeroconf_comms::PublishedService const> PublishedServiceConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::zeroconf_comms::PublishedService_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::zeroconf_comms::PublishedService_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace zeroconf_comms
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::zeroconf_comms::PublishedService_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::zeroconf_comms::PublishedService_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::zeroconf_comms::PublishedService_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "a1b00555a59ffeb95091f591a6ba849a";
00087   }
00088 
00089   static const char* value(const  ::zeroconf_comms::PublishedService_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0xa1b00555a59ffeb9ULL;
00091   static const uint64_t static_value2 = 0x5091f591a6ba849aULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::zeroconf_comms::PublishedService_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "zeroconf_comms/PublishedService";
00099   }
00100 
00101   static const char* value(const  ::zeroconf_comms::PublishedService_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::zeroconf_comms::PublishedService_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "#\n\
00109 # Provides all the properties required for publishing of a zeroconf service.\n\
00110 \n\
00111 string name\n\
00112 string type\n\
00113 string domain\n\
00114 int32 port\n\
00115 string description\n\
00116 \n\
00117 ";
00118   }
00119 
00120   static const char* value(const  ::zeroconf_comms::PublishedService_<ContainerAllocator> &) { return value(); } 
00121 };
00122 
00123 } // namespace message_traits
00124 } // namespace ros
00125 
00126 namespace ros
00127 {
00128 namespace serialization
00129 {
00130 
00131 template<class ContainerAllocator> struct Serializer< ::zeroconf_comms::PublishedService_<ContainerAllocator> >
00132 {
00133   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00134   {
00135     stream.next(m.name);
00136     stream.next(m.type);
00137     stream.next(m.domain);
00138     stream.next(m.port);
00139     stream.next(m.description);
00140   }
00141 
00142   ROS_DECLARE_ALLINONE_SERIALIZER;
00143 }; // struct PublishedService_
00144 } // namespace serialization
00145 } // namespace ros
00146 
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151 
00152 template<class ContainerAllocator>
00153 struct Printer< ::zeroconf_comms::PublishedService_<ContainerAllocator> >
00154 {
00155   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::zeroconf_comms::PublishedService_<ContainerAllocator> & v) 
00156   {
00157     s << indent << "name: ";
00158     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00159     s << indent << "type: ";
00160     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.type);
00161     s << indent << "domain: ";
00162     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.domain);
00163     s << indent << "port: ";
00164     Printer<int32_t>::stream(s, indent + "  ", v.port);
00165     s << indent << "description: ";
00166     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.description);
00167   }
00168 };
00169 
00170 
00171 } // namespace message_operations
00172 } // namespace ros
00173 
00174 #endif // ZEROCONF_COMMS_MESSAGE_PUBLISHEDSERVICE_H
00175 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


zeroconf_comms
Author(s): Daniel Stonier
autogenerated on Tue Nov 13 2012 23:48:05