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