table of contents
- unstable 0.8.14-5.1
keyhelper.cpp(3elektra) | Elektra | keyhelper.cpp(3elektra) |
NAME¶
keyhelper.cpp - Key helper functions.
SYNOPSIS¶
#include <helper/keyhelper.hpp>
Namespaces¶
kdb
This is the main namespace for the C++ binding and libraries.
kdb::tools
This namespace is for the libtool library.
Functions¶
std::string kdb::tools::helper::rebasePath (const Key
&key, const Key &oldParent, const Key &newParent)
Rebases the relative path of the passed key from the old parent to the new
parent and returns the new path. Key
kdb::tools::helper::rebaseKey (const Key &key, const Key
&oldParent, const Key &newParent)
Rebases the supplied key from the old parent to the new parent.
Detailed Description¶
Key helper functions.
Copyright:
Function Documentation¶
Key kdb::tools::helper::rebaseKey (const Key & key, const Key & oldParent, const Key & newParent)¶
Rebases the supplied key from the old parent to the new parent.
See also:
Parameters:
oldParent the old parent of the key
newParent the new parent of the key
Returns:
Exceptions:
string kdb::tools::helper::rebasePath (const Key & key, const Key & oldParent, const Key & newParent)¶
Rebases the relative path of the passed key from the old parent to the new parent and returns the new path. For example a key /user/example/config/key1 with the oldparent /user/example and the new parent /user/newexample/newpath would result in /user/newexample/newpath/config/key1
If any of the parent keys is a cascading key the namespace of the key to be rebased is assumed instead.
Parameters:
oldParent the old parent of the key
newParent the new parent of the key
Returns:
Exceptions:
Author¶
Generated automatically by Doxygen for Elektra from the source code.
Sun May 29 2016 | Version 0.8.14 |