Salome HOME
Merge branch 'master' into cgt/devCEA
[modules/shaper.git] / src / Config / Config_Common.h
index 1850f8a7bd642373ed74ebdc4d262b443403410a..eb7cbc9fa9f2ef97be584f2437e95554b823ddce 100644 (file)
@@ -81,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 xmlNodePtr hasParentRecursive(xmlNodePtr theNode, const char* theNodeName, ...);
+
+
 /*!
  * Returns named property for an id node as std::string and the parameters of the node.
  */
@@ -105,6 +111,11 @@ CONFIG_EXPORT std::string library(const std::string& theLibName);
  */
 CONFIG_EXPORT std::string getProperty(xmlNodePtr theNode, const char* thePropName);
 
+/*!
+ * Returns content of the node as std::string if it is exists.
+ */
+CONFIG_EXPORT std::string getContent(xmlNodePtr theNode);
+
 /*!
  * Returns normalized (lower case) named property for a given node as std::string.
  */