X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeHandlerImageAdder.h;h=41ff0a63969818dc6bf209e925176b37767d1167;hb=3c92794ea3e8ad8e7ca34e270f7980aee304e726;hp=53cff0b7b325d8ec8ac4fe1dc688014e7b4bc651;hpb=595926ac27740a8822b6de9579e2e148c59f469c;p=creaImageIO.git diff --git a/src2/creaImageIOTreeHandlerImageAdder.h b/src2/creaImageIOTreeHandlerImageAdder.h index 53cff0b..41ff0a6 100644 --- a/src2/creaImageIOTreeHandlerImageAdder.h +++ b/src2/creaImageIOTreeHandlerImageAdder.h @@ -2,12 +2,10 @@ #define __creaImageIOTreeHandlerImageAdder_h_INCLUDED__ #include -#include #include #include -#include -#include -#include +//#include + // Signal/slot mechanism for progress events #include #include @@ -33,8 +31,7 @@ namespace creaImageIO ~TreeHandlerImageAdder(); /// Sets the TreeHandler void SetTreeHandler(TreeHandler* tree) { mTreeHandler = tree;} - /// Sets the TimestampDatabaseHandler - void SetTimestampHandler(TimestampDatabaseHandler* tdh) { mTimestampHandler = tdh;} + /// Sets the synchronizer void SetSynchronizer(Synchronizer* s){mSynchronizer=s;} /// Sets the synchronizer @@ -125,6 +122,9 @@ namespace creaImageIO std::vector & newfiles); ///Copies the files indicated in the vector and updates all databases void CopyFiles(const std::vector& filenames, const std::string directory ); + + ///Saves as the files indicated in the vector in a specific directory + void SaveAs(const std::vector& filenames, std::vector i_images); ///Finds the node that matches the specified parameters void FindNode(tree::Node* parent, int level, const std::string& searchParam, @@ -140,6 +140,14 @@ namespace creaImageIO 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); + ///Edits the given field and sets the new parameters + void EditField(tree::Node* node, const std::string& name, const std::string& key, const std::string& val); + ///Returns the demanded attributes for the given file + void GetAttributes(const std::vector& params, + const std::string& filename, + std::vector& results); + + //==================================================================== @@ -157,9 +165,9 @@ namespace creaImageIO const std::string &addKey); TreeHandler* mTreeHandler; - TimestampDatabaseHandler* mTimestampHandler; Synchronizer* mSynchronizer; ImageReader mReader; + //ImageWriter mWriter; std::string mCurrentDB; Progress mProgress;