]> Creatis software - creaImageIO.git/blob - src2/creaImageIOGimmick.h
Starting version 2
[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
27     const std::string& GetHomeDirectory();
28     const std::string& GetUserSettingsDirectory();
29     bool CreateUserSettingsDirectory();
30     const std::string& GetLocalDatabasePath();
31
32   private:
33     SQLiteTreeHandler* mLocalDatabase;
34  
35     std::string mCurrentDirectory;
36     std::string mHomeDirectory;
37     std::string mUserSettingsDirectory;
38     std::string mLocalDatabasePath;
39     
40   };
41   // EO class Gimmick
42   //=======================================================================
43
44
45 } // EO namespace creaImageIO
46
47 // EOF
48 #endif  
49
50