X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeHandler.h;h=9b7c4db9eb8ba36b297e81e287f9e60909e2b77a;hb=0aa00616066c059f5b11bf6355c22c90c22f95f0;hp=16f599cddf52f69460a8b53082817499e51362f3;hpb=f7c6131e319e426656a0b3b066b96236ee66bb3c;p=creaImageIO.git diff --git a/src2/creaImageIOTreeHandler.h b/src2/creaImageIOTreeHandler.h index 16f599c..9b7c4db 100644 --- a/src2/creaImageIOTreeHandler.h +++ b/src2/creaImageIOTreeHandler.h @@ -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. @@ -96,6 +105,13 @@ namespace creaImageIO virtual void UnLoad(tree::Node* n) { return; } //==================================================================== + //==================================================================== + /// Returns the top level node id for the given search param and search value + virtual void GetTopLevelNodeId(const std::string& searchParam, + const std::string& searchValue, + std::string& parent_id){ return; } + ///==================================================================== + //==================================================================== // WRITE METHODS : WORK ONLY IN WRITE MODE @@ -112,6 +128,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){} + //====================================================================