Go to the documentation of this file.00001
00002 #ifndef RE_SRVS_SERVICE_GETENVIRONMENTBINARYFILE_H
00003 #define RE_SRVS_SERVICE_GETENVIRONMENTBINARYFILE_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 "re_msgs/File.h"
00022
00023 namespace re_srvs
00024 {
00025 template <class ContainerAllocator>
00026 struct GetEnvironmentBinaryFileRequest_ {
00027 typedef GetEnvironmentBinaryFileRequest_<ContainerAllocator> Type;
00028
00029 GetEnvironmentBinaryFileRequest_()
00030 : envUID()
00031 , filename()
00032 {
00033 }
00034
00035 GetEnvironmentBinaryFileRequest_(const ContainerAllocator& _alloc)
00036 : envUID(_alloc)
00037 , filename(_alloc)
00038 {
00039 }
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _envUID_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > envUID;
00043
00044 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _filename_type;
00045 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > filename;
00046
00047
00048 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::re_srvs::GetEnvironmentBinaryFileRequest_<std::allocator<void> > GetEnvironmentBinaryFileRequest;
00053
00054 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileRequest> GetEnvironmentBinaryFileRequestPtr;
00055 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileRequest const> GetEnvironmentBinaryFileRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct GetEnvironmentBinaryFileResponse_ {
00060 typedef GetEnvironmentBinaryFileResponse_<ContainerAllocator> Type;
00061
00062 GetEnvironmentBinaryFileResponse_()
00063 : success(false)
00064 , file()
00065 {
00066 }
00067
00068 GetEnvironmentBinaryFileResponse_(const ContainerAllocator& _alloc)
00069 : success(false)
00070 , file(_alloc)
00071 {
00072 }
00073
00074 typedef uint8_t _success_type;
00075 uint8_t success;
00076
00077 typedef ::re_msgs::File_<ContainerAllocator> _file_type;
00078 ::re_msgs::File_<ContainerAllocator> file;
00079
00080
00081 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> > Ptr;
00082 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> const> ConstPtr;
00083 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00084 };
00085 typedef ::re_srvs::GetEnvironmentBinaryFileResponse_<std::allocator<void> > GetEnvironmentBinaryFileResponse;
00086
00087 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileResponse> GetEnvironmentBinaryFileResponsePtr;
00088 typedef boost::shared_ptr< ::re_srvs::GetEnvironmentBinaryFileResponse const> GetEnvironmentBinaryFileResponseConstPtr;
00089
00090 struct GetEnvironmentBinaryFile
00091 {
00092
00093 typedef GetEnvironmentBinaryFileRequest Request;
00094 typedef GetEnvironmentBinaryFileResponse Response;
00095 Request request;
00096 Response response;
00097
00098 typedef Request RequestType;
00099 typedef Response ResponseType;
00100 };
00101 }
00102
00103 namespace ros
00104 {
00105 namespace message_traits
00106 {
00107 template<class ContainerAllocator> struct IsMessage< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> > : public TrueType {};
00108 template<class ContainerAllocator> struct IsMessage< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> const> : public TrueType {};
00109 template<class ContainerAllocator>
00110 struct MD5Sum< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "438fc866c4a0866b4f0dcf9d4e62dc23";
00114 }
00115
00116 static const char* value(const ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> &) { return value(); }
00117 static const uint64_t static_value1 = 0x438fc866c4a0866bULL;
00118 static const uint64_t static_value2 = 0x4f0dcf9d4e62dc23ULL;
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct DataType< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "re_srvs/GetEnvironmentBinaryFileRequest";
00126 }
00127
00128 static const char* value(const ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> &) { return value(); }
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct Definition< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "string envUID\n\
00136 string filename\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147
00148 namespace ros
00149 {
00150 namespace message_traits
00151 {
00152 template<class ContainerAllocator> struct IsMessage< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct IsMessage< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> const> : public TrueType {};
00154 template<class ContainerAllocator>
00155 struct MD5Sum< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> > {
00156 static const char* value()
00157 {
00158 return "561f98c4157d288cbbbd58ca0ab1e87a";
00159 }
00160
00161 static const char* value(const ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> &) { return value(); }
00162 static const uint64_t static_value1 = 0x561f98c4157d288cULL;
00163 static const uint64_t static_value2 = 0xbbbd58ca0ab1e87aULL;
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct DataType< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "re_srvs/GetEnvironmentBinaryFileResponse";
00171 }
00172
00173 static const char* value(const ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator>
00177 struct Definition< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> > {
00178 static const char* value()
00179 {
00180 return "bool success\n\
00181 re_msgs/File file\n\
00182 \n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: re_msgs/File\n\
00186 # This file representation is used to pass binary data to the RoboEarthDB.\n\
00187 # As the endianess isn't stored, only files with a byte order mark (BOM) or\n\
00188 # an implicitly specified endianess should be transferred.\n\
00189 string name # file name\n\
00190 int8[] data # binary data \n\
00191 \n\
00192 ";
00193 }
00194
00195 static const char* value(const ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> &) { return value(); }
00196 };
00197
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace serialization
00204 {
00205
00206 template<class ContainerAllocator> struct Serializer< ::re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> >
00207 {
00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00209 {
00210 stream.next(m.envUID);
00211 stream.next(m.filename);
00212 }
00213
00214 ROS_DECLARE_ALLINONE_SERIALIZER;
00215 };
00216 }
00217 }
00218
00219
00220 namespace ros
00221 {
00222 namespace serialization
00223 {
00224
00225 template<class ContainerAllocator> struct Serializer< ::re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> >
00226 {
00227 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00228 {
00229 stream.next(m.success);
00230 stream.next(m.file);
00231 }
00232
00233 ROS_DECLARE_ALLINONE_SERIALIZER;
00234 };
00235 }
00236 }
00237
00238 namespace ros
00239 {
00240 namespace service_traits
00241 {
00242 template<>
00243 struct MD5Sum<re_srvs::GetEnvironmentBinaryFile> {
00244 static const char* value()
00245 {
00246 return "5ee8ef47af201972a853e50a0a644f44";
00247 }
00248
00249 static const char* value(const re_srvs::GetEnvironmentBinaryFile&) { return value(); }
00250 };
00251
00252 template<>
00253 struct DataType<re_srvs::GetEnvironmentBinaryFile> {
00254 static const char* value()
00255 {
00256 return "re_srvs/GetEnvironmentBinaryFile";
00257 }
00258
00259 static const char* value(const re_srvs::GetEnvironmentBinaryFile&) { return value(); }
00260 };
00261
00262 template<class ContainerAllocator>
00263 struct MD5Sum<re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> > {
00264 static const char* value()
00265 {
00266 return "5ee8ef47af201972a853e50a0a644f44";
00267 }
00268
00269 static const char* value(const re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> &) { return value(); }
00270 };
00271
00272 template<class ContainerAllocator>
00273 struct DataType<re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> > {
00274 static const char* value()
00275 {
00276 return "re_srvs/GetEnvironmentBinaryFile";
00277 }
00278
00279 static const char* value(const re_srvs::GetEnvironmentBinaryFileRequest_<ContainerAllocator> &) { return value(); }
00280 };
00281
00282 template<class ContainerAllocator>
00283 struct MD5Sum<re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> > {
00284 static const char* value()
00285 {
00286 return "5ee8ef47af201972a853e50a0a644f44";
00287 }
00288
00289 static const char* value(const re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> &) { return value(); }
00290 };
00291
00292 template<class ContainerAllocator>
00293 struct DataType<re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> > {
00294 static const char* value()
00295 {
00296 return "re_srvs/GetEnvironmentBinaryFile";
00297 }
00298
00299 static const char* value(const re_srvs::GetEnvironmentBinaryFileResponse_<ContainerAllocator> &) { return value(); }
00300 };
00301
00302 }
00303 }
00304
00305 #endif // RE_SRVS_SERVICE_GETENVIRONMENTBINARYFILE_H
00306