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