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