00001
00002 #ifndef STD_MSGS_MESSAGE_MULTIARRAYDIMENSION_H
00003 #define STD_MSGS_MESSAGE_MULTIARRAYDIMENSION_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 std_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MultiArrayDimension_ {
00022 typedef MultiArrayDimension_<ContainerAllocator> Type;
00023
00024 MultiArrayDimension_()
00025 : label()
00026 , size(0)
00027 , stride(0)
00028 {
00029 }
00030
00031 MultiArrayDimension_(const ContainerAllocator& _alloc)
00032 : label(_alloc)
00033 , size(0)
00034 , stride(0)
00035 {
00036 }
00037
00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _label_type;
00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > label;
00040
00041 typedef uint32_t _size_type;
00042 uint32_t size;
00043
00044 typedef uint32_t _stride_type;
00045 uint32_t stride;
00046
00047
00048 private:
00049 static const char* __s_getDataType_() { return "std_msgs/MultiArrayDimension"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "4cd0c83a8683deae40ecdac60e53bfa8"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "string label # label of given dimension\n\
00064 uint32 size # size of given dimension (in type units)\n\
00065 uint32 stride # stride of given dimension\n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, label);
00076 ros::serialization::serialize(stream, size);
00077 ros::serialization::serialize(stream, stride);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00082 {
00083 ros::serialization::IStream stream(read_ptr, 1000000000);
00084 ros::serialization::deserialize(stream, label);
00085 ros::serialization::deserialize(stream, size);
00086 ros::serialization::deserialize(stream, stride);
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(label);
00094 size += ros::serialization::serializationLength(size);
00095 size += ros::serialization::serializationLength(stride);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::std_msgs::MultiArrayDimension_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::std_msgs::MultiArrayDimension_<ContainerAllocator> const> ConstPtr;
00101 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00102 };
00103 typedef ::std_msgs::MultiArrayDimension_<std::allocator<void> > MultiArrayDimension;
00104
00105 typedef boost::shared_ptr< ::std_msgs::MultiArrayDimension> MultiArrayDimensionPtr;
00106 typedef boost::shared_ptr< ::std_msgs::MultiArrayDimension const> MultiArrayDimensionConstPtr;
00107
00108
00109 template<typename ContainerAllocator>
00110 std::ostream& operator<<(std::ostream& s, const ::std_msgs::MultiArrayDimension_<ContainerAllocator> & v)
00111 {
00112 ros::message_operations::Printer< ::std_msgs::MultiArrayDimension_<ContainerAllocator> >::stream(s, "", v);
00113 return s;}
00114
00115 }
00116
00117 namespace ros
00118 {
00119 namespace message_traits
00120 {
00121 template<class ContainerAllocator> struct IsMessage< ::std_msgs::MultiArrayDimension_<ContainerAllocator> > : public TrueType {};
00122 template<class ContainerAllocator> struct IsMessage< ::std_msgs::MultiArrayDimension_<ContainerAllocator> const> : public TrueType {};
00123 template<class ContainerAllocator>
00124 struct MD5Sum< ::std_msgs::MultiArrayDimension_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "4cd0c83a8683deae40ecdac60e53bfa8";
00128 }
00129
00130 static const char* value(const ::std_msgs::MultiArrayDimension_<ContainerAllocator> &) { return value(); }
00131 static const uint64_t static_value1 = 0x4cd0c83a8683deaeULL;
00132 static const uint64_t static_value2 = 0x40ecdac60e53bfa8ULL;
00133 };
00134
00135 template<class ContainerAllocator>
00136 struct DataType< ::std_msgs::MultiArrayDimension_<ContainerAllocator> > {
00137 static const char* value()
00138 {
00139 return "std_msgs/MultiArrayDimension";
00140 }
00141
00142 static const char* value(const ::std_msgs::MultiArrayDimension_<ContainerAllocator> &) { return value(); }
00143 };
00144
00145 template<class ContainerAllocator>
00146 struct Definition< ::std_msgs::MultiArrayDimension_<ContainerAllocator> > {
00147 static const char* value()
00148 {
00149 return "string label # label of given dimension\n\
00150 uint32 size # size of given dimension (in type units)\n\
00151 uint32 stride # stride of given dimension\n\
00152 ";
00153 }
00154
00155 static const char* value(const ::std_msgs::MultiArrayDimension_<ContainerAllocator> &) { return value(); }
00156 };
00157
00158 }
00159 }
00160
00161 namespace ros
00162 {
00163 namespace serialization
00164 {
00165
00166 template<class ContainerAllocator> struct Serializer< ::std_msgs::MultiArrayDimension_<ContainerAllocator> >
00167 {
00168 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00169 {
00170 stream.next(m.label);
00171 stream.next(m.size);
00172 stream.next(m.stride);
00173 }
00174
00175 ROS_DECLARE_ALLINONE_SERIALIZER;
00176 };
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace message_operations
00183 {
00184
00185 template<class ContainerAllocator>
00186 struct Printer< ::std_msgs::MultiArrayDimension_<ContainerAllocator> >
00187 {
00188 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::std_msgs::MultiArrayDimension_<ContainerAllocator> & v)
00189 {
00190 s << indent << "label: ";
00191 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.label);
00192 s << indent << "size: ";
00193 Printer<uint32_t>::stream(s, indent + " ", v.size);
00194 s << indent << "stride: ";
00195 Printer<uint32_t>::stream(s, indent + " ", v.stride);
00196 }
00197 };
00198
00199
00200 }
00201 }
00202
00203 #endif // STD_MSGS_MESSAGE_MULTIARRAYDIMENSION_H
00204