39 #ifndef WAREHOUSE_ROS_MONGO_QUERY_RESULTS_H 40 #define WAREHOUSE_ROS_MONGO_QUERY_RESULTS_H 43 #include <mongo/client/dbclientcursor.h> 45 #include <boost/optional.hpp> 50 typedef std::unique_ptr<mongo::DBClientCursor>
CursorPtr;
55 MongoResultIterator(
const std::shared_ptr<mongo::DBClientConnection>& conn, std::shared_ptr<mongo::GridFS> gfs,
56 const std::string& ns,
const mongo::Query& query);
65 boost::optional<mongo::BSONObj>
next_;
66 std::shared_ptr<mongo::GridFS>
gfs_;
71 #endif // include guard std::unique_ptr< mongo::DBClientCursor > CursorPtr
std::shared_ptr< mongo::GridFS > gfs_
warehouse_ros::Metadata::ConstPtr metadata() const
MongoResultIterator(const std::shared_ptr< mongo::DBClientConnection > &conn, std::shared_ptr< mongo::GridFS > gfs, const std::string &ns, const mongo::Query &query)
mongo::BSONObj metadataRaw() const
std::string message() const
boost::optional< mongo::BSONObj > next_