X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOGimmick.h;h=6c3b1cc6e231754cced691044bd385d7009da19a;hb=0aa00616066c059f5b11bf6355c22c90c22f95f0;hp=dfd176e27e83dde6ae7e2f5b56064a2ee8a7862c;hpb=9f8b288b5f8f56bc58fd01ddcb687833eb5ffa5b;p=creaImageIO.git diff --git a/src2/creaImageIOGimmick.h b/src2/creaImageIOGimmick.h index dfd176e..6c3b1cc 100644 --- a/src2/creaImageIOGimmick.h +++ b/src2/creaImageIOGimmick.h @@ -5,6 +5,7 @@ #include #include #include +#include namespace creaImageIO { @@ -95,9 +96,13 @@ namespace creaImageIO void RemoveFile(const std::string& d, tree::Node* filename); - ///Synchronizes the loaded data with the database. If remove is true the database will be updated, otherwise + /// Copies the files into the local directory + void CopyFiles(const std::vector& filenames, const std::string& d ); + + + ///Synchronizes the loaded data with the database d. If repair is true the database will be updated, otherwise ///only a warning sign will be issued - std::string Synchronize(bool repair, bool checkAttributes); + std::string Synchronize(const std::string& d, bool repair, bool checkAttributes); /// Prints the tree handled by the handler void Print(const std::string& handler); @@ -121,7 +126,8 @@ namespace creaImageIO const SQLiteTreeHandler* GetLocalDatabase() const { return mLocalDatabase; } - + // add DB from Settings file + void addDBSettings(); /// const std::string& GetHomeDirectory(); @@ -143,7 +149,7 @@ namespace creaImageIO std::string mUserSettingsDirectory; std::string mLocalDatabasePath; std::string mTimestampDatabasePath; - + Settings *mSettings; TreeHandlerImageAdder mImageAdder; }; // EO class Gimmick