]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTimestampDatabaseHandler.cpp
Remove dependencies of WxWidget from Model and Controller class.
[creaImageIO.git] / src2 / creaImageIOTimestampDatabaseHandler.cpp
index 755678564966bb00b78299a9286f17fa3e3c681e..a0a522b019eecc644a1c325b389928bf1cad3a63 100644 (file)
@@ -7,13 +7,6 @@
 
 #include <deque>
 
-#include "wx/wx.h"
-#include <wx/dir.h>
-#include <wx/filename.h>
-
-#include <creaWx.h>
-using namespace crea;
-
 #include <boost/filesystem.hpp>
 #include <boost/algorithm/string/replace.hpp>
 
@@ -427,4 +420,16 @@ namespace creaImageIO
          return false;  
   }
 
-}// namespace creaImageIO
\ No newline at end of file
+  //=====================================================================
+  void TimestampDatabaseHandler::RemoveEntries(const std::string i_table, 
+               const std::string i_attribute, 
+               const std::string i_operand, 
+               const std::string i_val)
+    {
+        std::stringstream query;
+               query<<"DELETE  FROM "<<i_table<<" WHERE "<<i_attribute<<" "<<i_operand<<" '"<<i_val<<"'";
+        UPDATETIMESTAMPDB(query.str());
+       }
+
+}// namespace creaImageIO
+