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