$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-multimaster_experimental/doc_stacks/2013-03-01_16-04-40.976361/multimaster_experimental/app_manager/srv/StopApp.srv */ 00002 #ifndef APP_MANAGER_SERVICE_STOPAPP_H 00003 #define APP_MANAGER_SERVICE_STOPAPP_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 app_manager 00023 { 00024 template <class ContainerAllocator> 00025 struct StopAppRequest_ { 00026 typedef StopAppRequest_<ContainerAllocator> Type; 00027 00028 StopAppRequest_() 00029 : name() 00030 { 00031 } 00032 00033 StopAppRequest_(const ContainerAllocator& _alloc) 00034 : name(_alloc) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "app_manager/StopAppRequest"; } 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 "c1f3d28f1b044c871e6eff2e9fc3c667"; } 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 "57711838d4a1faddc5043a742845018b"; } 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 "\n\ 00065 string name\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, name); 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, name); 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(name); 00091 return size; 00092 } 00093 00094 typedef boost::shared_ptr< ::app_manager::StopAppRequest_<ContainerAllocator> > Ptr; 00095 typedef boost::shared_ptr< ::app_manager::StopAppRequest_<ContainerAllocator> const> ConstPtr; 00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00097 }; // struct StopAppRequest 00098 typedef ::app_manager::StopAppRequest_<std::allocator<void> > StopAppRequest; 00099 00100 typedef boost::shared_ptr< ::app_manager::StopAppRequest> StopAppRequestPtr; 00101 typedef boost::shared_ptr< ::app_manager::StopAppRequest const> StopAppRequestConstPtr; 00102 00103 00104 template <class ContainerAllocator> 00105 struct StopAppResponse_ { 00106 typedef StopAppResponse_<ContainerAllocator> Type; 00107 00108 StopAppResponse_() 00109 : stopped(false) 00110 , error_code(0) 00111 , message() 00112 { 00113 } 00114 00115 StopAppResponse_(const ContainerAllocator& _alloc) 00116 : stopped(false) 00117 , error_code(0) 00118 , message(_alloc) 00119 { 00120 } 00121 00122 typedef uint8_t _stopped_type; 00123 uint8_t stopped; 00124 00125 typedef int32_t _error_code_type; 00126 int32_t error_code; 00127 00128 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _message_type; 00129 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > message; 00130 00131 00132 private: 00133 static const char* __s_getDataType_() { return "app_manager/StopAppResponse"; } 00134 public: 00135 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00136 00137 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00138 00139 private: 00140 static const char* __s_getMD5Sum_() { return "1f94f0ff0fc0fde186f728634f98a3cb"; } 00141 public: 00142 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00143 00144 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00145 00146 private: 00147 static const char* __s_getServerMD5Sum_() { return "57711838d4a1faddc5043a742845018b"; } 00148 public: 00149 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00150 00151 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00152 00153 private: 00154 static const char* __s_getMessageDefinition_() { return "\n\ 00155 bool stopped\n\ 00156 \n\ 00157 \n\ 00158 int32 error_code\n\ 00159 string message\n\ 00160 \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, stopped); 00172 ros::serialization::serialize(stream, error_code); 00173 ros::serialization::serialize(stream, message); 00174 return stream.getData(); 00175 } 00176 00177 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00178 { 00179 ros::serialization::IStream stream(read_ptr, 1000000000); 00180 ros::serialization::deserialize(stream, stopped); 00181 ros::serialization::deserialize(stream, error_code); 00182 ros::serialization::deserialize(stream, message); 00183 return stream.getData(); 00184 } 00185 00186 ROS_DEPRECATED virtual uint32_t serializationLength() const 00187 { 00188 uint32_t size = 0; 00189 size += ros::serialization::serializationLength(stopped); 00190 size += ros::serialization::serializationLength(error_code); 00191 size += ros::serialization::serializationLength(message); 00192 return size; 00193 } 00194 00195 typedef boost::shared_ptr< ::app_manager::StopAppResponse_<ContainerAllocator> > Ptr; 00196 typedef boost::shared_ptr< ::app_manager::StopAppResponse_<ContainerAllocator> const> ConstPtr; 00197 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00198 }; // struct StopAppResponse 00199 typedef ::app_manager::StopAppResponse_<std::allocator<void> > StopAppResponse; 00200 00201 typedef boost::shared_ptr< ::app_manager::StopAppResponse> StopAppResponsePtr; 00202 typedef boost::shared_ptr< ::app_manager::StopAppResponse const> StopAppResponseConstPtr; 00203 00204 struct StopApp 00205 { 00206 00207 typedef StopAppRequest Request; 00208 typedef StopAppResponse Response; 00209 Request request; 00210 Response response; 00211 00212 typedef Request RequestType; 00213 typedef Response ResponseType; 00214 }; // struct StopApp 00215 } // namespace app_manager 00216 00217 namespace ros 00218 { 00219 namespace message_traits 00220 { 00221 template<class ContainerAllocator> struct IsMessage< ::app_manager::StopAppRequest_<ContainerAllocator> > : public TrueType {}; 00222 template<class ContainerAllocator> struct IsMessage< ::app_manager::StopAppRequest_<ContainerAllocator> const> : public TrueType {}; 00223 template<class ContainerAllocator> 00224 struct MD5Sum< ::app_manager::StopAppRequest_<ContainerAllocator> > { 00225 static const char* value() 00226 { 00227 return "c1f3d28f1b044c871e6eff2e9fc3c667"; 00228 } 00229 00230 static const char* value(const ::app_manager::StopAppRequest_<ContainerAllocator> &) { return value(); } 00231 static const uint64_t static_value1 = 0xc1f3d28f1b044c87ULL; 00232 static const uint64_t static_value2 = 0x1e6eff2e9fc3c667ULL; 00233 }; 00234 00235 template<class ContainerAllocator> 00236 struct DataType< ::app_manager::StopAppRequest_<ContainerAllocator> > { 00237 static const char* value() 00238 { 00239 return "app_manager/StopAppRequest"; 00240 } 00241 00242 static const char* value(const ::app_manager::StopAppRequest_<ContainerAllocator> &) { return value(); } 00243 }; 00244 00245 template<class ContainerAllocator> 00246 struct Definition< ::app_manager::StopAppRequest_<ContainerAllocator> > { 00247 static const char* value() 00248 { 00249 return "\n\ 00250 string name\n\ 00251 \n\ 00252 "; 00253 } 00254 00255 static const char* value(const ::app_manager::StopAppRequest_<ContainerAllocator> &) { return value(); } 00256 }; 00257 00258 } // namespace message_traits 00259 } // namespace ros 00260 00261 00262 namespace ros 00263 { 00264 namespace message_traits 00265 { 00266 template<class ContainerAllocator> struct IsMessage< ::app_manager::StopAppResponse_<ContainerAllocator> > : public TrueType {}; 00267 template<class ContainerAllocator> struct IsMessage< ::app_manager::StopAppResponse_<ContainerAllocator> const> : public TrueType {}; 00268 template<class ContainerAllocator> 00269 struct MD5Sum< ::app_manager::StopAppResponse_<ContainerAllocator> > { 00270 static const char* value() 00271 { 00272 return "1f94f0ff0fc0fde186f728634f98a3cb"; 00273 } 00274 00275 static const char* value(const ::app_manager::StopAppResponse_<ContainerAllocator> &) { return value(); } 00276 static const uint64_t static_value1 = 0x1f94f0ff0fc0fde1ULL; 00277 static const uint64_t static_value2 = 0x86f728634f98a3cbULL; 00278 }; 00279 00280 template<class ContainerAllocator> 00281 struct DataType< ::app_manager::StopAppResponse_<ContainerAllocator> > { 00282 static const char* value() 00283 { 00284 return "app_manager/StopAppResponse"; 00285 } 00286 00287 static const char* value(const ::app_manager::StopAppResponse_<ContainerAllocator> &) { return value(); } 00288 }; 00289 00290 template<class ContainerAllocator> 00291 struct Definition< ::app_manager::StopAppResponse_<ContainerAllocator> > { 00292 static const char* value() 00293 { 00294 return "\n\ 00295 bool stopped\n\ 00296 \n\ 00297 \n\ 00298 int32 error_code\n\ 00299 string message\n\ 00300 \n\ 00301 \n\ 00302 "; 00303 } 00304 00305 static const char* value(const ::app_manager::StopAppResponse_<ContainerAllocator> &) { return value(); } 00306 }; 00307 00308 } // namespace message_traits 00309 } // namespace ros 00310 00311 namespace ros 00312 { 00313 namespace serialization 00314 { 00315 00316 template<class ContainerAllocator> struct Serializer< ::app_manager::StopAppRequest_<ContainerAllocator> > 00317 { 00318 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00319 { 00320 stream.next(m.name); 00321 } 00322 00323 ROS_DECLARE_ALLINONE_SERIALIZER; 00324 }; // struct StopAppRequest_ 00325 } // namespace serialization 00326 } // namespace ros 00327 00328 00329 namespace ros 00330 { 00331 namespace serialization 00332 { 00333 00334 template<class ContainerAllocator> struct Serializer< ::app_manager::StopAppResponse_<ContainerAllocator> > 00335 { 00336 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00337 { 00338 stream.next(m.stopped); 00339 stream.next(m.error_code); 00340 stream.next(m.message); 00341 } 00342 00343 ROS_DECLARE_ALLINONE_SERIALIZER; 00344 }; // struct StopAppResponse_ 00345 } // namespace serialization 00346 } // namespace ros 00347 00348 namespace ros 00349 { 00350 namespace service_traits 00351 { 00352 template<> 00353 struct MD5Sum<app_manager::StopApp> { 00354 static const char* value() 00355 { 00356 return "57711838d4a1faddc5043a742845018b"; 00357 } 00358 00359 static const char* value(const app_manager::StopApp&) { return value(); } 00360 }; 00361 00362 template<> 00363 struct DataType<app_manager::StopApp> { 00364 static const char* value() 00365 { 00366 return "app_manager/StopApp"; 00367 } 00368 00369 static const char* value(const app_manager::StopApp&) { return value(); } 00370 }; 00371 00372 template<class ContainerAllocator> 00373 struct MD5Sum<app_manager::StopAppRequest_<ContainerAllocator> > { 00374 static const char* value() 00375 { 00376 return "57711838d4a1faddc5043a742845018b"; 00377 } 00378 00379 static const char* value(const app_manager::StopAppRequest_<ContainerAllocator> &) { return value(); } 00380 }; 00381 00382 template<class ContainerAllocator> 00383 struct DataType<app_manager::StopAppRequest_<ContainerAllocator> > { 00384 static const char* value() 00385 { 00386 return "app_manager/StopApp"; 00387 } 00388 00389 static const char* value(const app_manager::StopAppRequest_<ContainerAllocator> &) { return value(); } 00390 }; 00391 00392 template<class ContainerAllocator> 00393 struct MD5Sum<app_manager::StopAppResponse_<ContainerAllocator> > { 00394 static const char* value() 00395 { 00396 return "57711838d4a1faddc5043a742845018b"; 00397 } 00398 00399 static const char* value(const app_manager::StopAppResponse_<ContainerAllocator> &) { return value(); } 00400 }; 00401 00402 template<class ContainerAllocator> 00403 struct DataType<app_manager::StopAppResponse_<ContainerAllocator> > { 00404 static const char* value() 00405 { 00406 return "app_manager/StopApp"; 00407 } 00408 00409 static const char* value(const app_manager::StopAppResponse_<ContainerAllocator> &) { return value(); } 00410 }; 00411 00412 } // namespace service_traits 00413 } // namespace ros 00414 00415 #endif // APP_MANAGER_SERVICE_STOPAPP_H 00416