Provides a merging wrapper around a KDB instance.
More...
#include <mergingkdb.hpp>
Provides a merging wrapper around a KDB instance.
The wrapper allows to pass a three way merger instance that is used to resolve conflicts during KDB set.
int kdb::tools::merging::MergingKDB::get |
( |
KeySet & |
returned, |
|
|
std::string const & |
keyname |
|
) |
| |
|
overridevirtual |
Behaves like the KDB get function.
- See also
- KDB
Reimplemented from kdb::KDB.
int kdb::tools::merging::MergingKDB::get |
( |
KeySet & |
returned, |
|
|
Key & |
parentKey |
|
) |
| |
|
overridevirtual |
Behaves like the KDB get function.
- See also
- KDB
Reimplemented from kdb::KDB.
int kdb::tools::merging::MergingKDB::synchronize |
( |
KeySet & |
returned, |
|
|
std::string const & |
keyname, |
|
|
ThreeWayMerge & |
merger |
|
) |
| |
|
virtual |
Synchronizes the file with the supplied KeySet.
If a conflict occurs during set, the supplied merger is used to resolve the conflict. If the conflict cannot be solved, an exception is thrown. If the KeySet was successfully written (either by merging or due the absence of a conflict) the supplied KeySet is updated with the new content of the file.
- See also
- KDB
- Exceptions
-
int kdb::tools::merging::MergingKDB::synchronize |
( |
KeySet & |
returned, |
|
|
Key & |
parentKey, |
|
|
ThreeWayMerge & |
merger |
|
) |
| |
|
virtual |
If a conflict occurs during set, the supplied merger is used to resolve the conflict.
If the conflict cannot be solved, an exception is thrown. If the KeySet was successfully written (either by merging or due the absence of a conflict) the supplied KeySet is updated with the new content of the file.
- See also
- KDB
- Exceptions
-
The documentation for this class was generated from the following files: