Skip to content
Snippets Groups Projects
Commit 8ecde409 authored by Francois Henrotte's avatar Francois Henrotte
Browse files

added function toCharIfClient

parent 53f299ac
No related branches found
No related tags found
No related merge requests found
......@@ -441,6 +441,15 @@ namespace onelab{
s += (*it)->toChar() + "\n";
return s;
}
std::string toCharIfClient(const std::string &client="")
{
std::string s;
std::set<parameter*> ps;
_getAllParameters(ps);
for(std::set<parameter*>::iterator it = ps.begin(); it != ps.end(); it++)
if ((*it)->hasClient(client)) s += (*it)->toChar() + "\n";
return s;
}
};
// The onelab client: a class that communicates with the onelab
......@@ -532,6 +541,8 @@ namespace onelab{
return _parameterSpace.getChanged(client);
}
std::string toChar(){ return _parameterSpace.toChar(); }
std::string toCharIfClient(const std::string &client="")
{ return _parameterSpace.toCharIfClient(client); }
};
class localClient : public client{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment