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