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