kdb::tools::Backend(3elektra) | Elektra | kdb::tools::Backend(3elektra) |
NAME¶
kdb::tools::Backend - A representation of the backend (= set of plugins) that can be mounted.
SYNOPSIS¶
#include <backend.hpp>
Public Member Functions¶
Backend ()
Creates a new backend with a given name and mountpoint. void
setMountpoint (Key mountpoint, KeySet mountConf)
Sets the mountpoint for the backend. void setBackendConfig
(KeySet const &ks)
Backend Config to add to. void addPlugin
(std::string name, KeySet pluginConf=KeySet())
Add a plugin that can be loaded, meets all constraints. void
useConfigFile (std::string file)
bool validated () const
void serialize (kdb::KeySet &ret)
Detailed Description¶
A representation of the backend (= set of plugins) that can be mounted.
Constructor & Destructor Documentation¶
kdb::tools::Backend::Backend ()¶
Creates a new backend with a given name and mountpoint. Parameters are needed for serialisation only, so you can keep them empty if you do not want to serialise.
Member Function Documentation¶
void kdb::tools::Backend::addPlugin (std::string pluginName, KeySet pluginConf = KeySet())¶
Add a plugin that can be loaded, meets all constraints.
Note:
Exceptions:
For validation
See also:
void kdb::tools::Backend::serialize (kdb::KeySet & ret)¶
Precondition:
Only can be done once! (see firstRef in Plugin)
void kdb::tools::Backend::setBackendConfig (KeySet const & ks)¶
Backend Config to add to.
Parameters:
void kdb::tools::Backend::setMountpoint (Key mountpoint, KeySet mountConf)¶
Sets the mountpoint for the backend.
Exceptions:
MountpointAlreadyInUseException
Parameters:
mountConf needs to include the keys below system/elektra/mountpoints
void kdb::tools::Backend::useConfigFile (std::string file)¶
Precondition:
Exceptions:
bool kdb::tools::Backend::validated () const¶
Returns:
false if more plugins are needed to be valided
Author¶
Generated automatically by Doxygen for Elektra from the source code.
Sun May 29 2016 | Version 0.8.14 |