X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FcreaImageIOGimmick.h;h=49dfae4f871b970e8e476ad2b27c21ea8ee0c286;hb=a2c6ecf8db79b662d0405ee333da837b242b2c59;hp=017d153ce92e0f8f6f1705c6f65ea85843ac7501;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOGimmick.h b/src/creaImageIOGimmick.h index 017d153..49dfae4 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,16 @@ 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); //============================================= private: SQLiteTreeHandler* mLocalDatabase;