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