#include <database_loader.h>
Public Member Functions | |
bool | connect () override |
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. More... | |
bool | isConnected () override |
Returns whether the database is connected. More... | |
std::string | messageType (const std::string &, const std::string &) override |
Return the ROS Message type of a given collection. More... | |
bool | setParams (const std::string &, unsigned, float) override |
Set database connection params. More... | |
bool | setTimeout (float) override |
Set database connection params. More... | |
Public Member Functions inherited from warehouse_ros::DatabaseConnection | |
template<class M > | |
MessageCollection< M > | openCollection (const std::string &db_name, const std::string &collection_name) |
Open a collection on the DB. The collection is created if it doesn't exist. A DbClientConnection exception will be thrown if the database is not connected. More... | |
template<class M > | |
MessageCollection< M >::Ptr | openCollectionPtr (const std::string &db_name, const std::string &collection_name) |
Open a collection on the DB. The collection is created if it doesn't exist. A DbClientConnection exception will be thrown if the database is not connected. More... | |
virtual | ~DatabaseConnection () |
Protected Member Functions | |
MessageCollectionHelper::Ptr | openCollectionHelper (const std::string &db_name, const std::string &collection_name) override |
Additional Inherited Members | |
Public Types inherited from warehouse_ros::DatabaseConnection | |
typedef boost::shared_ptr< DatabaseConnection > | Ptr |
Definition at line 46 of file database_loader.h.
|
inlineoverridevirtual |
Setup the database connection. This call assumes setParams() has been previously called. Returns true if the connection was succesfully established.
Implements warehouse_ros::DatabaseConnection.
Definition at line 57 of file database_loader.h.
|
inlineoverridevirtual |
Drop a db and all its collections. A DbClientConnection exception will be thrown if the database is not connected.
Implements warehouse_ros::DatabaseConnection.
Definition at line 65 of file database_loader.h.
|
inlineoverridevirtual |
Returns whether the database is connected.
Implements warehouse_ros::DatabaseConnection.
Definition at line 61 of file database_loader.h.
|
inlineoverridevirtual |
Return the ROS Message type of a given collection.
Implements warehouse_ros::DatabaseConnection.
Definition at line 69 of file database_loader.h.
|
overrideprotectedvirtual |
Implements warehouse_ros::DatabaseConnection.
Definition at line 123 of file database_loader.cpp.
|
inlineoverridevirtual |
Set database connection params.
Implements warehouse_ros::DatabaseConnection.
Definition at line 49 of file database_loader.h.
|
inlineoverridevirtual |
Set database connection params.
Implements warehouse_ros::DatabaseConnection.
Definition at line 53 of file database_loader.h.