summaryrefslogtreecommitdiff
path: root/src/nodemanager.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-06-27 11:37:27 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-06-27 11:37:27 +0200
commitd21701afe4230d633ae685ffeee6f5fb5a76f34d (patch)
treed91c68539a01757e1f350e3e53fdf36319ca126e /src/nodemanager.h
parent7198cd81e1db3c92f99a7079e7820a6cdc51c40a (diff)
Check for existing ids in the tree when creating a new node.
Diffstat (limited to 'src/nodemanager.h')
-rw-r--r--src/nodemanager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nodemanager.h b/src/nodemanager.h
index 97d890f..85b7955 100644
--- a/src/nodemanager.h
+++ b/src/nodemanager.h
@@ -45,7 +45,7 @@ public:
void init(std::string filename);
- NodeIdList createNode(nodeid_t parentid, nodeid_t *id, nodeid_t insertbeforeid) throw (std::exception);
+ NodeIdList createNode(nodeid_t parentid, nodeid_t id, nodeid_t insertbeforeid) throw (std::exception);
NodeIdList updateNode(nodeid_t id, const std::string &name,
const std::string &value) throw (std::exception);
NodeIdList removeNode(nodeid_t id) throw (std::exception);
@@ -61,6 +61,7 @@ public:
void flushNodes();
nodeid_t createId();
+ bool hasId(nodeid_t id);
private:
// NodeIdList ancestorList(nodeid_t node);