A representation of the backend (= set of plugins) that can be mounted.
More...
#include <backend.hpp>
A representation of the backend (= set of plugins) that can be mounted.
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.
void kdb::tools::Backend::addPlugin |
( |
std::string |
pluginName, |
|
|
KeySet |
pluginConf = KeySet() |
|
) |
| |
Add a plugin that can be loaded, meets all constraints.
- Note
- that this does not mean that the backend validates after it is added. It only means that the situation is not getting worse.
- Exceptions
-
PluginCheckException | or its subclasses if it was not possible to load the plugin |
For validation
- See Also
- validated().
void kdb::tools::Backend::checkFile |
( |
std::string |
file | ) |
const |
- Precondition
- : resolver needs to be loaded first Will check the filename.
- Exceptions
-
FileNotValidException | if filename is not valid |
- Precondition
- name and mountpoint set Write plugin into keyset ret below rootKey.
void kdb::tools::Backend::setMountpoint |
( |
Key |
mountpoint, |
|
|
KeySet |
mountConf |
|
) |
| |
Sets the mountpoint for the backend.
- Exceptions
-
MountpointInvalidException | |
MountpointAlreadyInUseException | |
- Parameters
-
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 |
bool kdb::tools::Backend::validated |
( |
| ) |
const |
- Returns
- true if backend is validated
-
false if more plugins are needed to be valided
The documentation for this class was generated from the following files: