From: nds Date: Mon, 15 Dec 2014 11:02:18 +0000 (+0300) Subject: Parameters for the filters are similar to the parameters of validators. X-Git-Tag: before_slalome_7.5.1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eb4e6139c4d447d5d9e13f8bb2a8641cb5dd7efa;p=modules%2Fshaper.git Parameters for the filters are similar to the parameters of validators. --- diff --git a/src/Config/Config_Common.cpp b/src/Config/Config_Common.cpp index 1f6ca6356..e0837036e 100644 --- a/src/Config/Config_Common.cpp +++ b/src/Config/Config_Common.cpp @@ -72,25 +72,25 @@ bool hasChild(xmlNodePtr theNode) return false; } -bool getParametersInfo(xmlNodePtr theNode, std::string& outValidatorId, +bool getParametersInfo(xmlNodePtr theNode, std::string& outPropertyId, std::list& outValidatorParameters) { - //Validator id: + //Property id: char* anIdProp = (char*) xmlGetProp(theNode, BAD_CAST _ID); if (!anIdProp || anIdProp[0] == 0) { return false; } - outValidatorId = std::string(anIdProp); + outPropertyId = std::string(anIdProp); - //Validator parameters: + //Property parameters: char* aParamProp = (char*) xmlGetProp(theNode, BAD_CAST _PARAMETERS); if (aParamProp && aParamProp[0] != 0) { std::string aPropString = std::string(aParamProp); std::stringstream aPropStringStream(aPropString); char COMMA_DELIM = ','; - std::string aValidatorParameter; - while (std::getline(aPropStringStream, aValidatorParameter, ',')) { - outValidatorParameters.push_back(aValidatorParameter); + std::string aParameter; + while (std::getline(aPropStringStream, aParameter, ',')) { + outValidatorParameters.push_back(aParameter); } } return true;