Go to the documentation of this file.
   39 #ifndef WAREHOUSE_ROS_DATABASE_CONNECTION_H 
   40 #define WAREHOUSE_ROS_DATABASE_CONNECTION_H 
   54   virtual bool setParams(
const std::string& host, 
unsigned port, 
float timeout = 60.0) = 0;
 
   68   virtual void dropDatabase(
const std::string& db_name) = 0;
 
   71   virtual std::string 
messageType(
const std::string& db_name, 
const std::string& collection_name) = 0;
 
   87                                                             const std::string& collection_name) = 0;
 
   94 #endif  // include guard 
  
virtual void dropDatabase(const std::string &db_name)=0
Drop a db and all its collections. A DbClientConnection exception will be thrown if the database is n...
 
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 exce...
 
virtual bool setTimeout(float timeout)=0
Set database connection params.
 
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 exce...
 
virtual bool setParams(const std::string &host, unsigned port, float timeout=60.0)=0
Set database connection params.
 
virtual bool isConnected()=0
Returns whether the database is connected.
 
virtual std::string messageType(const std::string &db_name, const std::string &collection_name)=0
Return the ROS Message type of a given collection.
 
boost::shared_ptr< DatabaseConnection > Ptr
 
virtual ~DatabaseConnection()
 
virtual MessageCollectionHelper::Ptr openCollectionHelper(const std::string &db_name, const std::string &collection_name)=0
 
warehouse_ros
Author(s): Bhaskara Marthi 
, Connor Brew 
autogenerated on Wed Oct 16 2024 02:42:07