X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeHandler.h;h=b84d0f9e64b3cfe85e7944587f449704a9371ece;hb=6b60375e24eb65bde68033daa2618d1f95b5d3ed;hp=5a7cecd32f644aa3f9cb1fb47a70b7417b824cb6;hpb=66f2d68a504d06b45b4047bd7a445c11889b9fc0;p=creaImageIO.git diff --git a/src2/creaImageIOTreeHandler.h b/src2/creaImageIOTreeHandler.h index 5a7cecd..b84d0f9 100644 --- a/src2/creaImageIOTreeHandler.h +++ b/src2/creaImageIOTreeHandler.h @@ -64,6 +64,10 @@ namespace creaImageIO virtual bool Create(bool writable = false) { return false; } /// Destroys the 'source' virtual bool Destroy() { return false; } + /// Begins a transaction + virtual void BeginTransaction(){} + ///Commits results and ends transaction + virtual void EndTransaction(){} //==================================================================== @@ -105,6 +109,13 @@ namespace creaImageIO virtual void UnLoad(tree::Node* n) { return; } //==================================================================== + //==================================================================== + /// 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){ return; } + ///==================================================================== + //==================================================================== // WRITE METHODS : WORK ONLY IN WRITE MODE @@ -129,6 +140,11 @@ namespace creaImageIO const std::string& searchVal){} //Deletes the tuple that matches the parameters given virtual void DeleteTuple(std::string levelDescriptor, std::string key, std::string value){} + //Deletes the entries that match the parameters given + virtual void RemoveEntries(const std::string i_table, + const std::string i_attribute, + const std::string i_operand, + const std::string i_val){} //====================================================================