00001
00002 #ifndef WAREHOUSE_MESSAGE_ORDERINGCRITERION_H
00003 #define WAREHOUSE_MESSAGE_ORDERINGCRITERION_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 OrderingCriterion_ : public ros::Message
00018 {
00019 typedef OrderingCriterion_<ContainerAllocator> Type;
00020
00021 OrderingCriterion_()
00022 : field()
00023 , reverse(false)
00024 {
00025 }
00026
00027 OrderingCriterion_(const ContainerAllocator& _alloc)
00028 : field(_alloc)
00029 , reverse(false)
00030 {
00031 }
00032
00033 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _field_type;
00034 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > field;
00035
00036 typedef uint8_t _reverse_type;
00037 uint8_t reverse;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "warehouse/OrderingCriterion"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "b1164c823cb6d86127357198543929de"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "# Represents an ordering criterion to use in a query result set\n\
00056 \n\
00057 # Name of the (nested) field to order by, e.g., \"position.x\"\n\
00058 # Can also be \"_creation_time\"\n\
00059 string field\n\
00060 \n\
00061 # If true, we'll use descending rather than ascending order\n\
00062 bool reverse\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, field);
00073 ros::serialization::serialize(stream, reverse);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00078 {
00079 ros::serialization::IStream stream(read_ptr, 1000000000);
00080 ros::serialization::deserialize(stream, field);
00081 ros::serialization::deserialize(stream, reverse);
00082 return stream.getData();
00083 }
00084
00085 ROS_DEPRECATED virtual uint32_t serializationLength() const
00086 {
00087 uint32_t size = 0;
00088 size += ros::serialization::serializationLength(field);
00089 size += ros::serialization::serializationLength(reverse);
00090 return size;
00091 }
00092
00093 typedef boost::shared_ptr< ::warehouse::OrderingCriterion_<ContainerAllocator> > Ptr;
00094 typedef boost::shared_ptr< ::warehouse::OrderingCriterion_<ContainerAllocator> const> ConstPtr;
00095 };
00096 typedef ::warehouse::OrderingCriterion_<std::allocator<void> > OrderingCriterion;
00097
00098 typedef boost::shared_ptr< ::warehouse::OrderingCriterion> OrderingCriterionPtr;
00099 typedef boost::shared_ptr< ::warehouse::OrderingCriterion const> OrderingCriterionConstPtr;
00100
00101
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::warehouse::OrderingCriterion_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::warehouse::OrderingCriterion_<ContainerAllocator> >::stream(s, "", v);
00106 return s;}
00107
00108 }
00109
00110 namespace ros
00111 {
00112 namespace message_traits
00113 {
00114 template<class ContainerAllocator>
00115 struct MD5Sum< ::warehouse::OrderingCriterion_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "b1164c823cb6d86127357198543929de";
00119 }
00120
00121 static const char* value(const ::warehouse::OrderingCriterion_<ContainerAllocator> &) { return value(); }
00122 static const uint64_t static_value1 = 0xb1164c823cb6d861ULL;
00123 static const uint64_t static_value2 = 0x27357198543929deULL;
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct DataType< ::warehouse::OrderingCriterion_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "warehouse/OrderingCriterion";
00131 }
00132
00133 static const char* value(const ::warehouse::OrderingCriterion_<ContainerAllocator> &) { return value(); }
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct Definition< ::warehouse::OrderingCriterion_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "# Represents an ordering criterion to use in a query result set\n\
00141 \n\
00142 # Name of the (nested) field to order by, e.g., \"position.x\"\n\
00143 # Can also be \"_creation_time\"\n\
00144 string field\n\
00145 \n\
00146 # If true, we'll use descending rather than ascending order\n\
00147 bool reverse\n\
00148 ";
00149 }
00150
00151 static const char* value(const ::warehouse::OrderingCriterion_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 }
00155 }
00156
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161
00162 template<class ContainerAllocator> struct Serializer< ::warehouse::OrderingCriterion_<ContainerAllocator> >
00163 {
00164 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165 {
00166 stream.next(m.field);
00167 stream.next(m.reverse);
00168 }
00169
00170 ROS_DECLARE_ALLINONE_SERIALIZER;
00171 };
00172 }
00173 }
00174
00175 namespace ros
00176 {
00177 namespace message_operations
00178 {
00179
00180 template<class ContainerAllocator>
00181 struct Printer< ::warehouse::OrderingCriterion_<ContainerAllocator> >
00182 {
00183 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::warehouse::OrderingCriterion_<ContainerAllocator> & v)
00184 {
00185 s << indent << "field: ";
00186 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.field);
00187 s << indent << "reverse: ";
00188 Printer<uint8_t>::stream(s, indent + " ", v.reverse);
00189 }
00190 };
00191
00192
00193 }
00194 }
00195
00196 #endif // WAREHOUSE_MESSAGE_ORDERINGCRITERION_H
00197