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