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