00001
00002 #ifndef WEB_MSGS_MESSAGE_WEBEVENT_H
00003 #define WEB_MSGS_MESSAGE_WEBEVENT_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 web_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct WebEvent_ : public ros::Message
00018 {
00019 typedef WebEvent_<ContainerAllocator> Type;
00020
00021 WebEvent_()
00022 : source()
00023 , type()
00024 , data()
00025 {
00026 }
00027
00028 WebEvent_(const ContainerAllocator& _alloc)
00029 : source(_alloc)
00030 , type(_alloc)
00031 , data(_alloc)
00032 {
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _source_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > source;
00037
00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
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 "web_msgs/WebEvent"; }
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 "4f05e2e1608bf7d788fa5e654f805aeb"; }
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 "string source # who or what triggered the event\n\
00061 string type # type of event (e.g. login, logout)\n\
00062 string data # any data about the event\n\
00063 "; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00070 {
00071 ros::serialization::OStream stream(write_ptr, 1000000000);
00072 ros::serialization::serialize(stream, source);
00073 ros::serialization::serialize(stream, type);
00074 ros::serialization::serialize(stream, data);
00075 return stream.getData();
00076 }
00077
00078 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00079 {
00080 ros::serialization::IStream stream(read_ptr, 1000000000);
00081 ros::serialization::deserialize(stream, source);
00082 ros::serialization::deserialize(stream, type);
00083 ros::serialization::deserialize(stream, data);
00084 return stream.getData();
00085 }
00086
00087 ROS_DEPRECATED virtual uint32_t serializationLength() const
00088 {
00089 uint32_t size = 0;
00090 size += ros::serialization::serializationLength(source);
00091 size += ros::serialization::serializationLength(type);
00092 size += ros::serialization::serializationLength(data);
00093 return size;
00094 }
00095
00096 typedef boost::shared_ptr< ::web_msgs::WebEvent_<ContainerAllocator> > Ptr;
00097 typedef boost::shared_ptr< ::web_msgs::WebEvent_<ContainerAllocator> const> ConstPtr;
00098 };
00099 typedef ::web_msgs::WebEvent_<std::allocator<void> > WebEvent;
00100
00101 typedef boost::shared_ptr< ::web_msgs::WebEvent> WebEventPtr;
00102 typedef boost::shared_ptr< ::web_msgs::WebEvent const> WebEventConstPtr;
00103
00104
00105 template<typename ContainerAllocator>
00106 std::ostream& operator<<(std::ostream& s, const ::web_msgs::WebEvent_<ContainerAllocator> & v)
00107 {
00108 ros::message_operations::Printer< ::web_msgs::WebEvent_<ContainerAllocator> >::stream(s, "", v);
00109 return s;}
00110
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117 template<class ContainerAllocator>
00118 struct MD5Sum< ::web_msgs::WebEvent_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "4f05e2e1608bf7d788fa5e654f805aeb";
00122 }
00123
00124 static const char* value(const ::web_msgs::WebEvent_<ContainerAllocator> &) { return value(); }
00125 static const uint64_t static_value1 = 0x4f05e2e1608bf7d7ULL;
00126 static const uint64_t static_value2 = 0x88fa5e654f805aebULL;
00127 };
00128
00129 template<class ContainerAllocator>
00130 struct DataType< ::web_msgs::WebEvent_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "web_msgs/WebEvent";
00134 }
00135
00136 static const char* value(const ::web_msgs::WebEvent_<ContainerAllocator> &) { return value(); }
00137 };
00138
00139 template<class ContainerAllocator>
00140 struct Definition< ::web_msgs::WebEvent_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "string source # who or what triggered the event\n\
00144 string type # type of event (e.g. login, logout)\n\
00145 string data # any data about the event\n\
00146 ";
00147 }
00148
00149 static const char* value(const ::web_msgs::WebEvent_<ContainerAllocator> &) { return value(); }
00150 };
00151
00152 }
00153 }
00154
00155 namespace ros
00156 {
00157 namespace serialization
00158 {
00159
00160 template<class ContainerAllocator> struct Serializer< ::web_msgs::WebEvent_<ContainerAllocator> >
00161 {
00162 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00163 {
00164 stream.next(m.source);
00165 stream.next(m.type);
00166 stream.next(m.data);
00167 }
00168
00169 ROS_DECLARE_ALLINONE_SERIALIZER;
00170 };
00171 }
00172 }
00173
00174 namespace ros
00175 {
00176 namespace message_operations
00177 {
00178
00179 template<class ContainerAllocator>
00180 struct Printer< ::web_msgs::WebEvent_<ContainerAllocator> >
00181 {
00182 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::web_msgs::WebEvent_<ContainerAllocator> & v)
00183 {
00184 s << indent << "source: ";
00185 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.source);
00186 s << indent << "type: ";
00187 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type);
00188 s << indent << "data: ";
00189 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.data);
00190 }
00191 };
00192
00193
00194 }
00195 }
00196
00197 #endif // WEB_MSGS_MESSAGE_WEBEVENT_H
00198