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