00001
00002 #ifndef TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGEARRAY1_H
00003 #define TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGEARRAY1_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
00015 namespace test_roslib_comm
00016 {
00017 template <class ContainerAllocator>
00018 struct TypeNameChangeArray1_ : public ros::Message
00019 {
00020 typedef TypeNameChangeArray1_<ContainerAllocator> Type;
00021
00022 TypeNameChangeArray1_()
00023 : a()
00024 {
00025 }
00026
00027 TypeNameChangeArray1_(const ContainerAllocator& _alloc)
00028 : a(_alloc)
00029 {
00030 }
00031
00032 typedef std::vector< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> >::other > _a_type;
00033 std::vector< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> >::other > a;
00034
00035
00036 ROS_DEPRECATED uint32_t get_a_size() const { return (uint32_t)a.size(); }
00037 ROS_DEPRECATED void set_a_size(uint32_t size) { a.resize((size_t)size); }
00038 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; }
00039 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; }
00040 private:
00041 static const char* __s_getDataType_() { return "test_roslib_comm/TypeNameChangeArray1"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "31a9992534c4d020bfc4045e7dc1a786"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "SameSubMsg1[] a\n\
00056 ================================================================================\n\
00057 MSG: test_roslib_comm/SameSubMsg1\n\
00058 int32 a\n\
00059 float32 b\n\
00060 string c\n\
00061 uint64[10] d\n\
00062 float64[] e\n\
00063 "; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00070 {
00071 ros::serialization::OStream stream(write_ptr, 1000000000);
00072 ros::serialization::serialize(stream, a);
00073 return stream.getData();
00074 }
00075
00076 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00077 {
00078 ros::serialization::IStream stream(read_ptr, 1000000000);
00079 ros::serialization::deserialize(stream, a);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint32_t serializationLength() const
00084 {
00085 uint32_t size = 0;
00086 size += ros::serialization::serializationLength(a);
00087 return size;
00088 }
00089
00090 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> > Ptr;
00091 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> const> ConstPtr;
00092 };
00093 typedef ::test_roslib_comm::TypeNameChangeArray1_<std::allocator<void> > TypeNameChangeArray1;
00094
00095 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeArray1> TypeNameChangeArray1Ptr;
00096 typedef boost::shared_ptr< ::test_roslib_comm::TypeNameChangeArray1 const> TypeNameChangeArray1ConstPtr;
00097
00098
00099 template<typename ContainerAllocator>
00100 std::ostream& operator<<(std::ostream& s, const ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> & v)
00101 {
00102 ros::message_operations::Printer< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> >::stream(s, "", v);
00103 return s;}
00104
00105 }
00106
00107 namespace ros
00108 {
00109 namespace message_traits
00110 {
00111 template<class ContainerAllocator>
00112 struct MD5Sum< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "31a9992534c4d020bfc4045e7dc1a786";
00116 }
00117
00118 static const char* value(const ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> &) { return value(); }
00119 static const uint64_t static_value1 = 0x31a9992534c4d020ULL;
00120 static const uint64_t static_value2 = 0xbfc4045e7dc1a786ULL;
00121 };
00122
00123 template<class ContainerAllocator>
00124 struct DataType< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> > {
00125 static const char* value()
00126 {
00127 return "test_roslib_comm/TypeNameChangeArray1";
00128 }
00129
00130 static const char* value(const ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> &) { return value(); }
00131 };
00132
00133 template<class ContainerAllocator>
00134 struct Definition< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> > {
00135 static const char* value()
00136 {
00137 return "SameSubMsg1[] a\n\
00138 ================================================================================\n\
00139 MSG: test_roslib_comm/SameSubMsg1\n\
00140 int32 a\n\
00141 float32 b\n\
00142 string c\n\
00143 uint64[10] d\n\
00144 float64[] e\n\
00145 ";
00146 }
00147
00148 static const char* value(const ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 }
00152 }
00153
00154 namespace ros
00155 {
00156 namespace serialization
00157 {
00158
00159 template<class ContainerAllocator> struct Serializer< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> >
00160 {
00161 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00162 {
00163 stream.next(m.a);
00164 }
00165
00166 ROS_DECLARE_ALLINONE_SERIALIZER;
00167 };
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace message_operations
00174 {
00175
00176 template<class ContainerAllocator>
00177 struct Printer< ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> >
00178 {
00179 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_roslib_comm::TypeNameChangeArray1_<ContainerAllocator> & v)
00180 {
00181 s << indent << "a[]" << std::endl;
00182 for (size_t i = 0; i < v.a.size(); ++i)
00183 {
00184 s << indent << " a[" << i << "]: ";
00185 s << std::endl;
00186 s << indent;
00187 Printer< ::test_roslib_comm::SameSubMsg1_<ContainerAllocator> >::stream(s, indent + " ", v.a[i]);
00188 }
00189 }
00190 };
00191
00192
00193 }
00194 }
00195
00196 #endif // TEST_ROSLIB_COMM_MESSAGE_TYPENAMECHANGEARRAY1_H
00197