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