Go to the documentation of this file.00001
00002 #ifndef ZEROCONF_COMMS_SERVICE_LISTPUBLISHEDSERVICES_H
00003 #define ZEROCONF_COMMS_SERVICE_LISTPUBLISHEDSERVICES_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 "zeroconf_comms/PublishedService.h"
00022
00023 namespace zeroconf_comms
00024 {
00025 template <class ContainerAllocator>
00026 struct ListPublishedServicesRequest_ {
00027 typedef ListPublishedServicesRequest_<ContainerAllocator> Type;
00028
00029 ListPublishedServicesRequest_()
00030 : service_type()
00031 {
00032 }
00033
00034 ListPublishedServicesRequest_(const ContainerAllocator& _alloc)
00035 : service_type(_alloc)
00036 {
00037 }
00038
00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _service_type_type;
00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > service_type;
00041
00042
00043 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> > Ptr;
00044 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> const> ConstPtr;
00045 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00046 };
00047 typedef ::zeroconf_comms::ListPublishedServicesRequest_<std::allocator<void> > ListPublishedServicesRequest;
00048
00049 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesRequest> ListPublishedServicesRequestPtr;
00050 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesRequest const> ListPublishedServicesRequestConstPtr;
00051
00052
00053 template <class ContainerAllocator>
00054 struct ListPublishedServicesResponse_ {
00055 typedef ListPublishedServicesResponse_<ContainerAllocator> Type;
00056
00057 ListPublishedServicesResponse_()
00058 : services()
00059 {
00060 }
00061
00062 ListPublishedServicesResponse_(const ContainerAllocator& _alloc)
00063 : services(_alloc)
00064 {
00065 }
00066
00067 typedef std::vector< ::zeroconf_comms::PublishedService_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::zeroconf_comms::PublishedService_<ContainerAllocator> >::other > _services_type;
00068 std::vector< ::zeroconf_comms::PublishedService_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::zeroconf_comms::PublishedService_<ContainerAllocator> >::other > services;
00069
00070
00071 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> > Ptr;
00072 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> const> ConstPtr;
00073 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00074 };
00075 typedef ::zeroconf_comms::ListPublishedServicesResponse_<std::allocator<void> > ListPublishedServicesResponse;
00076
00077 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesResponse> ListPublishedServicesResponsePtr;
00078 typedef boost::shared_ptr< ::zeroconf_comms::ListPublishedServicesResponse const> ListPublishedServicesResponseConstPtr;
00079
00080 struct ListPublishedServices
00081 {
00082
00083 typedef ListPublishedServicesRequest Request;
00084 typedef ListPublishedServicesResponse Response;
00085 Request request;
00086 Response response;
00087
00088 typedef Request RequestType;
00089 typedef Response ResponseType;
00090 };
00091 }
00092
00093 namespace ros
00094 {
00095 namespace message_traits
00096 {
00097 template<class ContainerAllocator> struct IsMessage< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> > : public TrueType {};
00098 template<class ContainerAllocator> struct IsMessage< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> const> : public TrueType {};
00099 template<class ContainerAllocator>
00100 struct MD5Sum< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "e1bf1fd6519c823d87c16f342a193a85";
00104 }
00105
00106 static const char* value(const ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> &) { return value(); }
00107 static const uint64_t static_value1 = 0xe1bf1fd6519c823dULL;
00108 static const uint64_t static_value2 = 0x87c16f342a193a85ULL;
00109 };
00110
00111 template<class ContainerAllocator>
00112 struct DataType< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "zeroconf_comms/ListPublishedServicesRequest";
00116 }
00117
00118 static const char* value(const ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> &) { return value(); }
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct Definition< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "string service_type\n\
00126 \n\
00127 ";
00128 }
00129
00130 static const char* value(const ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 }
00134 }
00135
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator> struct IsMessage< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct IsMessage< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> const> : public TrueType {};
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "12aaabf9e3957c5a3d8c742745b6d97d";
00148 }
00149
00150 static const char* value(const ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0x12aaabf9e3957c5aULL;
00152 static const uint64_t static_value2 = 0x3d8c742745b6d97dULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "zeroconf_comms/ListPublishedServicesResponse";
00160 }
00161
00162 static const char* value(const ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "zeroconf_comms/PublishedService[] services\n\
00170 \n\
00171 \n\
00172 ================================================================================\n\
00173 MSG: zeroconf_comms/PublishedService\n\
00174 #\n\
00175 # Provides all the properties required for publishing of a zeroconf service.\n\
00176 \n\
00177 string name\n\
00178 string type\n\
00179 string domain\n\
00180 int32 port\n\
00181 string description\n\
00182 \n\
00183 ";
00184 }
00185
00186 static const char* value(const ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> &) { return value(); }
00187 };
00188
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace serialization
00195 {
00196
00197 template<class ContainerAllocator> struct Serializer< ::zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> >
00198 {
00199 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00200 {
00201 stream.next(m.service_type);
00202 }
00203
00204 ROS_DECLARE_ALLINONE_SERIALIZER;
00205 };
00206 }
00207 }
00208
00209
00210 namespace ros
00211 {
00212 namespace serialization
00213 {
00214
00215 template<class ContainerAllocator> struct Serializer< ::zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> >
00216 {
00217 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00218 {
00219 stream.next(m.services);
00220 }
00221
00222 ROS_DECLARE_ALLINONE_SERIALIZER;
00223 };
00224 }
00225 }
00226
00227 namespace ros
00228 {
00229 namespace service_traits
00230 {
00231 template<>
00232 struct MD5Sum<zeroconf_comms::ListPublishedServices> {
00233 static const char* value()
00234 {
00235 return "7d391b756e89ad5929088251d9e80c9f";
00236 }
00237
00238 static const char* value(const zeroconf_comms::ListPublishedServices&) { return value(); }
00239 };
00240
00241 template<>
00242 struct DataType<zeroconf_comms::ListPublishedServices> {
00243 static const char* value()
00244 {
00245 return "zeroconf_comms/ListPublishedServices";
00246 }
00247
00248 static const char* value(const zeroconf_comms::ListPublishedServices&) { return value(); }
00249 };
00250
00251 template<class ContainerAllocator>
00252 struct MD5Sum<zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> > {
00253 static const char* value()
00254 {
00255 return "7d391b756e89ad5929088251d9e80c9f";
00256 }
00257
00258 static const char* value(const zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> &) { return value(); }
00259 };
00260
00261 template<class ContainerAllocator>
00262 struct DataType<zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> > {
00263 static const char* value()
00264 {
00265 return "zeroconf_comms/ListPublishedServices";
00266 }
00267
00268 static const char* value(const zeroconf_comms::ListPublishedServicesRequest_<ContainerAllocator> &) { return value(); }
00269 };
00270
00271 template<class ContainerAllocator>
00272 struct MD5Sum<zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> > {
00273 static const char* value()
00274 {
00275 return "7d391b756e89ad5929088251d9e80c9f";
00276 }
00277
00278 static const char* value(const zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> &) { return value(); }
00279 };
00280
00281 template<class ContainerAllocator>
00282 struct DataType<zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> > {
00283 static const char* value()
00284 {
00285 return "zeroconf_comms/ListPublishedServices";
00286 }
00287
00288 static const char* value(const zeroconf_comms::ListPublishedServicesResponse_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 }
00292 }
00293
00294 #endif // ZEROCONF_COMMS_SERVICE_LISTPUBLISHEDSERVICES_H
00295