X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOSQLiteTreeHandler.h;h=1284e169edd14fc17e138f64c74b973107533ef3;hb=48959b03ebd4e0d100f468f6c05c873f70b43516;hp=0f45f7093503360e45ff9d0300c6b9dc79019e9e;hpb=66f2d68a504d06b45b4047bd7a445c11889b9fc0;p=creaImageIO.git diff --git a/src2/creaImageIOSQLiteTreeHandler.h b/src2/creaImageIOSQLiteTreeHandler.h index 0f45f70..1284e16 100644 --- a/src2/creaImageIOSQLiteTreeHandler.h +++ b/src2/creaImageIOSQLiteTreeHandler.h @@ -94,7 +94,13 @@ namespace creaImageIO // WITHOUT altering the source, e.g. the database virtual void UnLoad(tree::Node* n); ///==================================================================== - + + //==================================================================== + /// Returns the top level node id for the given search param and search value + virtual void GetTopLevelNodeId(const std::string& searchParam, + const std::string& searchValue, + std::string& parent_id); + ///==================================================================== //==================================================================== // WRITE METHODS : WORK ONLY IN WRITE MODE @@ -193,9 +199,15 @@ namespace creaImageIO void DBDelete(std::string levelDescriptor, std::string key, std::string value); //====================================================================== + //====================================================================== /// Recursively Removes the nodes whose parent is given as a parameter void DBRecursiveRemoveNode(tree::Node* node); + /// Recursively Removes the nodes found in the given level with the given parent id + void DBRecursiveRemoveNode(int level, std::string parentId); + + //====================================================================== + /* /// int DBQueryNumberOfChildren(tree::Node* n);