]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Config/Config_XMLReader.cpp
Salome HOME
Boost has been removed from code
[modules/shaper.git] / src / Config / Config_XMLReader.cpp
index 3b206f3ce7a5717fa0a27b3d2613d30f0ecd7b10..44c806ce919faebbb6e70e7121e6ee6eecf0cd4c 100644 (file)
@@ -138,13 +138,10 @@ xmlNodePtr Config_XMLReader::node(void* theNode)
   return static_cast<xmlNodePtr>(theNode);
 }
 
-/*
- * Returns named property for a given node as std::string.
- */
-std::string Config_XMLReader::getProperty(xmlNodePtr theNode, const char* theName)
+std::string Config_XMLReader::getNodeName(xmlNodePtr theNode)
 {
   std::string result = "";
-  char* aPropChars = (char*) xmlGetProp(theNode, BAD_CAST theName);
+  char* aPropChars = (char*) theNode->name;
   if (!aPropChars || aPropChars[0] == 0)
     return result;
   result = std::string(aPropChars);
@@ -155,7 +152,7 @@ void Config_XMLReader::processValidator(xmlNodePtr theNode)
 {
   Events_ID aValidatoEvent = Events_Loop::eventByName(EVENT_VALIDATOR_LOADED);
   Events_Loop* aEvLoop = Events_Loop::loop();
-  boost::shared_ptr<Config_ValidatorMessage> 
+  std::shared_ptr<Config_ValidatorMessage> 
     aMessage(new Config_ValidatorMessage(aValidatoEvent, this));
   std::string aValidatorId;
   std::list<std::string> aValidatorParameters;