$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/ClientApp.msg */ 00002 #ifndef APP_MANAGER_MESSAGE_CLIENTAPP_H 00003 #define APP_MANAGER_MESSAGE_CLIENTAPP_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/KeyValue.h" 00018 #include "app_manager/KeyValue.h" 00019 00020 namespace app_manager 00021 { 00022 template <class ContainerAllocator> 00023 struct ClientApp_ { 00024 typedef ClientApp_<ContainerAllocator> Type; 00025 00026 ClientApp_() 00027 : client_type() 00028 , manager_data() 00029 , app_data() 00030 { 00031 } 00032 00033 ClientApp_(const ContainerAllocator& _alloc) 00034 : client_type(_alloc) 00035 , manager_data(_alloc) 00036 , app_data(_alloc) 00037 { 00038 } 00039 00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _client_type_type; 00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > client_type; 00042 00043 typedef std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > _manager_data_type; 00044 std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > manager_data; 00045 00046 typedef std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > _app_data_type; 00047 std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > app_data; 00048 00049 00050 ROS_DEPRECATED uint32_t get_manager_data_size() const { return (uint32_t)manager_data.size(); } 00051 ROS_DEPRECATED void set_manager_data_size(uint32_t size) { manager_data.resize((size_t)size); } 00052 ROS_DEPRECATED void get_manager_data_vec(std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > & vec) const { vec = this->manager_data; } 00053 ROS_DEPRECATED void set_manager_data_vec(const std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > & vec) { this->manager_data = vec; } 00054 ROS_DEPRECATED uint32_t get_app_data_size() const { return (uint32_t)app_data.size(); } 00055 ROS_DEPRECATED void set_app_data_size(uint32_t size) { app_data.resize((size_t)size); } 00056 ROS_DEPRECATED void get_app_data_vec(std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > & vec) const { vec = this->app_data; } 00057 ROS_DEPRECATED void set_app_data_vec(const std::vector< ::app_manager::KeyValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::app_manager::KeyValue_<ContainerAllocator> >::other > & vec) { this->app_data = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "app_manager/ClientApp"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "0a8112672c3fbf73cb62ec78d67e41bb"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# like \"android\" or \"web\" or \"linux\"\n\ 00074 string client_type\n\ 00075 \n\ 00076 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\ 00077 KeyValue[] manager_data\n\ 00078 \n\ 00079 # parameters which just get passed through to the client app.\n\ 00080 KeyValue[] app_data\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: app_manager/KeyValue\n\ 00084 string key\n\ 00085 string value\n\ 00086 \n\ 00087 "; } 00088 public: 00089 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00094 { 00095 ros::serialization::OStream stream(write_ptr, 1000000000); 00096 ros::serialization::serialize(stream, client_type); 00097 ros::serialization::serialize(stream, manager_data); 00098 ros::serialization::serialize(stream, app_data); 00099 return stream.getData(); 00100 } 00101 00102 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00103 { 00104 ros::serialization::IStream stream(read_ptr, 1000000000); 00105 ros::serialization::deserialize(stream, client_type); 00106 ros::serialization::deserialize(stream, manager_data); 00107 ros::serialization::deserialize(stream, app_data); 00108 return stream.getData(); 00109 } 00110 00111 ROS_DEPRECATED virtual uint32_t serializationLength() const 00112 { 00113 uint32_t size = 0; 00114 size += ros::serialization::serializationLength(client_type); 00115 size += ros::serialization::serializationLength(manager_data); 00116 size += ros::serialization::serializationLength(app_data); 00117 return size; 00118 } 00119 00120 typedef boost::shared_ptr< ::app_manager::ClientApp_<ContainerAllocator> > Ptr; 00121 typedef boost::shared_ptr< ::app_manager::ClientApp_<ContainerAllocator> const> ConstPtr; 00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00123 }; // struct ClientApp 00124 typedef ::app_manager::ClientApp_<std::allocator<void> > ClientApp; 00125 00126 typedef boost::shared_ptr< ::app_manager::ClientApp> ClientAppPtr; 00127 typedef boost::shared_ptr< ::app_manager::ClientApp const> ClientAppConstPtr; 00128 00129 00130 template<typename ContainerAllocator> 00131 std::ostream& operator<<(std::ostream& s, const ::app_manager::ClientApp_<ContainerAllocator> & v) 00132 { 00133 ros::message_operations::Printer< ::app_manager::ClientApp_<ContainerAllocator> >::stream(s, "", v); 00134 return s;} 00135 00136 } // namespace app_manager 00137 00138 namespace ros 00139 { 00140 namespace message_traits 00141 { 00142 template<class ContainerAllocator> struct IsMessage< ::app_manager::ClientApp_<ContainerAllocator> > : public TrueType {}; 00143 template<class ContainerAllocator> struct IsMessage< ::app_manager::ClientApp_<ContainerAllocator> const> : public TrueType {}; 00144 template<class ContainerAllocator> 00145 struct MD5Sum< ::app_manager::ClientApp_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "0a8112672c3fbf73cb62ec78d67e41bb"; 00149 } 00150 00151 static const char* value(const ::app_manager::ClientApp_<ContainerAllocator> &) { return value(); } 00152 static const uint64_t static_value1 = 0x0a8112672c3fbf73ULL; 00153 static const uint64_t static_value2 = 0xcb62ec78d67e41bbULL; 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct DataType< ::app_manager::ClientApp_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "app_manager/ClientApp"; 00161 } 00162 00163 static const char* value(const ::app_manager::ClientApp_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct Definition< ::app_manager::ClientApp_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "# like \"android\" or \"web\" or \"linux\"\n\ 00171 string client_type\n\ 00172 \n\ 00173 # like \"intent = ros.android.teleop\" and \"accelerometer = true\", used to choose which ClientApp to use\n\ 00174 KeyValue[] manager_data\n\ 00175 \n\ 00176 # parameters which just get passed through to the client app.\n\ 00177 KeyValue[] app_data\n\ 00178 \n\ 00179 ================================================================================\n\ 00180 MSG: app_manager/KeyValue\n\ 00181 string key\n\ 00182 string value\n\ 00183 \n\ 00184 "; 00185 } 00186 00187 static const char* value(const ::app_manager::ClientApp_<ContainerAllocator> &) { return value(); } 00188 }; 00189 00190 } // namespace message_traits 00191 } // namespace ros 00192 00193 namespace ros 00194 { 00195 namespace serialization 00196 { 00197 00198 template<class ContainerAllocator> struct Serializer< ::app_manager::ClientApp_<ContainerAllocator> > 00199 { 00200 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00201 { 00202 stream.next(m.client_type); 00203 stream.next(m.manager_data); 00204 stream.next(m.app_data); 00205 } 00206 00207 ROS_DECLARE_ALLINONE_SERIALIZER; 00208 }; // struct ClientApp_ 00209 } // namespace serialization 00210 } // namespace ros 00211 00212 namespace ros 00213 { 00214 namespace message_operations 00215 { 00216 00217 template<class ContainerAllocator> 00218 struct Printer< ::app_manager::ClientApp_<ContainerAllocator> > 00219 { 00220 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::app_manager::ClientApp_<ContainerAllocator> & v) 00221 { 00222 s << indent << "client_type: "; 00223 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.client_type); 00224 s << indent << "manager_data[]" << std::endl; 00225 for (size_t i = 0; i < v.manager_data.size(); ++i) 00226 { 00227 s << indent << " manager_data[" << i << "]: "; 00228 s << std::endl; 00229 s << indent; 00230 Printer< ::app_manager::KeyValue_<ContainerAllocator> >::stream(s, indent + " ", v.manager_data[i]); 00231 } 00232 s << indent << "app_data[]" << std::endl; 00233 for (size_t i = 0; i < v.app_data.size(); ++i) 00234 { 00235 s << indent << " app_data[" << i << "]: "; 00236 s << std::endl; 00237 s << indent; 00238 Printer< ::app_manager::KeyValue_<ContainerAllocator> >::stream(s, indent + " ", v.app_data[i]); 00239 } 00240 } 00241 }; 00242 00243 00244 } // namespace message_operations 00245 } // namespace ros 00246 00247 #endif // APP_MANAGER_MESSAGE_CLIENTAPP_H 00248