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