1 #ifndef __creaImageIOGimmick_h_INCLUDED__
2 #define __creaImageIOGimmick_h_INCLUDED__
4 #include <creaImageIOSQLiteTreeHandler.h>
9 * \defgroup Controller Controller
15 * \defgroup Model Model
22 //=======================================================================
23 /// Central controler of the gimmick application
32 /// Initialize (read/creates databases, etc.)
35 /// Finalize (closes databases, etc.)
38 /// Sets level for messages "Gimmick!"
39 void SetMessageLevel(int level);
40 /// Sets level for debug messages "Gimmick! DEBUG"
41 void SetDebugMessageLevel(int level);
43 /// Add a file to the local database
44 void AddFileToLocalDatabase(const std::string&);
45 /// Add a dir to the local database
46 void AddDirToLocalDatabase(const std::string&, bool recurse);
49 void PrintLocalDatabase();
52 SQLiteTreeHandler* GetLocalDatabase() { return mLocalDatabase; }
54 const SQLiteTreeHandler* GetLocalDatabase() const { return mLocalDatabase; }
57 const std::string& GetHomeDirectory();
58 const std::string& GetUserSettingsDirectory();
59 void CreateUserSettingsDirectory();
60 const std::string& GetLocalDatabasePath();
63 SQLiteTreeHandler* mLocalDatabase;
65 std::string mCurrentDirectory;
66 std::string mHomeDirectory;
67 std::string mUserSettingsDirectory;
68 std::string mLocalDatabasePath;
72 //=======================================================================
75 } // EO namespace creaImageIO