Public Member Functions | List of all members
warehouse_ros_mongo::MongoQuery Class Reference

Represents a query to the db. More...

#include <metadata.h>

Inheritance diagram for warehouse_ros_mongo::MongoQuery:
Inheritance graph
[legend]

Public Member Functions

void append (const std::string &name, const std::string &val)
 
void append (const std::string &name, const double val)
 
void append (const std::string &name, const int val)
 
void append (const std::string &name, const bool val)
 
void appendGT (const std::string &name, const double val)
 
void appendGT (const std::string &name, const int val)
 
void appendGTE (const std::string &name, const double val)
 
void appendGTE (const std::string &name, const int val)
 
void appendLT (const std::string &name, const double val)
 
void appendLT (const std::string &name, const int val)
 
void appendLTE (const std::string &name, const double val)
 
void appendLTE (const std::string &name, const int val)
 
void appendRange (const std::string &name, const double lower, const double upper)
 
void appendRange (const std::string &name, const int lower, const int upper)
 
void appendRangeInclusive (const std::string &name, const double lower, const double upper)
 
void appendRangeInclusive (const std::string &name, const int lower, const int upper)
 
 MongoQuery ()
 
 MongoQuery (const MongoQuery &other)
 
 MongoQuery (const BSONObj &other)
 
- Public Member Functions inherited from warehouse_ros_mongo::WrappedBSON
 WrappedBSON ()
 
 WrappedBSON (const WrappedBSON &other)
 
 WrappedBSON (const BSONObj &other)
 
 WrappedBSON (const std::string &json)
 
- Public Member Functions inherited from warehouse_ros::Query
void append (const std::string &name, const char *val)
 
virtual ~Query ()
 

Additional Inherited Members

- Public Types inherited from warehouse_ros::Query
typedef boost::shared_ptr< const QueryConstPtr
 
typedef boost::shared_ptr< QueryPtr
 
- Protected Member Functions inherited from warehouse_ros_mongo::WrappedBSON
void update ()
 
- Protected Attributes inherited from warehouse_ros_mongo::WrappedBSON
std::shared_ptr< BSONObjBuilder > builder_
 

Detailed Description

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 105 of file metadata.h.

Constructor & Destructor Documentation

◆ MongoQuery() [1/3]

warehouse_ros_mongo::MongoQuery::MongoQuery ( )
inline

Definition at line 108 of file metadata.h.

◆ MongoQuery() [2/3]

warehouse_ros_mongo::MongoQuery::MongoQuery ( const MongoQuery other)
inline

Definition at line 112 of file metadata.h.

◆ MongoQuery() [3/3]

warehouse_ros_mongo::MongoQuery::MongoQuery ( const BSONObj &  other)
inline

Definition at line 116 of file metadata.h.

Member Function Documentation

◆ append() [1/4]

void warehouse_ros_mongo::MongoQuery::append ( const std::string &  name,
const std::string &  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 120 of file metadata.h.

◆ append() [2/4]

void warehouse_ros_mongo::MongoQuery::append ( const std::string &  name,
const double  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 126 of file metadata.h.

◆ append() [3/4]

void warehouse_ros_mongo::MongoQuery::append ( const std::string &  name,
const int  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 132 of file metadata.h.

◆ append() [4/4]

void warehouse_ros_mongo::MongoQuery::append ( const std::string &  name,
const bool  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 138 of file metadata.h.

◆ appendGT() [1/2]

void warehouse_ros_mongo::MongoQuery::appendGT ( const std::string &  name,
const double  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 168 of file metadata.h.

◆ appendGT() [2/2]

void warehouse_ros_mongo::MongoQuery::appendGT ( const std::string &  name,
const int  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 174 of file metadata.h.

◆ appendGTE() [1/2]

void warehouse_ros_mongo::MongoQuery::appendGTE ( const std::string &  name,
const double  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 180 of file metadata.h.

◆ appendGTE() [2/2]

void warehouse_ros_mongo::MongoQuery::appendGTE ( const std::string &  name,
const int  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 186 of file metadata.h.

◆ appendLT() [1/2]

void warehouse_ros_mongo::MongoQuery::appendLT ( const std::string &  name,
const double  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 144 of file metadata.h.

◆ appendLT() [2/2]

void warehouse_ros_mongo::MongoQuery::appendLT ( const std::string &  name,
const int  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 150 of file metadata.h.

◆ appendLTE() [1/2]

void warehouse_ros_mongo::MongoQuery::appendLTE ( const std::string &  name,
const double  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 156 of file metadata.h.

◆ appendLTE() [2/2]

void warehouse_ros_mongo::MongoQuery::appendLTE ( const std::string &  name,
const int  val 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 162 of file metadata.h.

◆ appendRange() [1/2]

void warehouse_ros_mongo::MongoQuery::appendRange ( const std::string &  name,
const double  lower,
const double  upper 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 192 of file metadata.h.

◆ appendRange() [2/2]

void warehouse_ros_mongo::MongoQuery::appendRange ( const std::string &  name,
const int  lower,
const int  upper 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 198 of file metadata.h.

◆ appendRangeInclusive() [1/2]

void warehouse_ros_mongo::MongoQuery::appendRangeInclusive ( const std::string &  name,
const double  lower,
const double  upper 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 204 of file metadata.h.

◆ appendRangeInclusive() [2/2]

void warehouse_ros_mongo::MongoQuery::appendRangeInclusive ( const std::string &  name,
const int  lower,
const int  upper 
)
inlinevirtual

Implements warehouse_ros::Query.

Definition at line 210 of file metadata.h.


The documentation for this class was generated from the following file:


warehouse_ros_mongo
Author(s): Bhaskara Marthi , Connor Brew
autogenerated on Sat Apr 2 2022 02:29:13