$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/msg/AppInstallationState.msg */ 00002 #ifndef APP_MANAGER_MESSAGE_APPINSTALLATIONSTATE_H 00003 #define APP_MANAGER_MESSAGE_APPINSTALLATIONSTATE_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 "app_manager/ExchangeApp.h" 00018 #include "app_manager/ExchangeApp.h" 00019 00020 namespace app_manager 00021 { 00022 template <class ContainerAllocator> 00023 struct AppInstallationState_ { 00024 typedef AppInstallationState_<ContainerAllocator> Type; 00025 00026 AppInstallationState_() 00027 : installed_apps() 00028 , available_apps() 00029 { 00030 } 00031 00032 AppInstallationState_(const ContainerAllocator& _alloc) 00033 : installed_apps(_alloc) 00034 , available_apps(_alloc) 00035 { 00036 } 00037 00038 typedef std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > _installed_apps_type; 00039 std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > installed_apps; 00040 00041 typedef std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > _available_apps_type; 00042 std::vector< ::app_manager::ExchangeApp_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::ExchangeApp_<ContainerAllocator> >::other > available_apps; 00043 00044 00045 ROS_DEPRECATED uint32_t get_installed_apps_size() const { return (uint32_t)installed_apps.size(); } 00046 ROS_DEPRECATED void set_installed_apps_size(uint32_t size) { installed_apps.resize((size_t)size); } 00047 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; } 00048 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; } 00049 ROS_DEPRECATED uint32_t get_available_apps_size() const { return (uint32_t)available_apps.size(); } 00050 ROS_DEPRECATED void set_available_apps_size(uint32_t size) { available_apps.resize((size_t)size); } 00051 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; } 00052 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; } 00053 private: 00054 static const char* __s_getDataType_() { return "app_manager/AppInstallationState"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "46d45bbda08250199267aff8c0ee8c41"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "ExchangeApp[] installed_apps\n\ 00069 ExchangeApp[] available_apps\n\ 00070 \n\ 00071 ================================================================================\n\ 00072 MSG: app_manager/ExchangeApp\n\ 00073 # app name\n\ 00074 string name\n\ 00075 # user-friendly display name of application\n\ 00076 string display_name\n\ 00077 # the version of the package currently installed\n\ 00078 string version\n\ 00079 # latest version of the package avaliable\n\ 00080 string latest_version\n\ 00081 # the detailed description of the app\n\ 00082 string description\n\ 00083 # icon for showing app\n\ 00084 Icon icon\n\ 00085 # hidden apps are not show - used for cases where multiple apps are in a deb\n\ 00086 bool hidden\n\ 00087 ================================================================================\n\ 00088 MSG: app_manager/Icon\n\ 00089 # Image data format. \"jpeg\" or \"png\"\n\ 00090 string format\n\ 00091 \n\ 00092 # Image data.\n\ 00093 uint8[] data\n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, installed_apps); 00105 ros::serialization::serialize(stream, available_apps); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, installed_apps); 00113 ros::serialization::deserialize(stream, available_apps); 00114 return stream.getData(); 00115 } 00116 00117 ROS_DEPRECATED virtual uint32_t serializationLength() const 00118 { 00119 uint32_t size = 0; 00120 size += ros::serialization::serializationLength(installed_apps); 00121 size += ros::serialization::serializationLength(available_apps); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::app_manager::AppInstallationState_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::app_manager::AppInstallationState_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct AppInstallationState 00129 typedef ::app_manager::AppInstallationState_<std::allocator<void> > AppInstallationState; 00130 00131 typedef boost::shared_ptr< ::app_manager::AppInstallationState> AppInstallationStatePtr; 00132 typedef boost::shared_ptr< ::app_manager::AppInstallationState const> AppInstallationStateConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::app_manager::AppInstallationState_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::app_manager::AppInstallationState_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace app_manager 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::app_manager::AppInstallationState_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::app_manager::AppInstallationState_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::app_manager::AppInstallationState_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "46d45bbda08250199267aff8c0ee8c41"; 00154 } 00155 00156 static const char* value(const ::app_manager::AppInstallationState_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x46d45bbda0825019ULL; 00158 static const uint64_t static_value2 = 0x9267aff8c0ee8c41ULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::app_manager::AppInstallationState_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "app_manager/AppInstallationState"; 00166 } 00167 00168 static const char* value(const ::app_manager::AppInstallationState_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::app_manager::AppInstallationState_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "ExchangeApp[] installed_apps\n\ 00176 ExchangeApp[] available_apps\n\ 00177 \n\ 00178 ================================================================================\n\ 00179 MSG: app_manager/ExchangeApp\n\ 00180 # app name\n\ 00181 string name\n\ 00182 # user-friendly display name of application\n\ 00183 string display_name\n\ 00184 # the version of the package currently installed\n\ 00185 string version\n\ 00186 # latest version of the package avaliable\n\ 00187 string latest_version\n\ 00188 # the detailed description of the app\n\ 00189 string description\n\ 00190 # icon for showing app\n\ 00191 Icon icon\n\ 00192 # hidden apps are not show - used for cases where multiple apps are in a deb\n\ 00193 bool hidden\n\ 00194 ================================================================================\n\ 00195 MSG: app_manager/Icon\n\ 00196 # Image data format. \"jpeg\" or \"png\"\n\ 00197 string format\n\ 00198 \n\ 00199 # Image data.\n\ 00200 uint8[] data\n\ 00201 \n\ 00202 "; 00203 } 00204 00205 static const char* value(const ::app_manager::AppInstallationState_<ContainerAllocator> &) { return value(); } 00206 }; 00207 00208 } // namespace message_traits 00209 } // namespace ros 00210 00211 namespace ros 00212 { 00213 namespace serialization 00214 { 00215 00216 template<class ContainerAllocator> struct Serializer< ::app_manager::AppInstallationState_<ContainerAllocator> > 00217 { 00218 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00219 { 00220 stream.next(m.installed_apps); 00221 stream.next(m.available_apps); 00222 } 00223 00224 ROS_DECLARE_ALLINONE_SERIALIZER; 00225 }; // struct AppInstallationState_ 00226 } // namespace serialization 00227 } // namespace ros 00228 00229 namespace ros 00230 { 00231 namespace message_operations 00232 { 00233 00234 template<class ContainerAllocator> 00235 struct Printer< ::app_manager::AppInstallationState_<ContainerAllocator> > 00236 { 00237 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::app_manager::AppInstallationState_<ContainerAllocator> & v) 00238 { 00239 s << indent << "installed_apps[]" << std::endl; 00240 for (size_t i = 0; i < v.installed_apps.size(); ++i) 00241 { 00242 s << indent << " installed_apps[" << i << "]: "; 00243 s << std::endl; 00244 s << indent; 00245 Printer< ::app_manager::ExchangeApp_<ContainerAllocator> >::stream(s, indent + " ", v.installed_apps[i]); 00246 } 00247 s << indent << "available_apps[]" << std::endl; 00248 for (size_t i = 0; i < v.available_apps.size(); ++i) 00249 { 00250 s << indent << " available_apps[" << i << "]: "; 00251 s << std::endl; 00252 s << indent; 00253 Printer< ::app_manager::ExchangeApp_<ContainerAllocator> >::stream(s, indent + " ", v.available_apps[i]); 00254 } 00255 } 00256 }; 00257 00258 00259 } // namespace message_operations 00260 } // namespace ros 00261 00262 #endif // APP_MANAGER_MESSAGE_APPINSTALLATIONSTATE_H 00263