X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeHandlerImageAdder.h;h=fe3c31da644ebe6f28219e1810e23df13c376915;hb=b3ff178d3759a8dbe3d02bcc178d8e22996f98b5;hp=c3024ddea6688426a5f3b0027fb25a4b5acae833;hpb=7ae1412df3d682f639683e751f46a3f07be16d0b;p=creaImageIO.git diff --git a/src2/creaImageIOTreeHandlerImageAdder.h b/src2/creaImageIOTreeHandlerImageAdder.h index c3024dd..fe3c31d 100644 --- a/src2/creaImageIOTreeHandlerImageAdder.h +++ b/src2/creaImageIOTreeHandlerImageAdder.h @@ -37,6 +37,8 @@ namespace creaImageIO void SetTimestampHandler(TimestampDatabaseHandler* tdh) { mTimestampHandler = tdh;} /// Sets the synchronizer void SetSynchronizer(Synchronizer* s){mSynchronizer=s;} + /// Sets the synchronizer + void SetCurrentDatabase(std::string cur){mCurrentDB=cur;} //==================================================================== //==================================================================== @@ -108,7 +110,7 @@ namespace creaImageIO void AddDirectory( const std::string& directory, bool recurse); /// Removes a file from the databases - void RemoveFile(const tree::Node*& node); + void RemoveFile(tree::Node* node); /// Removes files from the databases void RemoveFiles(const std::vector& nodes); /// Synchronizes the DB and disk by repeating the operations the user has done and returns a report @@ -121,6 +123,8 @@ namespace creaImageIO std::vector &i_ignorefiles, std::vector & attsModified, std::vector & newfiles); + ///Copies the files indicated in the vector and updates all databases + void CopyFiles(const std::vector& filenames, const std::string directory ); ///Finds the node that matches the specified parameters void FindNode(tree::Node* parent, int level, const std::string& searchParam, @@ -147,6 +151,7 @@ namespace creaImageIO TimestampDatabaseHandler* mTimestampHandler; Synchronizer* mSynchronizer; ImageReader mReader; + std::string mCurrentDB; Progress mProgress; ProgressSignalType mProgressSignal;