Represents a query to the db. More...
#include <metadata.h>

Public Member Functions | |
| template<class T > | |
| Query & | append (const std::string &name, const T &val) |
| template<class T , class S > | |
| Query & | append (const std::string &name, const T &rel, const S &val) |
| Query () | |
| Query (const Query &other) | |
| template<class T > | |
| Query (const std::string &name, const T &val) | |
| template<class T , class S > | |
| Query (const std::string &name, const S &rel, const T &val) | |
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);
Definition at line 107 of file metadata.h.
| mongo_ros::Query::Query | ( | ) | [inline] |
Definition at line 110 of file metadata.h.
| mongo_ros::Query::Query | ( | const Query & | other | ) | [inline] |
Definition at line 113 of file metadata.h.
| mongo_ros::Query::Query | ( | const std::string & | name, |
| const T & | val | ||
| ) | [inline] |
Definition at line 118 of file metadata.h.
| mongo_ros::Query::Query | ( | const std::string & | name, |
| const S & | rel, | ||
| const T & | val | ||
| ) | [inline] |
Definition at line 125 of file metadata.h.
| Query& mongo_ros::Query::append | ( | const std::string & | name, |
| const T & | val | ||
| ) | [inline] |
Definition at line 132 of file metadata.h.
| Query& mongo_ros::Query::append | ( | const std::string & | name, |
| const T & | rel, | ||
| const S & | val | ||
| ) | [inline] |
Definition at line 141 of file metadata.h.