00001
00002 #ifndef TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGECOMPLEX1_H
00003 #define TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGECOMPLEX1_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/SameSubMsg1.h"
00014 #include "test_roslib_comm/SameSubMsg2.h"
00015
00016 namespace test_roslib_comm
00017 {
00018 template <class ContainerAllocator>
00019 struct TypeNameChangeComplex1_ : public ros::Message
00020 {
00021 typedef TypeNameChangeComplex1_<ContainerAllocator> Type;
00022
00023 TypeNameChangeComplex1_()
00024 : a()
00025 , b()
00026 {
00027 }
00028
00029 TypeNameChangeComplex1_(const ContainerAllocator& _alloc)
00030 : a(_alloc)
00031 , b()
00032 {
00033 b.assign( ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> (_alloc));
00034 }
00035
00036 typedef std::vector< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> >::other > _a_type;
00037 std::vector< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> >::other > a;
00038
00039 typedef boost::array< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> , 10> _b_type;
00040 boost::array< ::test_roslib_comm::SameSubMsg2_<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::SameSubMsg1_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> >::other > & vec) const { vec = this->a; }
00046 ROS_DEPRECATED void set_a_vec(const std::vector< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg1_<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/TypeNameChangeComplex1"; }
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 "SameSubMsg1[] a\n\
00064 SameSubMsg2[10] b\n\
00065 \n\
00066 ================================================================================\n\
00067 MSG: test_roslib_comm/SameSubMsg1\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/SameSubMsg2\n\
00075 int32 a\n\
00076 float32 b\n\
00077 string c\n\
00078 uint64[10] d\n\
00079 float64[] e\n\
00080 "; }
00081 public:
00082 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00083
00084 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00085
00086 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00087 {
00088 ros::serialization::OStream stream(write_ptr, 1000000000);
00089 ros::serialization::serialize(stream, a);
00090 ros::serialization::serialize(stream, b);
00091 return stream.getData();
00092 }
00093
00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00095 {
00096 ros::serialization::IStream stream(read_ptr, 1000000000);
00097 ros::serialization::deserialize(stream, a);
00098 ros::serialization::deserialize(stream, b);
00099 return stream.getData();
00100 }
00101
00102 ROS_DEPRECATED virtual uint32_t serializationLength() const
00103 {
00104 uint32_t size = 0;
00105 size += ros::serialization::serializationLength(a);
00106 size += ros::serialization::serializationLength(b);
00107 return size;
00108 }
00109
00110 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> > Ptr;
00111 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> const> ConstPtr;
00112 };
00113 typedef ::test_roslib_comm::TypeNameChangeComplex1_<std::allocator<void> > TypeNameChangeComplex1;
00114
00115 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex1> TypeNameChangeComplex1Ptr;
00116 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeComplex1 const> TypeNameChangeComplex1ConstPtr;
00117
00118
00119 template<typename ContainerAllocator>
00120 std::ostream& operator<<(std::ostream& s, const ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> & v)
00121 {
00122 ros::message_operations::Printer< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> >::stream(s, "", v);
00123 return s;}
00124
00125 }
00126
00127 namespace ros
00128 {
00129 namespace message_traits
00130 {
00131 template<class ContainerAllocator>
00132 struct MD5Sum< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "a01688a0991b9d7d9facf6d94b993e93";
00136 }
00137
00138 static const char* value(const ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> &) { return value(); }
00139 static const uint64_t static_value1 = 0xa01688a0991b9d7dULL;
00140 static const uint64_t static_value2 = 0x9facf6d94b993e93ULL;
00141 };
00142
00143 template<class ContainerAllocator>
00144 struct DataType< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "test_roslib_comm/TypeNameChangeComplex1";
00148 }
00149
00150 static const char* value(const ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> &) { return value(); }
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct Definition< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "SameSubMsg1[] a\n\
00158 SameSubMsg2[10] b\n\
00159 \n\
00160 ================================================================================\n\
00161 MSG: test_roslib_comm/SameSubMsg1\n\
00162 int32 a\n\
00163 float32 b\n\
00164 string c\n\
00165 uint64[10] d\n\
00166 float64[] e\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 ";
00175 }
00176
00177 static const char* value(const ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> &) { return value(); }
00178 };
00179
00180 }
00181 }
00182
00183 namespace ros
00184 {
00185 namespace serialization
00186 {
00187
00188 template<class ContainerAllocator> struct Serializer< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> >
00189 {
00190 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00191 {
00192 stream.next(m.a);
00193 stream.next(m.b);
00194 }
00195
00196 ROS_DECLARE_ALLINONE_SERIALIZER;
00197 };
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace message_operations
00204 {
00205
00206 template<class ContainerAllocator>
00207 struct Printer< ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> >
00208 {
00209 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslib_comm::TypeNameChangeComplex1_<ContainerAllocator> & v)
00210 {
00211 s << indent << "a[]" << std::endl;
00212 for (size_t i = 0; i < v.a.size(); ++i)
00213 {
00214 s << indent << " a[" << i << "]: ";
00215 s << std::endl;
00216 s << indent;
00217 Printer< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> >::stream(s, indent + " ", v.a[i]);
00218 }
00219 s << indent << "b[]" << std::endl;
00220 for (size_t i = 0; i < v.b.size(); ++i)
00221 {
00222 s << indent << " b[" << i << "]: ";
00223 s << std::endl;
00224 s << indent;
00225 Printer< ::test_roslib_comm::SameSubMsg2_<ContainerAllocator> >::stream(s, indent + " ", v.b[i]);
00226 }
00227 }
00228 };
00229
00230
00231 }
00232 }
00233
00234 #endif // TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGECOMPLEX1_H
00235