]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOSQLiteTreeHandler.h
correction of minor bugs: quotes and last slice in first place
[creaImageIO.git] / src / creaImageIOSQLiteTreeHandler.h
index 1172298500f114096ee6195b71b0687251853084..fc2f9aca794541e22040fd1526b9821b141c5158 100644 (file)
@@ -2,6 +2,7 @@
 #define __creaImageIOSQLiteTreeHandler_h_INCLUDED__
 
 #include <creaImageIOTreeHandler.h>
+#include <creaImageIOTree.h>
 
 class CppSQLite3DB;
 
@@ -135,9 +136,15 @@ namespace creaImageIO
                const std::string i_val);
  
     //====================================================================
-    
+    /// get all attributes from database for a given file
+       void getAllAttributes(std::string i_filename, std::map<std::string, std::string> &i_results);
+       
+       /// get selected attributes from database for a given file
+       void GetAttributes(std::string name, std::string i_id, std::string i_value, tree::LevelDescriptor::AttributeDescriptorListType i_attr, std::vector<std::string> &i_results);
+       
+       /// get Id for the up level node
+       void GetUpLevelNodeId(int level, const std::string& searchParam, const std::string& searchValue, std::string& parent_id);
 
-    
   protected:
     //======================================================================
     /// Open the database
@@ -228,6 +235,7 @@ namespace creaImageIO
     void SetWritable(bool w) { mWritable = w; }
     bool GetWritable() const { return mWritable; }
        bool mIsAdding;
+       const std::string convert(const std::string &i_word);
 
    
   };