DiscoveredService.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-zeroconf_msgs/doc_stacks/2014-01-02_12-13-31.902589/zeroconf_msgs/msg/DiscoveredService.msg */
00002 #ifndef ZEROCONF_MSGS_MESSAGE_DISCOVEREDSERVICE_H
00003 #define ZEROCONF_MSGS_MESSAGE_DISCOVEREDSERVICE_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_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct DiscoveredService_ {
00022   typedef DiscoveredService_<ContainerAllocator> Type;
00023 
00024   DiscoveredService_()
00025   : name()
00026   , type()
00027   , domain()
00028   , description()
00029   , hostname()
00030   , ipv4_addresses()
00031   , ipv6_addresses()
00032   , port(0)
00033   , cookie(0)
00034   , is_local(false)
00035   , our_own(false)
00036   , wide_area(false)
00037   , multicast(false)
00038   , cached(false)
00039   {
00040   }
00041 
00042   DiscoveredService_(const ContainerAllocator& _alloc)
00043   : name(_alloc)
00044   , type(_alloc)
00045   , domain(_alloc)
00046   , description(_alloc)
00047   , hostname(_alloc)
00048   , ipv4_addresses(_alloc)
00049   , ipv6_addresses(_alloc)
00050   , port(0)
00051   , cookie(0)
00052   , is_local(false)
00053   , our_own(false)
00054   , wide_area(false)
00055   , multicast(false)
00056   , cached(false)
00057   {
00058   }
00059 
00060   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _name_type;
00061   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  name;
00062 
00063   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _type_type;
00064   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  type;
00065 
00066   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _domain_type;
00067   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  domain;
00068 
00069   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _description_type;
00070   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  description;
00071 
00072   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _hostname_type;
00073   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  hostname;
00074 
00075   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _ipv4_addresses_type;
00076   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  ipv4_addresses;
00077 
00078   typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  _ipv6_addresses_type;
00079   std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other >  ipv6_addresses;
00080 
00081   typedef int32_t _port_type;
00082   int32_t port;
00083 
00084   typedef uint32_t _cookie_type;
00085   uint32_t cookie;
00086 
00087   typedef uint8_t _is_local_type;
00088   uint8_t is_local;
00089 
00090   typedef uint8_t _our_own_type;
00091   uint8_t our_own;
00092 
00093   typedef uint8_t _wide_area_type;
00094   uint8_t wide_area;
00095 
00096   typedef uint8_t _multicast_type;
00097   uint8_t multicast;
00098 
00099   typedef uint8_t _cached_type;
00100   uint8_t cached;
00101 
00102 
00103   typedef boost::shared_ptr< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> > Ptr;
00104   typedef boost::shared_ptr< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator>  const> ConstPtr;
00105   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00106 }; // struct DiscoveredService
00107 typedef  ::zeroconf_msgs::DiscoveredService_<std::allocator<void> > DiscoveredService;
00108 
00109 typedef boost::shared_ptr< ::zeroconf_msgs::DiscoveredService> DiscoveredServicePtr;
00110 typedef boost::shared_ptr< ::zeroconf_msgs::DiscoveredService const> DiscoveredServiceConstPtr;
00111 
00112 
00113 template<typename ContainerAllocator>
00114 std::ostream& operator<<(std::ostream& s, const  ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> & v)
00115 {
00116   ros::message_operations::Printer< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> >::stream(s, "", v);
00117   return s;}
00118 
00119 } // namespace zeroconf_msgs
00120 
00121 namespace ros
00122 {
00123 namespace message_traits
00124 {
00125 template<class ContainerAllocator> struct IsMessage< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> > : public TrueType {};
00126 template<class ContainerAllocator> struct IsMessage< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator>  const> : public TrueType {};
00127 template<class ContainerAllocator>
00128 struct MD5Sum< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> > {
00129   static const char* value() 
00130   {
00131     return "3aabc6dd9875ef180c75536ad9a51d86";
00132   }
00133 
00134   static const char* value(const  ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> &) { return value(); } 
00135   static const uint64_t static_value1 = 0x3aabc6dd9875ef18ULL;
00136   static const uint64_t static_value2 = 0x0c75536ad9a51d86ULL;
00137 };
00138 
00139 template<class ContainerAllocator>
00140 struct DataType< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> > {
00141   static const char* value() 
00142   {
00143     return "zeroconf_msgs/DiscoveredService";
00144   }
00145 
00146   static const char* value(const  ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> &) { return value(); } 
00147 };
00148 
00149 template<class ContainerAllocator>
00150 struct Definition< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> > {
00151   static const char* value() 
00152   {
00153     return "#\n\
00154 # Provides all the properties required for definition of a discovered \n\
00155 # zeroconf service. Note that it contains rather alot more information\n\
00156 # than that which is used to publish a zeroconf service.\n\
00157 \n\
00158 # Service Part\n\
00159 string name\n\
00160 string type\n\
00161 string domain\n\
00162 string description\n\
00163 \n\
00164 # Resolved part\n\
00165 string hostname\n\
00166 string[] ipv4_addresses\n\
00167 string[] ipv6_addresses\n\
00168 int32 port\n\
00169 \n\
00170 # These are detailed variables that you should not normally need\n\
00171 # and can be safely ignored in most circumstances (currently used\n\
00172 # by the avahi implementation).\n\
00173 \n\
00174 uint32 cookie\n\
00175 bool is_local\n\
00176 bool our_own\n\
00177 bool wide_area\n\
00178 bool multicast\n\
00179 bool cached\n\
00180 \n\
00181 \n\
00182 ";
00183   }
00184 
00185   static const char* value(const  ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> &) { return value(); } 
00186 };
00187 
00188 } // namespace message_traits
00189 } // namespace ros
00190 
00191 namespace ros
00192 {
00193 namespace serialization
00194 {
00195 
00196 template<class ContainerAllocator> struct Serializer< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> >
00197 {
00198   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00199   {
00200     stream.next(m.name);
00201     stream.next(m.type);
00202     stream.next(m.domain);
00203     stream.next(m.description);
00204     stream.next(m.hostname);
00205     stream.next(m.ipv4_addresses);
00206     stream.next(m.ipv6_addresses);
00207     stream.next(m.port);
00208     stream.next(m.cookie);
00209     stream.next(m.is_local);
00210     stream.next(m.our_own);
00211     stream.next(m.wide_area);
00212     stream.next(m.multicast);
00213     stream.next(m.cached);
00214   }
00215 
00216   ROS_DECLARE_ALLINONE_SERIALIZER;
00217 }; // struct DiscoveredService_
00218 } // namespace serialization
00219 } // namespace ros
00220 
00221 namespace ros
00222 {
00223 namespace message_operations
00224 {
00225 
00226 template<class ContainerAllocator>
00227 struct Printer< ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> >
00228 {
00229   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::zeroconf_msgs::DiscoveredService_<ContainerAllocator> & v) 
00230   {
00231     s << indent << "name: ";
00232     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.name);
00233     s << indent << "type: ";
00234     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.type);
00235     s << indent << "domain: ";
00236     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.domain);
00237     s << indent << "description: ";
00238     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.description);
00239     s << indent << "hostname: ";
00240     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.hostname);
00241     s << indent << "ipv4_addresses[]" << std::endl;
00242     for (size_t i = 0; i < v.ipv4_addresses.size(); ++i)
00243     {
00244       s << indent << "  ipv4_addresses[" << i << "]: ";
00245       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.ipv4_addresses[i]);
00246     }
00247     s << indent << "ipv6_addresses[]" << std::endl;
00248     for (size_t i = 0; i < v.ipv6_addresses.size(); ++i)
00249     {
00250       s << indent << "  ipv6_addresses[" << i << "]: ";
00251       Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.ipv6_addresses[i]);
00252     }
00253     s << indent << "port: ";
00254     Printer<int32_t>::stream(s, indent + "  ", v.port);
00255     s << indent << "cookie: ";
00256     Printer<uint32_t>::stream(s, indent + "  ", v.cookie);
00257     s << indent << "is_local: ";
00258     Printer<uint8_t>::stream(s, indent + "  ", v.is_local);
00259     s << indent << "our_own: ";
00260     Printer<uint8_t>::stream(s, indent + "  ", v.our_own);
00261     s << indent << "wide_area: ";
00262     Printer<uint8_t>::stream(s, indent + "  ", v.wide_area);
00263     s << indent << "multicast: ";
00264     Printer<uint8_t>::stream(s, indent + "  ", v.multicast);
00265     s << indent << "cached: ";
00266     Printer<uint8_t>::stream(s, indent + "  ", v.cached);
00267   }
00268 };
00269 
00270 
00271 } // namespace message_operations
00272 } // namespace ros
00273 
00274 #endif // ZEROCONF_MSGS_MESSAGE_DISCOVEREDSERVICE_H
00275 


zeroconf_msgs
Author(s): Daniel Stonier
autogenerated on Thu Jan 2 2014 12:14:34