$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/AppList.msg */ 00002 #ifndef APP_MANAGER_MESSAGE_APPLIST_H 00003 #define APP_MANAGER_MESSAGE_APPLIST_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/App.h" 00018 #include "app_manager/App.h" 00019 00020 namespace app_manager 00021 { 00022 template <class ContainerAllocator> 00023 struct AppList_ { 00024 typedef AppList_<ContainerAllocator> Type; 00025 00026 AppList_() 00027 : running_apps() 00028 , available_apps() 00029 { 00030 } 00031 00032 AppList_(const ContainerAllocator& _alloc) 00033 : running_apps(_alloc) 00034 , available_apps(_alloc) 00035 { 00036 } 00037 00038 typedef std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > _running_apps_type; 00039 std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > running_apps; 00040 00041 typedef std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > _available_apps_type; 00042 std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > available_apps; 00043 00044 00045 ROS_DEPRECATED uint32_t get_running_apps_size() const { return (uint32_t)running_apps.size(); } 00046 ROS_DEPRECATED void set_running_apps_size(uint32_t size) { running_apps.resize((size_t)size); } 00047 ROS_DEPRECATED void get_running_apps_vec(std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) const { vec = this->running_apps; } 00048 ROS_DEPRECATED void set_running_apps_vec(const std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) { this->running_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::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) const { vec = this->available_apps; } 00052 ROS_DEPRECATED void set_available_apps_vec(const std::vector< ::app_manager::App_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::App_<ContainerAllocator> >::other > & vec) { this->available_apps = vec; } 00053 private: 00054 static const char* __s_getDataType_() { return "app_manager/AppList"; } 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 "8a71ede6bf51909653c7c551f462cb30"; } 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 "App[] running_apps\n\ 00069 App[] available_apps\n\ 00070 \n\ 00071 ================================================================================\n\ 00072 MSG: app_manager/App\n\ 00073 # app name\n\ 00074 string name\n\ 00075 # user-friendly display name of application\n\ 00076 string display_name\n\ 00077 # icon for showing app\n\ 00078 Icon icon\n\ 00079 # ordered list (by preference) of client applications to interact with this robot app. \n\ 00080 ClientApp[] client_apps\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: app_manager/Icon\n\ 00084 # Image data format. \"jpeg\" or \"png\"\n\ 00085 string format\n\ 00086 \n\ 00087 # Image data.\n\ 00088 uint8[] data\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: app_manager/ClientApp\n\ 00092 # like \"android\" or \"web\" or \"linux\"\n\ 00093 string client_type\n\ 00094 \n\ 00095 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\ 00096 KeyValue[] manager_data\n\ 00097 \n\ 00098 # parameters which just get passed through to the client app.\n\ 00099 KeyValue[] app_data\n\ 00100 \n\ 00101 ================================================================================\n\ 00102 MSG: app_manager/KeyValue\n\ 00103 string key\n\ 00104 string value\n\ 00105 \n\ 00106 "; } 00107 public: 00108 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00113 { 00114 ros::serialization::OStream stream(write_ptr, 1000000000); 00115 ros::serialization::serialize(stream, running_apps); 00116 ros::serialization::serialize(stream, available_apps); 00117 return stream.getData(); 00118 } 00119 00120 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00121 { 00122 ros::serialization::IStream stream(read_ptr, 1000000000); 00123 ros::serialization::deserialize(stream, running_apps); 00124 ros::serialization::deserialize(stream, available_apps); 00125 return stream.getData(); 00126 } 00127 00128 ROS_DEPRECATED virtual uint32_t serializationLength() const 00129 { 00130 uint32_t size = 0; 00131 size += ros::serialization::serializationLength(running_apps); 00132 size += ros::serialization::serializationLength(available_apps); 00133 return size; 00134 } 00135 00136 typedef boost::shared_ptr< ::app_manager::AppList_<ContainerAllocator> > Ptr; 00137 typedef boost::shared_ptr< ::app_manager::AppList_<ContainerAllocator> const> ConstPtr; 00138 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00139 }; // struct AppList 00140 typedef ::app_manager::AppList_<std::allocator<void> > AppList; 00141 00142 typedef boost::shared_ptr< ::app_manager::AppList> AppListPtr; 00143 typedef boost::shared_ptr< ::app_manager::AppList const> AppListConstPtr; 00144 00145 00146 template<typename ContainerAllocator> 00147 std::ostream& operator<<(std::ostream& s, const ::app_manager::AppList_<ContainerAllocator> & v) 00148 { 00149 ros::message_operations::Printer< ::app_manager::AppList_<ContainerAllocator> >::stream(s, "", v); 00150 return s;} 00151 00152 } // namespace app_manager 00153 00154 namespace ros 00155 { 00156 namespace message_traits 00157 { 00158 template<class ContainerAllocator> struct IsMessage< ::app_manager::AppList_<ContainerAllocator> > : public TrueType {}; 00159 template<class ContainerAllocator> struct IsMessage< ::app_manager::AppList_<ContainerAllocator> const> : public TrueType {}; 00160 template<class ContainerAllocator> 00161 struct MD5Sum< ::app_manager::AppList_<ContainerAllocator> > { 00162 static const char* value() 00163 { 00164 return "8a71ede6bf51909653c7c551f462cb30"; 00165 } 00166 00167 static const char* value(const ::app_manager::AppList_<ContainerAllocator> &) { return value(); } 00168 static const uint64_t static_value1 = 0x8a71ede6bf519096ULL; 00169 static const uint64_t static_value2 = 0x53c7c551f462cb30ULL; 00170 }; 00171 00172 template<class ContainerAllocator> 00173 struct DataType< ::app_manager::AppList_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "app_manager/AppList"; 00177 } 00178 00179 static const char* value(const ::app_manager::AppList_<ContainerAllocator> &) { return value(); } 00180 }; 00181 00182 template<class ContainerAllocator> 00183 struct Definition< ::app_manager::AppList_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "App[] running_apps\n\ 00187 App[] available_apps\n\ 00188 \n\ 00189 ================================================================================\n\ 00190 MSG: app_manager/App\n\ 00191 # app name\n\ 00192 string name\n\ 00193 # user-friendly display name of application\n\ 00194 string display_name\n\ 00195 # icon for showing app\n\ 00196 Icon icon\n\ 00197 # ordered list (by preference) of client applications to interact with this robot app. \n\ 00198 ClientApp[] client_apps\n\ 00199 \n\ 00200 ================================================================================\n\ 00201 MSG: app_manager/Icon\n\ 00202 # Image data format. \"jpeg\" or \"png\"\n\ 00203 string format\n\ 00204 \n\ 00205 # Image data.\n\ 00206 uint8[] data\n\ 00207 \n\ 00208 ================================================================================\n\ 00209 MSG: app_manager/ClientApp\n\ 00210 # like \"android\" or \"web\" or \"linux\"\n\ 00211 string client_type\n\ 00212 \n\ 00213 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\ 00214 KeyValue[] manager_data\n\ 00215 \n\ 00216 # parameters which just get passed through to the client app.\n\ 00217 KeyValue[] app_data\n\ 00218 \n\ 00219 ================================================================================\n\ 00220 MSG: app_manager/KeyValue\n\ 00221 string key\n\ 00222 string value\n\ 00223 \n\ 00224 "; 00225 } 00226 00227 static const char* value(const ::app_manager::AppList_<ContainerAllocator> &) { return value(); } 00228 }; 00229 00230 } // namespace message_traits 00231 } // namespace ros 00232 00233 namespace ros 00234 { 00235 namespace serialization 00236 { 00237 00238 template<class ContainerAllocator> struct Serializer< ::app_manager::AppList_<ContainerAllocator> > 00239 { 00240 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00241 { 00242 stream.next(m.running_apps); 00243 stream.next(m.available_apps); 00244 } 00245 00246 ROS_DECLARE_ALLINONE_SERIALIZER; 00247 }; // struct AppList_ 00248 } // namespace serialization 00249 } // namespace ros 00250 00251 namespace ros 00252 { 00253 namespace message_operations 00254 { 00255 00256 template<class ContainerAllocator> 00257 struct Printer< ::app_manager::AppList_<ContainerAllocator> > 00258 { 00259 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::app_manager::AppList_<ContainerAllocator> & v) 00260 { 00261 s << indent << "running_apps[]" << std::endl; 00262 for (size_t i = 0; i < v.running_apps.size(); ++i) 00263 { 00264 s << indent << " running_apps[" << i << "]: "; 00265 s << std::endl; 00266 s << indent; 00267 Printer< ::app_manager::App_<ContainerAllocator> >::stream(s, indent + " ", v.running_apps[i]); 00268 } 00269 s << indent << "available_apps[]" << std::endl; 00270 for (size_t i = 0; i < v.available_apps.size(); ++i) 00271 { 00272 s << indent << " available_apps[" << i << "]: "; 00273 s << std::endl; 00274 s << indent; 00275 Printer< ::app_manager::App_<ContainerAllocator> >::stream(s, indent + " ", v.available_apps[i]); 00276 } 00277 } 00278 }; 00279 00280 00281 } // namespace message_operations 00282 } // namespace ros 00283 00284 #endif // APP_MANAGER_MESSAGE_APPLIST_H 00285