$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/GetInstallationState.srv */ 00002 #ifndef APP_MANAGER_SERVICE_GETINSTALLATIONSTATE_H 00003 #define APP_MANAGER_SERVICE_GETINSTALLATIONSTATE_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 #include "app_manager/ExchangeApp.h" 00022 #include "app_manager/ExchangeApp.h" 00023 00024 namespace app_manager 00025 { 00026 template <class ContainerAllocator> 00027 struct GetInstallationStateRequest_ { 00028 typedef GetInstallationStateRequest_<ContainerAllocator> Type; 00029 00030 GetInstallationStateRequest_() 00031 : remote_update(false) 00032 { 00033 } 00034 00035 GetInstallationStateRequest_(const ContainerAllocator& _alloc) 00036 : remote_update(false) 00037 { 00038 } 00039 00040 typedef uint8_t _remote_update_type; 00041 uint8_t remote_update; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "app_manager/GetInstallationStateRequest"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "f7e64723808960ca985ba81f45f1b8a7"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getServerMD5Sum_() { return "28f0a7294f6241e2423a9382e3c76987"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00062 00063 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00064 00065 private: 00066 static const char* __s_getMessageDefinition_() { return "bool remote_update\n\ 00067 \n\ 00068 "; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00075 { 00076 ros::serialization::OStream stream(write_ptr, 1000000000); 00077 ros::serialization::serialize(stream, remote_update); 00078 return stream.getData(); 00079 } 00080 00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00082 { 00083 ros::serialization::IStream stream(read_ptr, 1000000000); 00084 ros::serialization::deserialize(stream, remote_update); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint32_t serializationLength() const 00089 { 00090 uint32_t size = 0; 00091 size += ros::serialization::serializationLength(remote_update); 00092 return size; 00093 } 00094 00095 typedef boost::shared_ptr< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> > Ptr; 00096 typedef boost::shared_ptr< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> const> ConstPtr; 00097 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00098 }; // struct GetInstallationStateRequest 00099 typedef ::app_manager::GetInstallationStateRequest_<std::allocator<void> > GetInstallationStateRequest; 00100 00101 typedef boost::shared_ptr< ::app_manager::GetInstallationStateRequest> GetInstallationStateRequestPtr; 00102 typedef boost::shared_ptr< ::app_manager::GetInstallationStateRequest const> GetInstallationStateRequestConstPtr; 00103 00104 00105 template <class ContainerAllocator> 00106 struct GetInstallationStateResponse_ { 00107 typedef GetInstallationStateResponse_<ContainerAllocator> Type; 00108 00109 GetInstallationStateResponse_() 00110 : installed_apps() 00111 , available_apps() 00112 { 00113 } 00114 00115 GetInstallationStateResponse_(const ContainerAllocator& _alloc) 00116 : installed_apps(_alloc) 00117 , available_apps(_alloc) 00118 { 00119 } 00120 00121 typedef std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > _installed_apps_type; 00122 std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > installed_apps; 00123 00124 typedef std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > _available_apps_type; 00125 std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > available_apps; 00126 00127 00128 ROS_DEPRECATED uint32_t get_installed_apps_size() const { return (uint32_t)installed_apps.size(); } 00129 ROS_DEPRECATED void set_installed_apps_size(uint32_t size) { installed_apps.resize((size_t)size); } 00130 ROS_DEPRECATED void get_installed_apps_vec(std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > & vec) const { vec = this->installed_apps; } 00131 ROS_DEPRECATED void set_installed_apps_vec(const std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > & vec) { this->installed_apps = vec; } 00132 ROS_DEPRECATED uint32_t get_available_apps_size() const { return (uint32_t)available_apps.size(); } 00133 ROS_DEPRECATED void set_available_apps_size(uint32_t size) { available_apps.resize((size_t)size); } 00134 ROS_DEPRECATED void get_available_apps_vec(std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > & vec) const { vec = this->available_apps; } 00135 ROS_DEPRECATED void set_available_apps_vec(const std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > & vec) { this->available_apps = vec; } 00136 private: 00137 static const char* __s_getDataType_() { return "app_manager/GetInstallationStateResponse"; } 00138 public: 00139 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00140 00141 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00142 00143 private: 00144 static const char* __s_getMD5Sum_() { return "46d45bbda08250199267aff8c0ee8c41"; } 00145 public: 00146 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00147 00148 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00149 00150 private: 00151 static const char* __s_getServerMD5Sum_() { return "28f0a7294f6241e2423a9382e3c76987"; } 00152 public: 00153 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00154 00155 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00156 00157 private: 00158 static const char* __s_getMessageDefinition_() { return "ExchangeApp[] installed_apps\n\ 00159 ExchangeApp[] available_apps\n\ 00160 \n\ 00161 ================================================================================\n\ 00162 MSG: app_manager/ExchangeApp\n\ 00163 # app name\n\ 00164 string name\n\ 00165 # user-friendly display name of application\n\ 00166 string display_name\n\ 00167 # the version of the package currently installed\n\ 00168 string version\n\ 00169 # latest version of the package avaliable\n\ 00170 string latest_version\n\ 00171 # the detailed description of the app\n\ 00172 string description\n\ 00173 # icon for showing app\n\ 00174 Icon icon\n\ 00175 # hidden apps are not show - used for cases where multiple apps are in a deb\n\ 00176 bool hidden\n\ 00177 ================================================================================\n\ 00178 MSG: app_manager/Icon\n\ 00179 # Image data format. \"jpeg\" or \"png\"\n\ 00180 string format\n\ 00181 \n\ 00182 # Image data.\n\ 00183 uint8[] data\n\ 00184 \n\ 00185 "; } 00186 public: 00187 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00188 00189 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00190 00191 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00192 { 00193 ros::serialization::OStream stream(write_ptr, 1000000000); 00194 ros::serialization::serialize(stream, installed_apps); 00195 ros::serialization::serialize(stream, available_apps); 00196 return stream.getData(); 00197 } 00198 00199 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00200 { 00201 ros::serialization::IStream stream(read_ptr, 1000000000); 00202 ros::serialization::deserialize(stream, installed_apps); 00203 ros::serialization::deserialize(stream, available_apps); 00204 return stream.getData(); 00205 } 00206 00207 ROS_DEPRECATED virtual uint32_t serializationLength() const 00208 { 00209 uint32_t size = 0; 00210 size += ros::serialization::serializationLength(installed_apps); 00211 size += ros::serialization::serializationLength(available_apps); 00212 return size; 00213 } 00214 00215 typedef boost::shared_ptr< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> > Ptr; 00216 typedef boost::shared_ptr< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> const> ConstPtr; 00217 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00218 }; // struct GetInstallationStateResponse 00219 typedef ::app_manager::GetInstallationStateResponse_<std::allocator<void> > GetInstallationStateResponse; 00220 00221 typedef boost::shared_ptr< ::app_manager::GetInstallationStateResponse> GetInstallationStateResponsePtr; 00222 typedef boost::shared_ptr< ::app_manager::GetInstallationStateResponse const> GetInstallationStateResponseConstPtr; 00223 00224 struct GetInstallationState 00225 { 00226 00227 typedef GetInstallationStateRequest Request; 00228 typedef GetInstallationStateResponse Response; 00229 Request request; 00230 Response response; 00231 00232 typedef Request RequestType; 00233 typedef Response ResponseType; 00234 }; // struct GetInstallationState 00235 } // namespace app_manager 00236 00237 namespace ros 00238 { 00239 namespace message_traits 00240 { 00241 template<class ContainerAllocator> struct IsMessage< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> > : public TrueType {}; 00242 template<class ContainerAllocator> struct IsMessage< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> const> : public TrueType {}; 00243 template<class ContainerAllocator> 00244 struct MD5Sum< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> > { 00245 static const char* value() 00246 { 00247 return "f7e64723808960ca985ba81f45f1b8a7"; 00248 } 00249 00250 static const char* value(const ::app_manager::GetInstallationStateRequest_<ContainerAllocator> &) { return value(); } 00251 static const uint64_t static_value1 = 0xf7e64723808960caULL; 00252 static const uint64_t static_value2 = 0x985ba81f45f1b8a7ULL; 00253 }; 00254 00255 template<class ContainerAllocator> 00256 struct DataType< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> > { 00257 static const char* value() 00258 { 00259 return "app_manager/GetInstallationStateRequest"; 00260 } 00261 00262 static const char* value(const ::app_manager::GetInstallationStateRequest_<ContainerAllocator> &) { return value(); } 00263 }; 00264 00265 template<class ContainerAllocator> 00266 struct Definition< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> > { 00267 static const char* value() 00268 { 00269 return "bool remote_update\n\ 00270 \n\ 00271 "; 00272 } 00273 00274 static const char* value(const ::app_manager::GetInstallationStateRequest_<ContainerAllocator> &) { return value(); } 00275 }; 00276 00277 template<class ContainerAllocator> struct IsFixedSize< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> > : public TrueType {}; 00278 } // namespace message_traits 00279 } // namespace ros 00280 00281 00282 namespace ros 00283 { 00284 namespace message_traits 00285 { 00286 template<class ContainerAllocator> struct IsMessage< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> > : public TrueType {}; 00287 template<class ContainerAllocator> struct IsMessage< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> const> : public TrueType {}; 00288 template<class ContainerAllocator> 00289 struct MD5Sum< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> > { 00290 static const char* value() 00291 { 00292 return "46d45bbda08250199267aff8c0ee8c41"; 00293 } 00294 00295 static const char* value(const ::app_manager::GetInstallationStateResponse_<ContainerAllocator> &) { return value(); } 00296 static const uint64_t static_value1 = 0x46d45bbda0825019ULL; 00297 static const uint64_t static_value2 = 0x9267aff8c0ee8c41ULL; 00298 }; 00299 00300 template<class ContainerAllocator> 00301 struct DataType< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> > { 00302 static const char* value() 00303 { 00304 return "app_manager/GetInstallationStateResponse"; 00305 } 00306 00307 static const char* value(const ::app_manager::GetInstallationStateResponse_<ContainerAllocator> &) { return value(); } 00308 }; 00309 00310 template<class ContainerAllocator> 00311 struct Definition< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> > { 00312 static const char* value() 00313 { 00314 return "ExchangeApp[] installed_apps\n\ 00315 ExchangeApp[] available_apps\n\ 00316 \n\ 00317 ================================================================================\n\ 00318 MSG: app_manager/ExchangeApp\n\ 00319 # app name\n\ 00320 string name\n\ 00321 # user-friendly display name of application\n\ 00322 string display_name\n\ 00323 # the version of the package currently installed\n\ 00324 string version\n\ 00325 # latest version of the package avaliable\n\ 00326 string latest_version\n\ 00327 # the detailed description of the app\n\ 00328 string description\n\ 00329 # icon for showing app\n\ 00330 Icon icon\n\ 00331 # hidden apps are not show - used for cases where multiple apps are in a deb\n\ 00332 bool hidden\n\ 00333 ================================================================================\n\ 00334 MSG: app_manager/Icon\n\ 00335 # Image data format. \"jpeg\" or \"png\"\n\ 00336 string format\n\ 00337 \n\ 00338 # Image data.\n\ 00339 uint8[] data\n\ 00340 \n\ 00341 "; 00342 } 00343 00344 static const char* value(const ::app_manager::GetInstallationStateResponse_<ContainerAllocator> &) { return value(); } 00345 }; 00346 00347 } // namespace message_traits 00348 } // namespace ros 00349 00350 namespace ros 00351 { 00352 namespace serialization 00353 { 00354 00355 template<class ContainerAllocator> struct Serializer< ::app_manager::GetInstallationStateRequest_<ContainerAllocator> > 00356 { 00357 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00358 { 00359 stream.next(m.remote_update); 00360 } 00361 00362 ROS_DECLARE_ALLINONE_SERIALIZER; 00363 }; // struct GetInstallationStateRequest_ 00364 } // namespace serialization 00365 } // namespace ros 00366 00367 00368 namespace ros 00369 { 00370 namespace serialization 00371 { 00372 00373 template<class ContainerAllocator> struct Serializer< ::app_manager::GetInstallationStateResponse_<ContainerAllocator> > 00374 { 00375 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00376 { 00377 stream.next(m.installed_apps); 00378 stream.next(m.available_apps); 00379 } 00380 00381 ROS_DECLARE_ALLINONE_SERIALIZER; 00382 }; // struct GetInstallationStateResponse_ 00383 } // namespace serialization 00384 } // namespace ros 00385 00386 namespace ros 00387 { 00388 namespace service_traits 00389 { 00390 template<> 00391 struct MD5Sum<app_manager::GetInstallationState> { 00392 static const char* value() 00393 { 00394 return "28f0a7294f6241e2423a9382e3c76987"; 00395 } 00396 00397 static const char* value(const app_manager::GetInstallationState&) { return value(); } 00398 }; 00399 00400 template<> 00401 struct DataType<app_manager::GetInstallationState> { 00402 static const char* value() 00403 { 00404 return "app_manager/GetInstallationState"; 00405 } 00406 00407 static const char* value(const app_manager::GetInstallationState&) { return value(); } 00408 }; 00409 00410 template<class ContainerAllocator> 00411 struct MD5Sum<app_manager::GetInstallationStateRequest_<ContainerAllocator> > { 00412 static const char* value() 00413 { 00414 return "28f0a7294f6241e2423a9382e3c76987"; 00415 } 00416 00417 static const char* value(const app_manager::GetInstallationStateRequest_<ContainerAllocator> &) { return value(); } 00418 }; 00419 00420 template<class ContainerAllocator> 00421 struct DataType<app_manager::GetInstallationStateRequest_<ContainerAllocator> > { 00422 static const char* value() 00423 { 00424 return "app_manager/GetInstallationState"; 00425 } 00426 00427 static const char* value(const app_manager::GetInstallationStateRequest_<ContainerAllocator> &) { return value(); } 00428 }; 00429 00430 template<class ContainerAllocator> 00431 struct MD5Sum<app_manager::GetInstallationStateResponse_<ContainerAllocator> > { 00432 static const char* value() 00433 { 00434 return "28f0a7294f6241e2423a9382e3c76987"; 00435 } 00436 00437 static const char* value(const app_manager::GetInstallationStateResponse_<ContainerAllocator> &) { return value(); } 00438 }; 00439 00440 template<class ContainerAllocator> 00441 struct DataType<app_manager::GetInstallationStateResponse_<ContainerAllocator> > { 00442 static const char* value() 00443 { 00444 return "app_manager/GetInstallationState"; 00445 } 00446 00447 static const char* value(const app_manager::GetInstallationStateResponse_<ContainerAllocator> &) { return value(); } 00448 }; 00449 00450 } // namespace service_traits 00451 } // namespace ros 00452 00453 #endif // APP_MANAGER_SERVICE_GETINSTALLATIONSTATE_H 00454