Class MongoDatabaseConnection

Inheritance Relationships

Base Type

  • public warehouse_ros::DatabaseConnection

Class Documentation

class MongoDatabaseConnection : public warehouse_ros::DatabaseConnection

Public Functions

MongoDatabaseConnection()
bool setParams(const std::string &host, unsigned port, float timeout)
bool setTimeout(float timeout)
bool connect()
bool isConnected()
void dropDatabase(const std::string &db_name)
std::string messageType(const std::string &db_name, const std::string &collection_name)

Protected Functions

MessageCollectionHelper::Ptr openCollectionHelper(const std::string &db_name, const std::string &collection_name)

Protected Attributes

std::shared_ptr<mongo::DBClientConnection> conn_
std::string host_
unsigned port_
float timeout_