X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOSQLiteTreeHandler.h;h=e5c001edd0ecd02e2aa760cf42d02a20b6c24362;hb=bf3660569b1baa8be10fc708f595efc66afe3334;hp=1172298500f114096ee6195b71b0687251853084;hpb=effdfb42412ad29eb0e9bc5619b2264bb2e282ef;p=creaImageIO.git diff --git a/src/creaImageIOSQLiteTreeHandler.h b/src/creaImageIOSQLiteTreeHandler.h index 1172298..e5c001e 100644 --- a/src/creaImageIOSQLiteTreeHandler.h +++ b/src/creaImageIOSQLiteTreeHandler.h @@ -2,6 +2,7 @@ #define __creaImageIOSQLiteTreeHandler_h_INCLUDED__ #include +#include 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 &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 &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