X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOGimmick.h;h=fa39035eb24c698ae57be8e938c20fbd1c63f0d7;hb=d29be141890963fdc3236a28c81cd9dce0e19f69;hp=93d982a99c10a12d940665891ec4c957f1596f35;hpb=66f2d68a504d06b45b4047bd7a445c11889b9fc0;p=creaImageIO.git diff --git a/src2/creaImageIOGimmick.h b/src2/creaImageIOGimmick.h index 93d982a..fa39035 100644 --- a/src2/creaImageIOGimmick.h +++ b/src2/creaImageIOGimmick.h @@ -3,6 +3,7 @@ #include #include +#include #include namespace creaImageIO @@ -96,10 +97,18 @@ namespace creaImageIO /// Prints the tree handled by the handler void Print(const std::string& handler); + + ///create a DB from a given descriptor file and for a specific location + SQLiteTreeHandler *createDB(std::string &i_name, std::string &i_locDesc, std::string &i_locDB); + // add an existent DB + void addDB(std::string &i_nameDB, std::string &i_locationDB); /// Returns the TreeHandler with a given name TreeHandler* GetTreeHandler(const std::string& name) const; + + /// Returns the TimestampDatabase + TimestampDatabaseHandler* GetTimestampDatabase() const; /// SQLiteTreeHandler* GetLocalDatabase() { return mLocalDatabase; } @@ -113,11 +122,13 @@ namespace creaImageIO const std::string& GetUserSettingsDirectory(); void CreateUserSettingsDirectory(); const std::string& GetLocalDatabasePath(); + const std::string& GetTimestampDatabasePath(); //============================================= private: SQLiteTreeHandler* mLocalDatabase; + TimestampDatabaseHandler* mTimestampDatabase; TreeHandlerMapType mTreeHandlerMap; Synchronizer* mSynchronizer; @@ -125,6 +136,7 @@ namespace creaImageIO std::string mHomeDirectory; std::string mUserSettingsDirectory; std::string mLocalDatabasePath; + std::string mTimestampDatabasePath; TreeHandlerImageAdder mImageAdder; };