]> Creatis software - creaImageIO.git/blob - src2/creaImageIOGimmick.h
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOGimmick.h
1 #ifndef __creaImageIOGimmick_h_INCLUDED__
2 #define __creaImageIOGimmick_h_INCLUDED__
3
4 #include <creaImageIOSQLiteTreeHandler.h>
5
6 namespace creaImageIO
7 {
8
9   //=======================================================================
10   /// Central controler of the gimmick application
11   class Gimmick
12   {
13   public:
14     /// Ctor
15     Gimmick();
16     /// Dtor
17     ~Gimmick();
18     
19     /// Initialize (read/creates databases, etc.)
20     bool Initialize();
21     
22     /// Finalize (closes databases, etc.)
23     bool Finalize();
24
25
26     /// Sets debug mode
27     void SetDebugMode(bool );
28
29     const std::string& GetHomeDirectory();
30     const std::string& GetUserSettingsDirectory();
31     bool CreateUserSettingsDirectory();
32     const std::string& GetLocalDatabasePath();
33
34   private:
35     SQLiteTreeHandler* mLocalDatabase;
36  
37     std::string mCurrentDirectory;
38     std::string mHomeDirectory;
39     std::string mUserSettingsDirectory;
40     std::string mLocalDatabasePath;
41     
42   };
43   // EO class Gimmick
44   //=======================================================================
45
46
47 } // EO namespace creaImageIO
48
49 // EOF
50 #endif  
51
52