X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOSQLiteTreeHandler.h;h=e5c001edd0ecd02e2aa760cf42d02a20b6c24362;hb=refs%2Ftags%2FCREATOOLS.2-0-3;hp=1172298500f114096ee6195b71b0687251853084;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;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