15 for (
unsigned int i = 0; i < parameters_.size(); i++)
17 currentName = parameters_[i].getName();
19 parameters_[i].setName(prefix + currentName.substr(prefix_.size()));
21 parameters_[i].setName(prefix + currentName);
31 return name.substr(prefix_.size());
void setNamespace(const std::string &prefix) override
Set the namespace for the parameter names.
std::string getParameterNameWithoutNamespace(const std::string &name) const override
Resolves a parameter name according to the current namespace.
bool startsWith(const std::string &s, const std::string &pattern)
Tell is a string begins with a certain motif.