Go to the documentation of this file.00001
00002 #ifndef JSON_PROLOG_MSGS_SERVICE_PROLOGQUERY_H
00003 #define JSON_PROLOG_MSGS_SERVICE_PROLOGQUERY_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 json_prolog_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct PrologQueryRequest_ {
00026 typedef PrologQueryRequest_<ContainerAllocator> Type;
00027
00028 PrologQueryRequest_()
00029 : mode(0)
00030 , id()
00031 , query()
00032 {
00033 }
00034
00035 PrologQueryRequest_(const ContainerAllocator& _alloc)
00036 : mode(0)
00037 , id(_alloc)
00038 , query(_alloc)
00039 {
00040 }
00041
00042 typedef int8_t _mode_type;
00043 int8_t mode;
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _id_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > id;
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _query_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > query;
00050
00051 enum { ALL_SOLUTIONS = 0 };
00052 enum { INCREMENTAL = 1 };
00053
00054 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> > Ptr;
00055 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> const> ConstPtr;
00056 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 };
00058 typedef ::json_prolog_msgs::PrologQueryRequest_<std::allocator<void> > PrologQueryRequest;
00059
00060 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryRequest> PrologQueryRequestPtr;
00061 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryRequest const> PrologQueryRequestConstPtr;
00062
00063
00064
00065 template <class ContainerAllocator>
00066 struct PrologQueryResponse_ {
00067 typedef PrologQueryResponse_<ContainerAllocator> Type;
00068
00069 PrologQueryResponse_()
00070 : ok(false)
00071 , message()
00072 {
00073 }
00074
00075 PrologQueryResponse_(const ContainerAllocator& _alloc)
00076 : ok(false)
00077 , message(_alloc)
00078 {
00079 }
00080
00081 typedef uint8_t _ok_type;
00082 uint8_t ok;
00083
00084 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _message_type;
00085 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > message;
00086
00087
00088 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> > Ptr;
00089 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> const> ConstPtr;
00090 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00091 };
00092 typedef ::json_prolog_msgs::PrologQueryResponse_<std::allocator<void> > PrologQueryResponse;
00093
00094 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryResponse> PrologQueryResponsePtr;
00095 typedef boost::shared_ptr< ::json_prolog_msgs::PrologQueryResponse const> PrologQueryResponseConstPtr;
00096
00097
00098 struct PrologQuery
00099 {
00100
00101 typedef PrologQueryRequest Request;
00102 typedef PrologQueryResponse Response;
00103 Request request;
00104 Response response;
00105
00106 typedef Request RequestType;
00107 typedef Response ResponseType;
00108 };
00109 }
00110
00111 namespace ros
00112 {
00113 namespace message_traits
00114 {
00115 template<class ContainerAllocator> struct IsMessage< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> > : public TrueType {};
00116 template<class ContainerAllocator> struct IsMessage< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> const> : public TrueType {};
00117 template<class ContainerAllocator>
00118 struct MD5Sum< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "ae1d940ff32be0f4c9af16fc85baab7a";
00122 }
00123
00124 static const char* value(const ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> &) { return value(); }
00125 static const uint64_t static_value1 = 0xae1d940ff32be0f4ULL;
00126 static const uint64_t static_value2 = 0xc9af16fc85baab7aULL;
00127 };
00128
00129 template<class ContainerAllocator>
00130 struct DataType< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "json_prolog_msgs/PrologQueryRequest";
00134 }
00135
00136 static const char* value(const ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> &) { return value(); }
00137 };
00138
00139 template<class ContainerAllocator>
00140 struct Definition< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "\n\
00144 \n\
00145 \n\
00146 \n\
00147 \n\
00148 \n\
00149 \n\
00150 byte ALL_SOLUTIONS=0\n\
00151 byte INCREMENTAL=1\n\
00152 \n\
00153 byte mode\n\
00154 string id\n\
00155 string query\n\
00156 \n\
00157 ";
00158 }
00159
00160 static const char* value(const ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 }
00164 }
00165
00166
00167 namespace ros
00168 {
00169 namespace message_traits
00170 {
00171 template<class ContainerAllocator> struct IsMessage< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> > : public TrueType {};
00172 template<class ContainerAllocator> struct IsMessage< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> const> : public TrueType {};
00173 template<class ContainerAllocator>
00174 struct MD5Sum< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "f6fcb3b1ed8c7743c7fb7d5bcca28513";
00178 }
00179
00180 static const char* value(const ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> &) { return value(); }
00181 static const uint64_t static_value1 = 0xf6fcb3b1ed8c7743ULL;
00182 static const uint64_t static_value2 = 0xc7fb7d5bcca28513ULL;
00183 };
00184
00185 template<class ContainerAllocator>
00186 struct DataType< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> > {
00187 static const char* value()
00188 {
00189 return "json_prolog_msgs/PrologQueryResponse";
00190 }
00191
00192 static const char* value(const ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> &) { return value(); }
00193 };
00194
00195 template<class ContainerAllocator>
00196 struct Definition< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "bool ok\n\
00200 string message\n\
00201 \n\
00202 \n\
00203 ";
00204 }
00205
00206 static const char* value(const ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> &) { return value(); }
00207 };
00208
00209 }
00210 }
00211
00212 namespace ros
00213 {
00214 namespace serialization
00215 {
00216
00217 template<class ContainerAllocator> struct Serializer< ::json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> >
00218 {
00219 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00220 {
00221 stream.next(m.mode);
00222 stream.next(m.id);
00223 stream.next(m.query);
00224 }
00225
00226 ROS_DECLARE_ALLINONE_SERIALIZER;
00227 };
00228 }
00229 }
00230
00231
00232 namespace ros
00233 {
00234 namespace serialization
00235 {
00236
00237 template<class ContainerAllocator> struct Serializer< ::json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> >
00238 {
00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00240 {
00241 stream.next(m.ok);
00242 stream.next(m.message);
00243 }
00244
00245 ROS_DECLARE_ALLINONE_SERIALIZER;
00246 };
00247 }
00248 }
00249
00250 namespace ros
00251 {
00252 namespace service_traits
00253 {
00254 template<>
00255 struct MD5Sum<json_prolog_msgs::PrologQuery> {
00256 static const char* value()
00257 {
00258 return "b98fb21a498cfd5b16c55f4b1f1cfa7d";
00259 }
00260
00261 static const char* value(const json_prolog_msgs::PrologQuery&) { return value(); }
00262 };
00263
00264 template<>
00265 struct DataType<json_prolog_msgs::PrologQuery> {
00266 static const char* value()
00267 {
00268 return "json_prolog_msgs/PrologQuery";
00269 }
00270
00271 static const char* value(const json_prolog_msgs::PrologQuery&) { return value(); }
00272 };
00273
00274 template<class ContainerAllocator>
00275 struct MD5Sum<json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> > {
00276 static const char* value()
00277 {
00278 return "b98fb21a498cfd5b16c55f4b1f1cfa7d";
00279 }
00280
00281 static const char* value(const json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> &) { return value(); }
00282 };
00283
00284 template<class ContainerAllocator>
00285 struct DataType<json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> > {
00286 static const char* value()
00287 {
00288 return "json_prolog_msgs/PrologQuery";
00289 }
00290
00291 static const char* value(const json_prolog_msgs::PrologQueryRequest_<ContainerAllocator> &) { return value(); }
00292 };
00293
00294 template<class ContainerAllocator>
00295 struct MD5Sum<json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> > {
00296 static const char* value()
00297 {
00298 return "b98fb21a498cfd5b16c55f4b1f1cfa7d";
00299 }
00300
00301 static const char* value(const json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> &) { return value(); }
00302 };
00303
00304 template<class ContainerAllocator>
00305 struct DataType<json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> > {
00306 static const char* value()
00307 {
00308 return "json_prolog_msgs/PrologQuery";
00309 }
00310
00311 static const char* value(const json_prolog_msgs::PrologQueryResponse_<ContainerAllocator> &) { return value(); }
00312 };
00313
00314 }
00315 }
00316
00317 #endif // JSON_PROLOG_MSGS_SERVICE_PROLOGQUERY_H
00318