]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOGimmick.h
new Output format and structure for Gimmick. Based on creaImageIO Output document...
[creaImageIO.git] / src / creaImageIOGimmick.h
index 017d153ce92e0f8f6f1705c6f65ea85843ac7501..49dfae4f871b970e8e476ad2b27c21ea8ee0c286 100644 (file)
@@ -8,6 +8,7 @@
 
 
 
+
 #ifdef _DEBUG
 #include <crtdbg.h>
 #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<std::string> inside;
+               // attributes not available in this databse
+               std::vector<std::string> outside;
+               //
+               bool mult;
+       }OutputAttr;
+
   class CREAIMAGEIO_EXPORT Gimmick
   {
   public:
@@ -181,14 +198,16 @@ namespace creaImageIO
          const std::vector<std::string>& params, 
          std::vector<std::string>& results);
   
-    /// 
+       /// get Values for given attributes
+       void GetAttributes(const std::string filename, std::map<std::string, std::string> &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<std::string> i_attr, OutputAttr &infos);
     //=============================================
   private:
        SQLiteTreeHandler* mLocalDatabase;