X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_FeatureReader.h;h=75eb376e5cdd88ba8a6249a863e522e7ec1c3163;hb=257a9c9ed768fca5dfd54adf466549e8dd1ea82d;hp=7f7889aaabfbd07fe0ab741f22162b226c354765;hpb=53a07caf91ac24e68ae9f0e3cfb1c4fb525e8aba;p=modules%2Fshaper.git diff --git a/src/Config/Config_FeatureReader.h b/src/Config/Config_FeatureReader.h index 7f7889aaa..75eb376e5 100644 --- a/src/Config/Config_FeatureReader.h +++ b/src/Config/Config_FeatureReader.h @@ -39,6 +39,10 @@ class Config_FeatureReader : public Config_XMLReader protected: /// Overloaded method. Defines how to process each node virtual void processNode(xmlNodePtr aNode); + + /// Overloaded method. Clears attribute cache on extit from attribute's node + virtual void cleanup(xmlNodePtr aNode); + /// Overloaded method. Defines if the given node should be parsed recursively virtual bool processChildren(xmlNodePtr aNode); @@ -54,6 +58,9 @@ class Config_FeatureReader : public Config_XMLReader /// Restores an attribute from internal map. std::string restoreAttribute(const char* theNodeName, const char* theNodeAttribute); + bool cleanupAttribute(xmlNodePtr theNode, const char* theNodeAttribute); + bool cleanupAttribute(const char* theNodeName, const char* theNodeAttribute); + private: /// A map to store all parent's attributes. /// The key has from "Node_Name:Node_Attribute"