Class MongoQuery

Inheritance Relationships

Base Types

  • public warehouse_ros_mongo::WrappedBSON (Class WrappedBSON)

  • public warehouse_ros::Query

Class Documentation

class warehouse_ros_mongo::MongoQuery : public warehouse_ros_mongo::WrappedBSON, public warehouse_ros::Query

Represents a query to the db.

Usage: Query q(“foo”, 42); Query q2(“bar”, LT, 24); // bar less than 24 Templated so you can have different types of values

Or: q = Query().append(“foo”, 42).append(“bar”, LT, 24);

Public Functions

inline MongoQuery()
inline MongoQuery(const MongoQuery &other)
inline MongoQuery(const BSONObj &other)
inline void append(const std::string &name, const std::string &val)
inline void append(const std::string &name, const double val)
inline void append(const std::string &name, const int val)
inline void append(const std::string &name, const bool val)
inline void appendLT(const std::string &name, const double val)
inline void appendLT(const std::string &name, const int val)
inline void appendLTE(const std::string &name, const double val)
inline void appendLTE(const std::string &name, const int val)
inline void appendGT(const std::string &name, const double val)
inline void appendGT(const std::string &name, const int val)
inline void appendGTE(const std::string &name, const double val)
inline void appendGTE(const std::string &name, const int val)
inline void appendRange(const std::string &name, const double lower, const double upper)
inline void appendRange(const std::string &name, const int lower, const int upper)
inline void appendRangeInclusive(const std::string &name, const double lower, const double upper)
inline void appendRangeInclusive(const std::string &name, const int lower, const int upper)