00001
00002 #ifndef TEST_ROSPY_MESSAGE_TRANSITIVEIMPORT_H
00003 #define TEST_ROSPY_MESSAGE_TRANSITIVEIMPORT_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_rospy/EmbedTest.h"
00014
00015 namespace test_rospy
00016 {
00017 template <class ContainerAllocator>
00018 struct TransitiveImport_ : public ros::Message
00019 {
00020 typedef TransitiveImport_<ContainerAllocator> Type;
00021
00022 TransitiveImport_()
00023 : data()
00024 {
00025 }
00026
00027 TransitiveImport_(const ContainerAllocator& _alloc)
00028 : data(_alloc)
00029 {
00030 }
00031
00032 typedef ::test_rospy::EmbedTest_<ContainerAllocator> _data_type;
00033 ::test_rospy::EmbedTest_<ContainerAllocator> data;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "test_rospy/TransitiveImport"; }
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 "27665539bacd6d2d02a7538692d3d3d0"; }
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 "# Bug #2133/2139: EmbedTest uses std_msgs, so TransitiveImport needs it as well\n\
00052 EmbedTest data\n\
00053 ================================================================================\n\
00054 MSG: test_rospy/EmbedTest\n\
00055 std_msgs/String str1\n\
00056 std_msgs/Int32 int1\n\
00057 std_msgs/Int32[] ints\n\
00058 Val val\n\
00059 Val[] vals\n\
00060 ArrayVal[] arrayval\n\
00061 \n\
00062 ================================================================================\n\
00063 MSG: std_msgs/String\n\
00064 string data\n\
00065 \n\
00066 ================================================================================\n\
00067 MSG: std_msgs/Int32\n\
00068 int32 data\n\
00069 ================================================================================\n\
00070 MSG: test_rospy/Val\n\
00071 string val\n\
00072 ================================================================================\n\
00073 MSG: test_rospy/ArrayVal\n\
00074 Val[] vals\n\
00075 #Val[10] vals_fixed\n\
00076 \n\
00077 "; }
00078 public:
00079 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00080
00081 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00082
00083 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00084 {
00085 ros::serialization::OStream stream(write_ptr, 1000000000);
00086 ros::serialization::serialize(stream, data);
00087 return stream.getData();
00088 }
00089
00090 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00091 {
00092 ros::serialization::IStream stream(read_ptr, 1000000000);
00093 ros::serialization::deserialize(stream, data);
00094 return stream.getData();
00095 }
00096
00097 ROS_DEPRECATED virtual uint32_t serializationLength() const
00098 {
00099 uint32_t size = 0;
00100 size += ros::serialization::serializationLength(data);
00101 return size;
00102 }
00103
00104 typedef boost::shared_ptr< ::test_rospy::TransitiveImport_<ContainerAllocator> > Ptr;
00105 typedef boost::shared_ptr< ::test_rospy::TransitiveImport_<ContainerAllocator> const> ConstPtr;
00106 };
00107 typedef ::test_rospy::TransitiveImport_<std::allocator<void> > TransitiveImport;
00108
00109 typedef boost::shared_ptr< ::test_rospy::TransitiveImport> TransitiveImportPtr;
00110 typedef boost::shared_ptr< ::test_rospy::TransitiveImport const> TransitiveImportConstPtr;
00111
00112
00113 template<typename ContainerAllocator>
00114 std::ostream& operator<<(std::ostream& s, const ::test_rospy::TransitiveImport_<ContainerAllocator> & v)
00115 {
00116 ros::message_operations::Printer< ::test_rospy::TransitiveImport_<ContainerAllocator> >::stream(s, "", v);
00117 return s;}
00118
00119 }
00120
00121 namespace ros
00122 {
00123 namespace message_traits
00124 {
00125 template<class ContainerAllocator>
00126 struct MD5Sum< ::test_rospy::TransitiveImport_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "27665539bacd6d2d02a7538692d3d3d0";
00130 }
00131
00132 static const char* value(const ::test_rospy::TransitiveImport_<ContainerAllocator> &) { return value(); }
00133 static const uint64_t static_value1 = 0x27665539bacd6d2dULL;
00134 static const uint64_t static_value2 = 0x02a7538692d3d3d0ULL;
00135 };
00136
00137 template<class ContainerAllocator>
00138 struct DataType< ::test_rospy::TransitiveImport_<ContainerAllocator> > {
00139 static const char* value()
00140 {
00141 return "test_rospy/TransitiveImport";
00142 }
00143
00144 static const char* value(const ::test_rospy::TransitiveImport_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 template<class ContainerAllocator>
00148 struct Definition< ::test_rospy::TransitiveImport_<ContainerAllocator> > {
00149 static const char* value()
00150 {
00151 return "# Bug #2133/2139: EmbedTest uses std_msgs, so TransitiveImport needs it as well\n\
00152 EmbedTest data\n\
00153 ================================================================================\n\
00154 MSG: test_rospy/EmbedTest\n\
00155 std_msgs/String str1\n\
00156 std_msgs/Int32 int1\n\
00157 std_msgs/Int32[] ints\n\
00158 Val val\n\
00159 Val[] vals\n\
00160 ArrayVal[] arrayval\n\
00161 \n\
00162 ================================================================================\n\
00163 MSG: std_msgs/String\n\
00164 string data\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: std_msgs/Int32\n\
00168 int32 data\n\
00169 ================================================================================\n\
00170 MSG: test_rospy/Val\n\
00171 string val\n\
00172 ================================================================================\n\
00173 MSG: test_rospy/ArrayVal\n\
00174 Val[] vals\n\
00175 #Val[10] vals_fixed\n\
00176 \n\
00177 ";
00178 }
00179
00180 static const char* value(const ::test_rospy::TransitiveImport_<ContainerAllocator> &) { return value(); }
00181 };
00182
00183 }
00184 }
00185
00186 namespace ros
00187 {
00188 namespace serialization
00189 {
00190
00191 template<class ContainerAllocator> struct Serializer< ::test_rospy::TransitiveImport_<ContainerAllocator> >
00192 {
00193 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00194 {
00195 stream.next(m.data);
00196 }
00197
00198 ROS_DECLARE_ALLINONE_SERIALIZER;
00199 };
00200 }
00201 }
00202
00203 namespace ros
00204 {
00205 namespace message_operations
00206 {
00207
00208 template<class ContainerAllocator>
00209 struct Printer< ::test_rospy::TransitiveImport_<ContainerAllocator> >
00210 {
00211 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rospy::TransitiveImport_<ContainerAllocator> & v)
00212 {
00213 s << indent << "data: ";
00214 s << std::endl;
00215 Printer< ::test_rospy::EmbedTest_<ContainerAllocator> >::stream(s, indent + " ", v.data);
00216 }
00217 };
00218
00219
00220 }
00221 }
00222
00223 #endif // TEST_ROSPY_MESSAGE_TRANSITIVEIMPORT_H
00224