00001
00002 #ifndef TEST_ROSPY_MESSAGE_VAL_H
00003 #define TEST_ROSPY_MESSAGE_VAL_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_rospy
00015 {
00016 template <class ContainerAllocator>
00017 struct Val_ : public ros::Message
00018 {
00019 typedef Val_<ContainerAllocator> Type;
00020
00021 Val_()
00022 : val()
00023 {
00024 }
00025
00026 Val_(const ContainerAllocator& _alloc)
00027 : val(_alloc)
00028 {
00029 }
00030
00031 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _val_type;
00032 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > val;
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "test_rospy/Val"; }
00037 public:
00038 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00039
00040 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00041
00042 private:
00043 static const char* __s_getMD5Sum_() { return "c45577ce53559408f0f69fe465be7c70"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00046
00047 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00048
00049 private:
00050 static const char* __s_getMessageDefinition_() { return "string val\n\
00051 "; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00054
00055 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00056
00057 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00058 {
00059 ros::serialization::OStream stream(write_ptr, 1000000000);
00060 ros::serialization::serialize(stream, val);
00061 return stream.getData();
00062 }
00063
00064 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00065 {
00066 ros::serialization::IStream stream(read_ptr, 1000000000);
00067 ros::serialization::deserialize(stream, val);
00068 return stream.getData();
00069 }
00070
00071 ROS_DEPRECATED virtual uint32_t serializationLength() const
00072 {
00073 uint32_t size = 0;
00074 size += ros::serialization::serializationLength(val);
00075 return size;
00076 }
00077
00078 typedef boost::shared_ptr< ::test_rospy::Val_<ContainerAllocator> > Ptr;
00079 typedef boost::shared_ptr< ::test_rospy::Val_<ContainerAllocator> const> ConstPtr;
00080 };
00081 typedef ::test_rospy::Val_<std::allocator<void> > Val;
00082
00083 typedef boost::shared_ptr< ::test_rospy::Val> ValPtr;
00084 typedef boost::shared_ptr< ::test_rospy::Val const> ValConstPtr;
00085
00086
00087 template<typename ContainerAllocator>
00088 std::ostream& operator<<(std::ostream& s, const ::test_rospy::Val_<ContainerAllocator> & v)
00089 {
00090 ros::message_operations::Printer< ::test_rospy::Val_<ContainerAllocator> >::stream(s, "", v);
00091 return s;}
00092
00093 }
00094
00095 namespace ros
00096 {
00097 namespace message_traits
00098 {
00099 template<class ContainerAllocator>
00100 struct MD5Sum< ::test_rospy::Val_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "c45577ce53559408f0f69fe465be7c70";
00104 }
00105
00106 static const char* value(const ::test_rospy::Val_<ContainerAllocator> &) { return value(); }
00107 static const uint64_t static_value1 = 0xc45577ce53559408ULL;
00108 static const uint64_t static_value2 = 0xf0f69fe465be7c70ULL;
00109 };
00110
00111 template<class ContainerAllocator>
00112 struct DataType< ::test_rospy::Val_<ContainerAllocator> > {
00113 static const char* value()
00114 {
00115 return "test_rospy/Val";
00116 }
00117
00118 static const char* value(const ::test_rospy::Val_<ContainerAllocator> &) { return value(); }
00119 };
00120
00121 template<class ContainerAllocator>
00122 struct Definition< ::test_rospy::Val_<ContainerAllocator> > {
00123 static const char* value()
00124 {
00125 return "string val\n\
00126 ";
00127 }
00128
00129 static const char* value(const ::test_rospy::Val_<ContainerAllocator> &) { return value(); }
00130 };
00131
00132 }
00133 }
00134
00135 namespace ros
00136 {
00137 namespace serialization
00138 {
00139
00140 template<class ContainerAllocator> struct Serializer< ::test_rospy::Val_<ContainerAllocator> >
00141 {
00142 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00143 {
00144 stream.next(m.val);
00145 }
00146
00147 ROS_DECLARE_ALLINONE_SERIALIZER;
00148 };
00149 }
00150 }
00151
00152 namespace ros
00153 {
00154 namespace message_operations
00155 {
00156
00157 template<class ContainerAllocator>
00158 struct Printer< ::test_rospy::Val_<ContainerAllocator> >
00159 {
00160 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::test_rospy::Val_<ContainerAllocator> & v)
00161 {
00162 s << indent << "val: ";
00163 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.val);
00164 }
00165 };
00166
00167
00168 }
00169 }
00170
00171 #endif // TEST_ROSPY_MESSAGE_VAL_H
00172