]> Creatis software - creaImageIO.git/blob - src2/creaImageIOGimmick.h
c351332ba7725d09bec92c1ed79d2ef733b27474
[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         * \defgroup Controller Controller
10         */
11         /**
12         * \defgroup View View
13         */
14         /**
15         * \defgroup Model Model
16         */
17
18         /**
19         * \ingroup Controller
20         */
21
22   //=======================================================================
23   /// Central controler of the gimmick application
24   class Gimmick
25   {
26   public:
27     /// Ctor
28     Gimmick();
29     /// Dtor
30     ~Gimmick();
31     
32     /// Initialize (read/creates databases, etc.)
33     bool Initialize();
34     
35     /// Finalize (closes databases, etc.)
36     bool Finalize();
37
38
39     /// Sets debug mode
40     void SetDebugMode(bool );
41
42     const std::string& GetHomeDirectory();
43     const std::string& GetUserSettingsDirectory();
44     bool CreateUserSettingsDirectory();
45     const std::string& GetLocalDatabasePath();
46
47   private:
48     SQLiteTreeHandler* mLocalDatabase;
49  
50     std::string mCurrentDirectory;
51     std::string mHomeDirectory;
52     std::string mUserSettingsDirectory;
53     std::string mLocalDatabasePath;
54     
55   };
56   // EO class Gimmick
57   //=======================================================================
58
59
60 } // EO namespace creaImageIO
61
62 // EOF
63 #endif  
64
65