00001
00002 #ifndef TOPIC_TOOLS_SERVICE_MUXADD_H
00003 #define TOPIC_TOOLS_SERVICE_MUXADD_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017
00018 namespace topic_tools
00019 {
00020 template <class ContainerAllocator>
00021 struct MuxAddRequest_ : public ros::Message
00022 {
00023 typedef MuxAddRequest_<ContainerAllocator> Type;
00024
00025 MuxAddRequest_()
00026 : topic()
00027 {
00028 }
00029
00030 MuxAddRequest_(const ContainerAllocator& _alloc)
00031 : topic(_alloc)
00032 {
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic;
00037
00038
00039 private:
00040 static const char* __s_getDataType_() { return "topic_tools/MuxAddRequest"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "d8f94bae31b356b24d0427f80426d0c3"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getServerMD5Sum_() { return "d8f94bae31b356b24d0427f80426d0c3"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00057
00058 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00059
00060 private:
00061 static const char* __s_getMessageDefinition_() { return "string topic\n\
00062 \n\
00063 "; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00070 {
00071 ros::serialization::OStream stream(write_ptr, 1000000000);
00072 ros::serialization::serialize(stream, topic);
00073 return stream.getData();
00074 }
00075
00076 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00077 {
00078 ros::serialization::IStream stream(read_ptr, 1000000000);
00079 ros::serialization::deserialize(stream, topic);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint32_t serializationLength() const
00084 {
00085 uint32_t size = 0;
00086 size += ros::serialization::serializationLength(topic);
00087 return size;
00088 }
00089
00090 typedef boost::shared_ptr< ::topic_tools::MuxAddRequest_<ContainerAllocator> > Ptr;
00091 typedef boost::shared_ptr< ::topic_tools::MuxAddRequest_<ContainerAllocator> const> ConstPtr;
00092 };
00093 typedef ::topic_tools::MuxAddRequest_<std::allocator<void> > MuxAddRequest;
00094
00095 typedef boost::shared_ptr< ::topic_tools::MuxAddRequest> MuxAddRequestPtr;
00096 typedef boost::shared_ptr< ::topic_tools::MuxAddRequest const> MuxAddRequestConstPtr;
00097
00098
00099 template <class ContainerAllocator>
00100 struct MuxAddResponse_ : public ros::Message
00101 {
00102 typedef MuxAddResponse_<ContainerAllocator> Type;
00103
00104 MuxAddResponse_()
00105 {
00106 }
00107
00108 MuxAddResponse_(const ContainerAllocator& _alloc)
00109 {
00110 }
00111
00112
00113 private:
00114 static const char* __s_getDataType_() { return "topic_tools/MuxAddResponse"; }
00115 public:
00116 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00117
00118 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00119
00120 private:
00121 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00122 public:
00123 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00124
00125 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00126
00127 private:
00128 static const char* __s_getServerMD5Sum_() { return "d8f94bae31b356b24d0427f80426d0c3"; }
00129 public:
00130 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00131
00132 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00133
00134 private:
00135 static const char* __s_getMessageDefinition_() { return "\n\
00136 \n\
00137 "; }
00138 public:
00139 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00140
00141 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00142
00143 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00144 {
00145 ros::serialization::OStream stream(write_ptr, 1000000000);
00146 return stream.getData();
00147 }
00148
00149 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00150 {
00151 ros::serialization::IStream stream(read_ptr, 1000000000);
00152 return stream.getData();
00153 }
00154
00155 ROS_DEPRECATED virtual uint32_t serializationLength() const
00156 {
00157 uint32_t size = 0;
00158 return size;
00159 }
00160
00161 typedef boost::shared_ptr< ::topic_tools::MuxAddResponse_<ContainerAllocator> > Ptr;
00162 typedef boost::shared_ptr< ::topic_tools::MuxAddResponse_<ContainerAllocator> const> ConstPtr;
00163 };
00164 typedef ::topic_tools::MuxAddResponse_<std::allocator<void> > MuxAddResponse;
00165
00166 typedef boost::shared_ptr< ::topic_tools::MuxAddResponse> MuxAddResponsePtr;
00167 typedef boost::shared_ptr< ::topic_tools::MuxAddResponse const> MuxAddResponseConstPtr;
00168
00169 struct MuxAdd
00170 {
00171
00172 typedef MuxAddRequest Request;
00173 typedef MuxAddResponse Response;
00174 Request request;
00175 Response response;
00176
00177 typedef Request RequestType;
00178 typedef Response ResponseType;
00179 };
00180 }
00181
00182 namespace ros
00183 {
00184 namespace message_traits
00185 {
00186 template<class ContainerAllocator>
00187 struct MD5Sum< ::topic_tools::MuxAddRequest_<ContainerAllocator> > {
00188 static const char* value()
00189 {
00190 return "d8f94bae31b356b24d0427f80426d0c3";
00191 }
00192
00193 static const char* value(const ::topic_tools::MuxAddRequest_<ContainerAllocator> &) { return value(); }
00194 static const uint64_t static_value1 = 0xd8f94bae31b356b2ULL;
00195 static const uint64_t static_value2 = 0x4d0427f80426d0c3ULL;
00196 };
00197
00198 template<class ContainerAllocator>
00199 struct DataType< ::topic_tools::MuxAddRequest_<ContainerAllocator> > {
00200 static const char* value()
00201 {
00202 return "topic_tools/MuxAddRequest";
00203 }
00204
00205 static const char* value(const ::topic_tools::MuxAddRequest_<ContainerAllocator> &) { return value(); }
00206 };
00207
00208 template<class ContainerAllocator>
00209 struct Definition< ::topic_tools::MuxAddRequest_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "string topic\n\
00213 \n\
00214 ";
00215 }
00216
00217 static const char* value(const ::topic_tools::MuxAddRequest_<ContainerAllocator> &) { return value(); }
00218 };
00219
00220 }
00221 }
00222
00223
00224 namespace ros
00225 {
00226 namespace message_traits
00227 {
00228 template<class ContainerAllocator>
00229 struct MD5Sum< ::topic_tools::MuxAddResponse_<ContainerAllocator> > {
00230 static const char* value()
00231 {
00232 return "d41d8cd98f00b204e9800998ecf8427e";
00233 }
00234
00235 static const char* value(const ::topic_tools::MuxAddResponse_<ContainerAllocator> &) { return value(); }
00236 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00237 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00238 };
00239
00240 template<class ContainerAllocator>
00241 struct DataType< ::topic_tools::MuxAddResponse_<ContainerAllocator> > {
00242 static const char* value()
00243 {
00244 return "topic_tools/MuxAddResponse";
00245 }
00246
00247 static const char* value(const ::topic_tools::MuxAddResponse_<ContainerAllocator> &) { return value(); }
00248 };
00249
00250 template<class ContainerAllocator>
00251 struct Definition< ::topic_tools::MuxAddResponse_<ContainerAllocator> > {
00252 static const char* value()
00253 {
00254 return "\n\
00255 \n\
00256 ";
00257 }
00258
00259 static const char* value(const ::topic_tools::MuxAddResponse_<ContainerAllocator> &) { return value(); }
00260 };
00261
00262 template<class ContainerAllocator> struct IsFixedSize< ::topic_tools::MuxAddResponse_<ContainerAllocator> > : public TrueType {};
00263 }
00264 }
00265
00266 namespace ros
00267 {
00268 namespace serialization
00269 {
00270
00271 template<class ContainerAllocator> struct Serializer< ::topic_tools::MuxAddRequest_<ContainerAllocator> >
00272 {
00273 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00274 {
00275 stream.next(m.topic);
00276 }
00277
00278 ROS_DECLARE_ALLINONE_SERIALIZER;
00279 };
00280 }
00281 }
00282
00283
00284 namespace ros
00285 {
00286 namespace serialization
00287 {
00288
00289 template<class ContainerAllocator> struct Serializer< ::topic_tools::MuxAddResponse_<ContainerAllocator> >
00290 {
00291 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00292 {
00293 }
00294
00295 ROS_DECLARE_ALLINONE_SERIALIZER;
00296 };
00297 }
00298 }
00299
00300 namespace ros
00301 {
00302 namespace service_traits
00303 {
00304 template<>
00305 struct MD5Sum<topic_tools::MuxAdd> {
00306 static const char* value()
00307 {
00308 return "d8f94bae31b356b24d0427f80426d0c3";
00309 }
00310
00311 static const char* value(const topic_tools::MuxAdd&) { return value(); }
00312 };
00313
00314 template<>
00315 struct DataType<topic_tools::MuxAdd> {
00316 static const char* value()
00317 {
00318 return "topic_tools/MuxAdd";
00319 }
00320
00321 static const char* value(const topic_tools::MuxAdd&) { return value(); }
00322 };
00323
00324 template<class ContainerAllocator>
00325 struct MD5Sum<topic_tools::MuxAddRequest_<ContainerAllocator> > {
00326 static const char* value()
00327 {
00328 return "d8f94bae31b356b24d0427f80426d0c3";
00329 }
00330
00331 static const char* value(const topic_tools::MuxAddRequest_<ContainerAllocator> &) { return value(); }
00332 };
00333
00334 template<class ContainerAllocator>
00335 struct DataType<topic_tools::MuxAddRequest_<ContainerAllocator> > {
00336 static const char* value()
00337 {
00338 return "topic_tools/MuxAdd";
00339 }
00340
00341 static const char* value(const topic_tools::MuxAddRequest_<ContainerAllocator> &) { return value(); }
00342 };
00343
00344 template<class ContainerAllocator>
00345 struct MD5Sum<topic_tools::MuxAddResponse_<ContainerAllocator> > {
00346 static const char* value()
00347 {
00348 return "d8f94bae31b356b24d0427f80426d0c3";
00349 }
00350
00351 static const char* value(const topic_tools::MuxAddResponse_<ContainerAllocator> &) { return value(); }
00352 };
00353
00354 template<class ContainerAllocator>
00355 struct DataType<topic_tools::MuxAddResponse_<ContainerAllocator> > {
00356 static const char* value()
00357 {
00358 return "topic_tools/MuxAdd";
00359 }
00360
00361 static const char* value(const topic_tools::MuxAddResponse_<ContainerAllocator> &) { return value(); }
00362 };
00363
00364 }
00365 }
00366
00367 #endif // TOPIC_TOOLS_SERVICE_MUXADD_H
00368