X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOGimmick.h;h=9e0f96636dbeeba28dc80d439aa6d399253fa03d;hb=7a671d12e06db56b25b80194c2fc5a12897d3819;hp=017d153ce92e0f8f6f1705c6f65ea85843ac7501;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOGimmick.h b/src/creaImageIOGimmick.h index 017d153..9e0f966 100644 --- a/src/creaImageIOGimmick.h +++ b/src/creaImageIOGimmick.h @@ -8,6 +8,7 @@ + #ifdef _DEBUG #include #define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__) @@ -69,6 +70,22 @@ namespace creaImageIO //======================================================================= /// Central controler of the gimmick application + + + + /// the selected attributes by end-user + typedef struct + { + // name of database to get attributes + std::string db; + // attributes available in this databse + std::vector inside; + // attributes not available in this databse + std::vector outside; + // + bool mult; + }OutputAttr; + class CREAIMAGEIO_EXPORT Gimmick { public: @@ -181,14 +198,19 @@ namespace creaImageIO const std::vector& params, std::vector& results); - /// + /// get Values for given attributes + void GetAttributes(const std::string filename, std::map &i_res, OutputAttr i_attr); + const std::string& GetHomeDirectory(); const std::string& GetUserSettingsDirectory(); void CreateUserSettingsDirectory(); const std::string& GetLocalDatabasePath(); + /// Decide if attributes are available through database + void fillVectInfos(std::vector i_attr, OutputAttr &infos); - + /// Get Add Opertaion summary + const std::string getSummary(); //============================================= private: SQLiteTreeHandler* mLocalDatabase;