Class DBConnectionStub
Defined in File database_loader.h
Inheritance Relationships
Base Type
public warehouse_ros::DatabaseConnection
(Class DatabaseConnection)
Class Documentation
-
class DBConnectionStub : public warehouse_ros::DatabaseConnection
Public Functions
-
inline virtual bool setParams(const std::string&, unsigned, float) override
Set database connection params.
-
inline virtual bool setTimeout(float) override
Set database connection params.
-
inline virtual bool connect() override
Setup the database connection. This call assumes setParams() has been previously called. Returns true if the connection was succesfully established.
-
inline virtual bool isConnected() override
Returns whether the database is connected.
-
inline virtual void dropDatabase(const std::string&) override
Drop a db and all its collections. A DbClientConnection exception will be thrown if the database is not connected.
-
inline virtual std::string messageType(const std::string&, const std::string&) override
Return the ROS Message type of a given collection.
Protected Functions
-
virtual MessageCollectionHelper::Ptr openCollectionHelper(const std::string &db_name, const std::string &collection_name) override
-
inline virtual bool setParams(const std::string&, unsigned, float) override