table of contents
kdb::tools::Backends(3elektra) | Elektra | kdb::tools::Backends(3elektra) |
NAME¶
kdb::tools::Backends - Allows one to list backends.
SYNOPSIS¶
#include <backends.hpp>
Static Public Member Functions¶
static BackendInfoVector getBackendInfo (KeySet
mountConf)
give info about current mounted backends static BackendInfo
findBackend (std::string const &backend, KeySet mountConf,
bool verbose=false)
Find a backend in the given name. static bool umount
(std::string const &backend, KeySet &mountConf)
Unmount a backend by given mountPath. static std::string
getBasePath (std::string name)
returns the base path of a mounted backend below system/elektra/mountpoints
Static Public Attributes¶
static const char * mountpointsPath =
'system/elektra/mountpoints'
Below this path is the mountConf.
Detailed Description¶
Allows one to list backends.
Member Function Documentation¶
BackendInfo kdb::tools::Backends::findBackend (std::string const & mountPath, KeySet mountConf, bool verbose = false) [static]¶
Find a backend in the given name.
Parameters:
For backwards compatibility old-style names containing _ instead of escaped / are accepted if no modern-style mountpoint is found.
Parameters:
Returns:
Backends::BackendInfoVector kdb::tools::Backends::getBackendInfo (KeySet mountConf) [static]¶
give info about current mounted backends
Parameters:
Returns:
std::string kdb::tools::Backends::getBasePath (std::string mp) [static]¶
returns the base path of a mounted backend below system/elektra/mountpoints
Parameters:
Returns:
bool kdb::tools::Backends::umount (std::string const & mountPath, KeySet & mountConf) [static]¶
Unmount a backend by given mountPath.
Parameters:
Uses findBackend() to locate the backend.
Return values:
false if nothing was done (but also no error)
Author¶
Generated automatically by Doxygen for Elektra from the source code.
Sun May 29 2016 | Version 0.8.14 |