+
#ifdef _DEBUG
#include <crtdbg.h>
#define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
//=======================================================================
/// 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:
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;