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