]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeHandler.h
Correction d'un crash au moment de la validation sur le viewer
[creaImageIO.git] / src2 / creaImageIOTreeHandler.h
index 16f599cddf52f69460a8b53082817499e51362f3..5a7cecd32f644aa3f9cb1fb47a70b7417b824cb6 100644 (file)
@@ -79,6 +79,15 @@ namespace creaImageIO
     virtual unsigned int GetNumberOfChildren(tree::Node* n) { return 0; }
     //====================================================================
 
+       //====================================================================
+    /// Returns the attribute requested. Useful for synchronization.
+       virtual void GetAttribute(std::string levelDescriptor,
+                                                                          std::string searchParam, 
+                                                                          std::string searchVal, 
+                                                                          std::string key, 
+                                                                          std::string& result){}
+    //====================================================================
+
     //====================================================================
     /// Recursively loads the children of node 'parent' until maxlevel 
     // is reached.
@@ -112,6 +121,15 @@ namespace creaImageIO
     virtual bool SetAttribute(tree::Node*, 
                              const std::string& key,
                              const std::string& value) { return false; }
+       // Sets an attribute
+    virtual void SetAttribute(const std::string& levelDescriptor, 
+                             const std::string& key,
+                             const std::string& value,
+                                 const std::string& searchParam, 
+                                 const std::string& searchVal){}
+       //Deletes the tuple that matches the parameters given
+       virtual void DeleteTuple(std::string levelDescriptor, std::string key, std::string value){}
     //====================================================================