]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeHandlerImageAdder.h
*** empty log message ***
[creaImageIO.git] / src2 / creaImageIOTreeHandlerImageAdder.h
index 60654911c76c14976cd47a516c5f41b76f581901..521f0ffc13bf31d4d7fe8a6c1b45b0d44f7aa89c 100644 (file)
@@ -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,32 @@ namespace creaImageIO
                                                        std::vector<std::string> &i_ignorefiles,
                                                        std::vector<std::string> & attsModified,
                                                        std::vector<std::string> & newfiles);
+       ///Copies the files indicated in the vector and updates all databases
+       void CopyFiles(const std::vector<std::string>& 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<std::string>& 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);
+       ///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<std::string>& params, 
+         const std::string& filename, 
+         std::vector<std::string>& results);
+  
+  
+  
  
     //====================================================================
 
@@ -147,6 +168,7 @@ namespace creaImageIO
        TimestampDatabaseHandler* mTimestampHandler;
        Synchronizer* mSynchronizer;
     ImageReader mReader;
+       std::string mCurrentDB;
     
     Progress mProgress;
     ProgressSignalType mProgressSignal;