00001
00002 #ifndef TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGECOMPLEX2_H
00003 #define TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGECOMPLEX2_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 #include "test_roslib_comm/SameSubMsg2.h"
00014 #include "test_roslib_comm/SameSubMsg3.h"
00015
00016 namespace test_roslib_comm
00017 {
00018 template <class ContainerAllocator>
00019 struct TypeNameChangeComplex2_ : public ros::Message
00020 {
00021 typedef TypeNameChangeComplex2_<ContainerAllocator> Type;
00022
00023 TypeNameChangeComplex2_()
00024 : a()
00025 , b()
00026 {
00027 }
00028
00029 TypeNameChangeComplex2_(const ContainerAllocator& _alloc)
00030 : a(_alloc)
00031 , b()
00032 {
00033 b.assign( ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> (_alloc));
00034 }
00035
00036 typedef std::vector< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >::other > _a_type;
00037 std::vector< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >::other > a;
00038
00039 typedef boost::array< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> , 10> _b_type;
00040 boost::array< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> , 10> b;
00041
00042
00043 ROS_DEPRECATED uint32_t get_a_size() const { return (uint32_t)a.size(); }
00044 ROS_DEPRECATED void set_a_size(uint32_t size) { a.resize((size_t)size); }
00045 ROS_DEPRECATED void get_a_vec(std::vector< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >::other > & vec) const { vec = this->a; }
00046 ROS_DEPRECATED void set_a_vec(const std::vector< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >::other > & vec) { this->a = vec; }
00047 ROS_DEPRECATED uint32_t get_b_size() const { return (uint32_t)b.size(); }
00048 private:
00049 static const char* __s_getDataType_() { return "test_roslib_comm/TypeNameChangeComplex2"; }
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 "a01688a0991b9d7d9facf6d94b993e93"; }
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 "SameSubMsg2[] a\n\
00064 SameSubMsg3[10] b\n\
00065 \n\
00066 ================================================================================\n\
00067 MSG: test_roslib_comm/SameSubMsg2\n\
00068 int32 a\n\
00069 float32 b\n\
00070 string c\n\
00071 uint64[10] d\n\
00072 float64[] e\n\
00073 ================================================================================\n\
00074 MSG: test_roslib_comm/SameSubMsg3\n\
00075 \n\
00076 # Lots of comments\n\
00077 int32 a #And more comments\n\
00078 float32 b\n\
00079 string c\n\
00080 # And also some white space\n\
00081 \n\
00082 \n\
00083 uint64[10] d\n\
00084 float64[] e\n\
00085 \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, a);
00097 ros::serialization::serialize(stream, b);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00102 {
00103 ros::serialization::IStream stream(read_ptr, 1000000000);
00104 ros::serialization::deserialize(stream, a);
00105 ros::serialization::deserialize(stream, b);
00106 return stream.getData();
00107 }
00108
00109 ROS_DEPRECATED virtual uint32_t serializationLength() const
00110 {
00111 uint32_t size = 0;
00112 size += ros::serialization::serializationLength(a);
00113 size += ros::serialization::serializationLength(b);
00114 return size;
00115 }
00116
00117 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> > Ptr;
00118 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> const> ConstPtr;
00119 };
00120 typedef ::test_roslib_comm::TypeNameChangeComplex2_<std::allocator<void> > TypeNameChangeComplex2;
00121
00122 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex2> TypeNameChangeComplex2Ptr;
00123 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex2 const> TypeNameChangeComplex2ConstPtr;
00124
00125
00126 template<typename ContainerAllocator>
00127 std::ostream& operator<<(std::ostream& s, const ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> & v)
00128 {
00129 ros::message_operations::Printer< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> >::stream(s, "", v);
00130 return s;}
00131
00132 }
00133
00134 namespace ros
00135 {
00136 namespace message_traits
00137 {
00138 template<class ContainerAllocator>
00139 struct MD5Sum< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> > {
00140 static const char* value()
00141 {
00142 return "a01688a0991b9d7d9facf6d94b993e93";
00143 }
00144
00145 static const char* value(const ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> &) { return value(); }
00146 static const uint64_t static_value1 = 0xa01688a0991b9d7dULL;
00147 static const uint64_t static_value2 = 0x9facf6d94b993e93ULL;
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct DataType< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "test_roslib_comm/TypeNameChangeComplex2";
00155 }
00156
00157 static const char* value(const ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> &) { return value(); }
00158 };
00159
00160 template<class ContainerAllocator>
00161 struct Definition< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> > {
00162 static const char* value()
00163 {
00164 return "SameSubMsg2[] a\n\
00165 SameSubMsg3[10] b\n\
00166 \n\
00167 ================================================================================\n\
00168 MSG: test_roslib_comm/SameSubMsg2\n\
00169 int32 a\n\
00170 float32 b\n\
00171 string c\n\
00172 uint64[10] d\n\
00173 float64[] e\n\
00174 ================================================================================\n\
00175 MSG: test_roslib_comm/SameSubMsg3\n\
00176 \n\
00177 # Lots of comments\n\
00178 int32 a #And more comments\n\
00179 float32 b\n\
00180 string c\n\
00181 # And also some white space\n\
00182 \n\
00183 \n\
00184 uint64[10] d\n\
00185 float64[] e\n\
00186 \n\
00187 \n\
00188 ";
00189 }
00190
00191 static const char* value(const ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> &) { return value(); }
00192 };
00193
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace serialization
00200 {
00201
00202 template<class ContainerAllocator> struct Serializer< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> >
00203 {
00204 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00205 {
00206 stream.next(m.a);
00207 stream.next(m.b);
00208 }
00209
00210 ROS_DECLARE_ALLINONE_SERIALIZER;
00211 };
00212 }
00213 }
00214
00215 namespace ros
00216 {
00217 namespace message_operations
00218 {
00219
00220 template<class ContainerAllocator>
00221 struct Printer< ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> >
00222 {
00223 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslib_comm::TypeNameChangeComplex2_<ContainerAllocator> & v)
00224 {
00225 s << indent << "a[]" << std::endl;
00226 for (size_t i = 0; i < v.a.size(); ++i)
00227 {
00228 s << indent << " a[" << i << "]: ";
00229 s << std::endl;
00230 s << indent;
00231 Printer< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >::stream(s, indent + " ", v.a[i]);
00232 }
00233 s << indent << "b[]" << std::endl;
00234 for (size_t i = 0; i < v.b.size(); ++i)
00235 {
00236 s << indent << " b[" << i << "]: ";
00237 s << std::endl;
00238 s << indent;
00239 Printer< ::test_roslib_comm::SameSubMsg3_<ContainerAllocator> >::stream(s, indent + " ", v.b[i]);
00240 }
00241 }
00242 };
00243
00244
00245 }
00246 }
00247
00248 #endif // TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGECOMPLEX2_H
00249