Skip to content
Snippets Groups Projects
Commit b62c97f0 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

handle attributes

parent e9bfb7ae
Branches
Tags
No related merge requests found
...@@ -620,15 +620,18 @@ void Msg::ExchangeOnelabParameter(const std::string &key, ...@@ -620,15 +620,18 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
o.setMin(fopt["Min"][0]); o.setMax(fopt["Max"][0]); o.setMin(fopt["Min"][0]); o.setMax(fopt["Max"][0]);
} }
else if(fopt.count("Min")){ else if(fopt.count("Min")){
o.setMin(fopt["Min"][0]); o.setMax(1.e200); o.setMin(fopt["Min"][0]); o.setMax(onelab::parameter::maxNumber());
} }
else if(fopt.count("Max")){ else if(fopt.count("Max")){
o.setMax(fopt["Max"][0]); o.setMin(-1.e200); o.setMax(fopt["Max"][0]); o.setMin(-onelab::parameter::maxNumber());
} }
if(fopt.count("Step")) o.setStep(fopt["Step"][0]); if(fopt.count("Step")) o.setStep(fopt["Step"][0]);
if(fopt.count("Choices")) o.setChoices(fopt["Choices"]); if(fopt.count("Choices")) o.setChoices(fopt["Choices"]);
if(copt.count("Help")) o.setHelp(copt["Help"][0]); if(copt.count("Help")) o.setHelp(copt["Help"][0]);
if(copt.count("ShortHelp")) o.setShortHelp(copt["ShortHelp"][0]); if(copt.count("ShortHelp")) o.setShortHelp(copt["ShortHelp"][0]);
if(copt.count("Loop")) o.setAttribute("Loop", copt["Loop"][0]);
if(copt.count("GraphX")) o.setAttribute("GraphX", copt["GraphX"][0]);
if(copt.count("GraphY")) o.setAttribute("GraphY", copt["GraphY"][0]);
_onelabClient->set(o); _onelabClient->set(o);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment