Elektra
0.9.3
|
A low-level representation of the backend (= set of plugins) that can be mounted. More...
#include <backend.hpp>
Public Member Functions | |
Backend () | |
Creates a new empty backend. | |
void | setMountpoint (Key mountpoint, KeySet mountConf) |
Sets the mountpoint for the backend. More... | |
void | setBackendConfig (KeySet const &ks) |
Backend Config to add to. More... | |
void | addPlugin (PluginSpec const &spec) |
Add a plugin that can be loaded, meets all constraints. More... | |
void | useConfigFile (std::string file) |
bool | validated () const |
void | serialize (kdb::KeySet &ret) |
A low-level representation of the backend (= set of plugins) that can be mounted.
To build a backend, you should prefer BackendBuilder, which automatically fixes ordering and allows us to remove plugins.
|
virtual |
Add a plugin that can be loaded, meets all constraints.
PluginCheckException | or its subclasses if it was not possible to load the plugin |
For validation
Implements kdb::tools::BackendInterface.
|
virtual |
Only can be done once! (see firstRef in Plugin)
Implements kdb::tools::SerializeInterface.
|
virtual |
Backend Config to add to.
ks | the config to add, should be below system/ |
Implements kdb::tools::MountBackendInterface.
Sets the mountpoint for the backend.
MountpointInvalidException | |
MountpointAlreadyInUseException |
mountpoint | the key name will be used as mountpoint. It is allowed to pass a key with a KEY_CASCADING_NAME |
mountConf | needs to include the keys below system/elektra/mountpoints |
Implements kdb::tools::MountBackendInterface.
|
virtual |
FileNotValidException | if filename is not valid |
MissingSymbol | if plugin does not implement 'checkfile' |
Implements kdb::tools::MountBackendInterface.
|
virtual |
Implements kdb::tools::MountBackendInterface.