X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src2%2FcreaImageIOTreeHandlerImageAdder.h;h=53cff0b7b325d8ec8ac4fe1dc688014e7b4bc651;hb=595926ac27740a8822b6de9579e2e148c59f469c;hp=60654911c76c14976cd47a516c5f41b76f581901;hpb=be812877eb9dfa9b921df4f6d88df98af73328c3;p=creaImageIO.git diff --git a/src2/creaImageIOTreeHandlerImageAdder.h b/src2/creaImageIOTreeHandlerImageAdder.h index 6065491..53cff0b 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;} //==================================================================== //==================================================================== @@ -121,13 +123,24 @@ 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, const std::string& searchVal, tree::Node*& node); + + ///Finds the nodes that partially match the searchVal + void FindNodePartial(tree::Node* parent, int level, const std::string& searchParam, const std::string& searchVal, tree::Node*& node); + ///Checks the attributes of the database against the ones in disk void CheckAttributes(bool repair, std::string& file, std::vector& attsModified); + ///Deletes the drive with the given name (use for all databases except maintenance and timestamp) + void DeleteDriveFromMainDB(const std::string& drive); + ///Deletes the drive with the given name (use for maintenance and timestamp databases) + void DeleteDriveFromOtherDB(const std::string& drive); + //==================================================================== @@ -147,6 +160,7 @@ namespace creaImageIO TimestampDatabaseHandler* mTimestampHandler; Synchronizer* mSynchronizer; ImageReader mReader; + std::string mCurrentDB; Progress mProgress; ProgressSignalType mProgressSignal;