]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Config/Config_XMLReader.cpp
Salome HOME
Document's kind dependent features implemented
[modules/shaper.git] / src / Config / Config_XMLReader.cpp
index 3b206f3ce7a5717fa0a27b3d2613d30f0ecd7b10..81c5d37258f41e8828e9623b0bbe96e0d1ab1911 100644 (file)
@@ -138,6 +138,16 @@ xmlNodePtr Config_XMLReader::node(void* theNode)
   return static_cast<xmlNodePtr>(theNode);
 }
 
+std::string Config_XMLReader::getNodeName(xmlNodePtr theNode)
+{
+  std::string result = "";
+  char* aPropChars = (char*) theNode->name;
+  if (!aPropChars || aPropChars[0] == 0)
+    return result;
+  result = std::string(aPropChars);
+  return result;
+}
+
 /*
  * Returns named property for a given node as std::string.
  */