$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/Icon.msg */ 00002 #ifndef APP_MANAGER_MESSAGE_ICON_H 00003 #define APP_MANAGER_MESSAGE_ICON_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 00018 namespace app_manager 00019 { 00020 template <class ContainerAllocator> 00021 struct Icon_ { 00022 typedef Icon_<ContainerAllocator> Type; 00023 00024 Icon_() 00025 : format() 00026 , data() 00027 { 00028 } 00029 00030 Icon_(const ContainerAllocator& _alloc) 00031 : format(_alloc) 00032 , data(_alloc) 00033 { 00034 } 00035 00036 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _format_type; 00037 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > format; 00038 00039 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _data_type; 00040 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > data; 00041 00042 00043 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00044 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00045 ROS_DEPRECATED void get_data_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->data; } 00046 ROS_DEPRECATED void set_data_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->data = vec; } 00047 private: 00048 static const char* __s_getDataType_() { return "app_manager/Icon"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "e378a502c24c5aa2af7065d57c580d12"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getMessageDefinition_() { return "# Image data format. \"jpeg\" or \"png\"\n\ 00063 string format\n\ 00064 \n\ 00065 # Image data.\n\ 00066 uint8[] data\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, format); 00078 ros::serialization::serialize(stream, data); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00083 { 00084 ros::serialization::IStream stream(read_ptr, 1000000000); 00085 ros::serialization::deserialize(stream, format); 00086 ros::serialization::deserialize(stream, data); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint32_t serializationLength() const 00091 { 00092 uint32_t size = 0; 00093 size += ros::serialization::serializationLength(format); 00094 size += ros::serialization::serializationLength(data); 00095 return size; 00096 } 00097 00098 typedef boost::shared_ptr< ::app_manager::Icon_<ContainerAllocator> > Ptr; 00099 typedef boost::shared_ptr< ::app_manager::Icon_<ContainerAllocator> const> ConstPtr; 00100 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00101 }; // struct Icon 00102 typedef ::app_manager::Icon_<std::allocator<void> > Icon; 00103 00104 typedef boost::shared_ptr< ::app_manager::Icon> IconPtr; 00105 typedef boost::shared_ptr< ::app_manager::Icon const> IconConstPtr; 00106 00107 00108 template<typename ContainerAllocator> 00109 std::ostream& operator<<(std::ostream& s, const ::app_manager::Icon_<ContainerAllocator> & v) 00110 { 00111 ros::message_operations::Printer< ::app_manager::Icon_<ContainerAllocator> >::stream(s, "", v); 00112 return s;} 00113 00114 } // namespace app_manager 00115 00116 namespace ros 00117 { 00118 namespace message_traits 00119 { 00120 template<class ContainerAllocator> struct IsMessage< ::app_manager::Icon_<ContainerAllocator> > : public TrueType {}; 00121 template<class ContainerAllocator> struct IsMessage< ::app_manager::Icon_<ContainerAllocator> const> : public TrueType {}; 00122 template<class ContainerAllocator> 00123 struct MD5Sum< ::app_manager::Icon_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "e378a502c24c5aa2af7065d57c580d12"; 00127 } 00128 00129 static const char* value(const ::app_manager::Icon_<ContainerAllocator> &) { return value(); } 00130 static const uint64_t static_value1 = 0xe378a502c24c5aa2ULL; 00131 static const uint64_t static_value2 = 0xaf7065d57c580d12ULL; 00132 }; 00133 00134 template<class ContainerAllocator> 00135 struct DataType< ::app_manager::Icon_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "app_manager/Icon"; 00139 } 00140 00141 static const char* value(const ::app_manager::Icon_<ContainerAllocator> &) { return value(); } 00142 }; 00143 00144 template<class ContainerAllocator> 00145 struct Definition< ::app_manager::Icon_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "# Image data format. \"jpeg\" or \"png\"\n\ 00149 string format\n\ 00150 \n\ 00151 # Image data.\n\ 00152 uint8[] data\n\ 00153 \n\ 00154 "; 00155 } 00156 00157 static const char* value(const ::app_manager::Icon_<ContainerAllocator> &) { return value(); } 00158 }; 00159 00160 } // namespace message_traits 00161 } // namespace ros 00162 00163 namespace ros 00164 { 00165 namespace serialization 00166 { 00167 00168 template<class ContainerAllocator> struct Serializer< ::app_manager::Icon_<ContainerAllocator> > 00169 { 00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00171 { 00172 stream.next(m.format); 00173 stream.next(m.data); 00174 } 00175 00176 ROS_DECLARE_ALLINONE_SERIALIZER; 00177 }; // struct Icon_ 00178 } // namespace serialization 00179 } // namespace ros 00180 00181 namespace ros 00182 { 00183 namespace message_operations 00184 { 00185 00186 template<class ContainerAllocator> 00187 struct Printer< ::app_manager::Icon_<ContainerAllocator> > 00188 { 00189 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::app_manager::Icon_<ContainerAllocator> & v) 00190 { 00191 s << indent << "format: "; 00192 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.format); 00193 s << indent << "data[]" << std::endl; 00194 for (size_t i = 0; i < v.data.size(); ++i) 00195 { 00196 s << indent << " data[" << i << "]: "; 00197 Printer<uint8_t>::stream(s, indent + " ", v.data[i]); 00198 } 00199 } 00200 }; 00201 00202 00203 } // namespace message_operations 00204 } // namespace ros 00205 00206 #endif // APP_MANAGER_MESSAGE_ICON_H 00207