]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOSQLiteTreeHandler.h
Added create DB.
[creaImageIO.git] / src2 / creaImageIOSQLiteTreeHandler.h
index 0f45f7093503360e45ff9d0300c6b9dc79019e9e..1284e169edd14fc17e138f64c74b973107533ef3 100644 (file)
@@ -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);