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