Fawkes API Fawkes Development Version
|
Interface for a MongoDB connection creator. More...
#include <>>
Public Member Functions | |
virtual mongocxx::client * | create_client (const std::string &config_name="")=0 |
Create a new MongoDB client. More... | |
virtual void | delete_client (mongocxx::client *client)=0 |
Delete a client. More... | |
Interface for a MongoDB connection creator.
Definition at line 37 of file mongodb_conncreator.h.
|
pure virtual |
Create a new MongoDB client.
config_name | MongoDB client configuration name for the desired connection. May be empty in which case the default configuration is used. |
thrown | if the initialization fails or the configuration for the given name does not exist. |
Implemented in MongoDBThread.
Referenced by EventTriggerManager::EventTriggerManager(), MongoLogBlackboardThread::init(), fawkes::MongoDBAspectIniFin::init(), and fawkes::LookupEstimator::LookupEstimator().
|
pure virtual |
Delete a client.
client | client to delete |
Implemented in MongoDBThread.
Referenced by MongoLogBlackboardThread::finalize(), and fawkes::MongoDBAspectIniFin::finalize().