X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOSQLiteTreeHandler.h;h=fc2f9aca794541e22040fd1526b9821b141c5158;hb=1d55c1cf210e95a6dc12fb8af67b2d21e48fb408;hp=1172298500f114096ee6195b71b0687251853084;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOSQLiteTreeHandler.h b/src/creaImageIOSQLiteTreeHandler.h index 1172298..fc2f9ac 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 @@ -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); };