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