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