X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_Common.h;h=52776d764f7623c1b75ea912f176d713e68e2b91;hb=33c5fdce3cd63dd95a738439a0399dd982abcd73;hp=52fc1e1726fa0adbfedd95f72a7f3a930995c362;hpb=5ba89a77cdb9638a6d298c2aa5233d26576d9ed0;p=modules%2Fshaper.git diff --git a/src/Config/Config_Common.h b/src/Config/Config_Common.h index 52fc1e172..52776d764 100644 --- a/src/Config/Config_Common.h +++ b/src/Config/Config_Common.h @@ -43,6 +43,8 @@ CONFIG_EXPORT bool isElementNode(xmlNodePtr theNode); */ CONFIG_EXPORT bool isNode(xmlNodePtr theNode, const char* theNodeName, ...); +//#define isNode(p) _isNode(p, NULL) + /*! * Checks if the given node is attribute node. * Attribute node represents a widget, that is able to store/restore @@ -79,6 +81,12 @@ CONFIG_EXPORT bool hasParent(xmlNodePtr theNode); */ CONFIG_EXPORT bool hasParent(xmlNodePtr theNode, const char* theNodeName, ...); +/*! + * Checks if the given node has any valid parent in hierarchy with any of the given node names. + */ +CONFIG_EXPORT bool hasParentRecursive(xmlNodePtr theNode, const char* theNodeName, ...); + + /*! * Returns named property for an id node as std::string and the parameters of the node. */