00001
00002 #ifndef TEST_ROSLIB_COMM_MESSAGE_SAMESUBMSG3_H
00003 #define TEST_ROSLIB_COMM_MESSAGE_SAMESUBMSG3_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace test_roslib_comm
00015 {
00016 template <class ContainerAllocator>
00017 struct SameSubMsg3_ : public ros::Message
00018 {
00019 typedef SameSubMsg3_<ContainerAllocator> Type;
00020
00021 SameSubMsg3_()
00022 : a(0)
00023 , b(0.0)
00024 , c()
00025 , d()
00026 , e()
00027 {
00028 d.assign(0);
00029 }
00030
00031 SameSubMsg3_(const ContainerAllocator& _alloc)
00032 : a(0)
00033 , b(0.0)
00034 , c(_alloc)
00035 , d()
00036 , e(_alloc)
00037 {
00038 d.assign(0);
00039 }
00040
00041 typedef int32_t _a_type;
00042 int32_t a;
00043
00044 typedef float _b_type;
00045 float b;
00046
00047 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _c_type;
00048 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > c;
00049
00050 typedef boost::array<uint64_t, 10> _d_type;
00051 boost::array<uint64_t, 10> d;
00052
00053 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _e_type;
00054 std::vector<double, typename ContainerAllocator::template rebind<double>::other > e;
00055
00056
00057 ROS_DEPRECATED uint32_t get_d_size() const { return (uint32_t)d.size(); }
00058 ROS_DEPRECATED uint32_t get_e_size() const { return (uint32_t)e.size(); }
00059 ROS_DEPRECATED void set_e_size(uint32_t size) { e.resize((size_t)size); }
00060 ROS_DEPRECATED void get_e_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->e; }
00061 ROS_DEPRECATED void set_e_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->e = vec; }
00062 private:
00063 static const char* __s_getDataType_() { return "test_roslib_comm/SameSubMsg3"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00066
00067 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00068
00069 private:
00070 static const char* __s_getMD5Sum_() { return "49145a54e4be1a218629e518575a0bf3"; }
00071 public:
00072 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00073
00074 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00075
00076 private:
00077 static const char* __s_getMessageDefinition_() { return "\n\
00078 # Lots of comments\n\
00079 int32 a #And more comments\n\
00080 float32 b\n\
00081 string c\n\
00082 # And also some white space\n\
00083 \n\
00084 \n\
00085 uint64[10] d\n\
00086 float64[] e\n\
00087 \n\
00088 \n\
00089 "; }
00090 public:
00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00092
00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00094
00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00096 {
00097 ros::serialization::OStream stream(write_ptr, 1000000000);
00098 ros::serialization::serialize(stream, a);
00099 ros::serialization::serialize(stream, b);
00100 ros::serialization::serialize(stream, c);
00101 ros::serialization::serialize(stream, d);
00102 ros::serialization::serialize(stream, e);
00103 return stream.getData();
00104 }
00105
00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00107 {
00108 ros::serialization::IStream stream(read_ptr, 1000000000);
00109 ros::serialization::deserialize(stream, a);
00110 ros::serialization::deserialize(stream, b);
00111 ros::serialization::deserialize(stream, c);
00112 ros::serialization::deserialize(stream, d);
00113 ros::serialization::deserialize(stream, e);
00114 return stream.getData();
00115 }
00116
00117 ROS_DEPRECATED virtual uint32_t serializationLength() const
00118 {
00119 uint32_t size = 0;
00120 size += ros::serialization::serializationLength(a);
00121 size += ros::serialization::serializationLength(b);
00122 size += ros::serialization::serializationLength(c);
00123 size += ros::serialization::serializationLength(d);
00124 size += ros::serialization::serializationLength(e);
00125 return size;
00126 }
00127
00128 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> > Ptr;
00129 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> const> ConstPtr;
00130 };
00131 typedef ::test_roslib_comm::SameSubMsg3_<std::allocator<void> > SameSubMsg3;
00132
00133 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg3> SameSubMsg3Ptr;
00134 typedef boost::shared_ptr< ::test_roslib_comm::SameSubMsg3 const> SameSubMsg3ConstPtr;
00135
00136
00137 template<typename ContainerAllocator>
00138 std::ostream& operator<<(std::ostream& s, const ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> & v)
00139 {
00140 ros::message_operations::Printer< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> >::stream(s, "", v);
00141 return s;}
00142
00143 }
00144
00145 namespace ros
00146 {
00147 namespace message_traits
00148 {
00149 template<class ContainerAllocator>
00150 struct MD5Sum< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> > {
00151 static const char* value()
00152 {
00153 return "49145a54e4be1a218629e518575a0bf3";
00154 }
00155
00156 static const char* value(const ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> &) { return value(); }
00157 static const uint64_t static_value1 = 0x49145a54e4be1a21ULL;
00158 static const uint64_t static_value2 = 0x8629e518575a0bf3ULL;
00159 };
00160
00161 template<class ContainerAllocator>
00162 struct DataType< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "test_roslib_comm/SameSubMsg3";
00166 }
00167
00168 static const char* value(const ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> &) { return value(); }
00169 };
00170
00171 template<class ContainerAllocator>
00172 struct Definition< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> > {
00173 static const char* value()
00174 {
00175 return "\n\
00176 # Lots of comments\n\
00177 int32 a #And more comments\n\
00178 float32 b\n\
00179 string c\n\
00180 # And also some white space\n\
00181 \n\
00182 \n\
00183 uint64[10] d\n\
00184 float64[] e\n\
00185 \n\
00186 \n\
00187 ";
00188 }
00189
00190 static const char* value(const ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> &) { return value(); }
00191 };
00192
00193 }
00194 }
00195
00196 namespace ros
00197 {
00198 namespace serialization
00199 {
00200
00201 template<class ContainerAllocator> struct Serializer< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> >
00202 {
00203 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00204 {
00205 stream.next(m.a);
00206 stream.next(m.b);
00207 stream.next(m.c);
00208 stream.next(m.d);
00209 stream.next(m.e);
00210 }
00211
00212 ROS_DECLARE_ALLINONE_SERIALIZER;
00213 };
00214 }
00215 }
00216
00217 namespace ros
00218 {
00219 namespace message_operations
00220 {
00221
00222 template<class ContainerAllocator>
00223 struct Printer< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> >
00224 {
00225 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> & v)
00226 {
00227 s << indent << "a: ";
00228 Printer<int32_t>::stream(s, indent + " ", v.a);
00229 s << indent << "b: ";
00230 Printer<float>::stream(s, indent + " ", v.b);
00231 s << indent << "c: ";
00232 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.c);
00233 s << indent << "d[]" << std::endl;
00234 for (size_t i = 0; i < v.d.size(); ++i)
00235 {
00236 s << indent << " d[" << i << "]: ";
00237 Printer<uint64_t>::stream(s, indent + " ", v.d[i]);
00238 }
00239 s << indent << "e[]" << std::endl;
00240 for (size_t i = 0; i < v.e.size(); ++i)
00241 {
00242 s << indent << " e[" << i << "]: ";
00243 Printer<double>::stream(s, indent + " ", v.e[i]);
00244 }
00245 }
00246 };
00247
00248
00249 }
00250 }
00251
00252 #endif // TEST_ROSLIB_COMM_MESSAGE_SAMESUBMSG3_H
00253