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