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