00001
00002 #ifndef WAREHOUSE_MESSAGE_UPDATENOTIFICATION_H
00003 #define WAREHOUSE_MESSAGE_UPDATENOTIFICATION_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 warehouse
00015 {
00016 template <class ContainerAllocator>
00017 struct UpdateNotification_ : public ros::Message
00018 {
00019 typedef UpdateNotification_<ContainerAllocator> Type;
00020
00021 UpdateNotification_()
00022 : update_type(0)
00023 , id()
00024 , sender()
00025 , metadata()
00026 {
00027 }
00028
00029 UpdateNotification_(const ContainerAllocator& _alloc)
00030 : update_type(0)
00031 , id(_alloc)
00032 , sender(_alloc)
00033 , metadata(_alloc)
00034 {
00035 }
00036
00037 typedef int8_t _update_type_type;
00038 int8_t update_type;
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _id_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > id;
00042
00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _sender_type;
00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > sender;
00045
00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _metadata_type;
00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > metadata;
00048
00049 enum { NEW_MESSAGE = 0 };
00050 enum { UPDATE_METADATA = 1 };
00051
00052 private:
00053 static const char* __s_getDataType_() { return "warehouse/UpdateNotification"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00056
00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00058
00059 private:
00060 static const char* __s_getMD5Sum_() { return "9c55c20e6f692ac1b71cfd0548a7ecba"; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00063
00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00065
00066 private:
00067 static const char* __s_getMessageDefinition_() { return "## Represents an update to a warehouse collection\n\
00068 \n\
00069 int8 NEW_MESSAGE=0\n\
00070 int8 UPDATE_METADATA=1\n\
00071 \n\
00072 # Is this a new message or an update?\n\
00073 int8 update_type\n\
00074 \n\
00075 # A unique id (within the db) for the new or updated message\n\
00076 string id\n\
00077 \n\
00078 # The fully qualified ROS name of the node that caused this change\n\
00079 string sender\n\
00080 \n\
00081 # Metadata of the new or updated message\n\
00082 string metadata\n\
00083 \n\
00084 "; }
00085 public:
00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00089
00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00091 {
00092 ros::serialization::OStream stream(write_ptr, 1000000000);
00093 ros::serialization::serialize(stream, update_type);
00094 ros::serialization::serialize(stream, id);
00095 ros::serialization::serialize(stream, sender);
00096 ros::serialization::serialize(stream, metadata);
00097 return stream.getData();
00098 }
00099
00100 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00101 {
00102 ros::serialization::IStream stream(read_ptr, 1000000000);
00103 ros::serialization::deserialize(stream, update_type);
00104 ros::serialization::deserialize(stream, id);
00105 ros::serialization::deserialize(stream, sender);
00106 ros::serialization::deserialize(stream, metadata);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(update_type);
00114 size += ros::serialization::serializationLength(id);
00115 size += ros::serialization::serializationLength(sender);
00116 size += ros::serialization::serializationLength(metadata);
00117 return size;
00118 }
00119
00120 typedef boost::shared_ptr< ::warehouse::UpdateNotification_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::warehouse::UpdateNotification_<ContainerAllocator> const> ConstPtr;
00122 };
00123 typedef ::warehouse::UpdateNotification_<std::allocator<void> > UpdateNotification;
00124
00125 typedef boost::shared_ptr< ::warehouse::UpdateNotification> UpdateNotificationPtr;
00126 typedef boost::shared_ptr< ::warehouse::UpdateNotification const> UpdateNotificationConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::warehouse::UpdateNotification_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::warehouse::UpdateNotification_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator>
00142 struct MD5Sum< ::warehouse::UpdateNotification_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "9c55c20e6f692ac1b71cfd0548a7ecba";
00146 }
00147
00148 static const char* value(const ::warehouse::UpdateNotification_<ContainerAllocator> &) { return value(); }
00149 static const uint64_t static_value1 = 0x9c55c20e6f692ac1ULL;
00150 static const uint64_t static_value2 = 0xb71cfd0548a7ecbaULL;
00151 };
00152
00153 template<class ContainerAllocator>
00154 struct DataType< ::warehouse::UpdateNotification_<ContainerAllocator> > {
00155 static const char* value()
00156 {
00157 return "warehouse/UpdateNotification";
00158 }
00159
00160 static const char* value(const ::warehouse::UpdateNotification_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 template<class ContainerAllocator>
00164 struct Definition< ::warehouse::UpdateNotification_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "## Represents an update to a warehouse collection\n\
00168 \n\
00169 int8 NEW_MESSAGE=0\n\
00170 int8 UPDATE_METADATA=1\n\
00171 \n\
00172 # Is this a new message or an update?\n\
00173 int8 update_type\n\
00174 \n\
00175 # A unique id (within the db) for the new or updated message\n\
00176 string id\n\
00177 \n\
00178 # The fully qualified ROS name of the node that caused this change\n\
00179 string sender\n\
00180 \n\
00181 # Metadata of the new or updated message\n\
00182 string metadata\n\
00183 \n\
00184 ";
00185 }
00186
00187 static const char* value(const ::warehouse::UpdateNotification_<ContainerAllocator> &) { return value(); }
00188 };
00189
00190 }
00191 }
00192
00193 namespace ros
00194 {
00195 namespace serialization
00196 {
00197
00198 template<class ContainerAllocator> struct Serializer< ::warehouse::UpdateNotification_<ContainerAllocator> >
00199 {
00200 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00201 {
00202 stream.next(m.update_type);
00203 stream.next(m.id);
00204 stream.next(m.sender);
00205 stream.next(m.metadata);
00206 }
00207
00208 ROS_DECLARE_ALLINONE_SERIALIZER;
00209 };
00210 }
00211 }
00212
00213 namespace ros
00214 {
00215 namespace message_operations
00216 {
00217
00218 template<class ContainerAllocator>
00219 struct Printer< ::warehouse::UpdateNotification_<ContainerAllocator> >
00220 {
00221 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::warehouse::UpdateNotification_<ContainerAllocator> & v)
00222 {
00223 s << indent << "update_type: ";
00224 Printer<int8_t>::stream(s, indent + " ", v.update_type);
00225 s << indent << "id: ";
00226 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.id);
00227 s << indent << "sender: ";
00228 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.sender);
00229 s << indent << "metadata: ";
00230 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.metadata);
00231 }
00232 };
00233
00234
00235 }
00236 }
00237
00238 #endif // WAREHOUSE_MESSAGE_UPDATENOTIFICATION_H
00239