]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOSQLiteTreeHandler.h
Actually set the bool in Setters
[creaImageIO.git] / src2 / creaImageIOSQLiteTreeHandler.h
index 1284e169edd14fc17e138f64c74b973107533ef3..0b102b584f4f66a71fc66d93e41375c450dd28ab 100644 (file)
@@ -55,6 +55,10 @@ namespace creaImageIO
     virtual bool Create(bool writable = false);
     /// Destroys the 'source'
     virtual bool Destroy();
+       /// Begins a transaction
+       virtual void BeginTransaction();
+       ///Commits results and ends transaction
+       virtual void EndTransaction();
     //====================================================================
 
 
@@ -124,6 +128,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);
  
     //====================================================================
     
@@ -256,7 +265,7 @@ namespace creaImageIO
     std::string mFileName;
     /// Is the DB writable ?
     bool mWritable;
-    void SetWritable(bool w) { mWritable; }
+    void SetWritable(bool w) { mWritable = w; }
     bool GetWritable() const { return mWritable; }
        bool mIsAdding;