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