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