Skip to content
Snippets Groups Projects
Commit f322033a authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add ParamsServer::hasParam(ley)

parent 4408901e
No related branches found
No related tags found
2 merge requests!466devel->main,!455Resolve "Implement processor bootstrapping"
Pipeline #11752 passed
......@@ -51,6 +51,8 @@ public:
void addParams(std::map<std::string, std::string> _params);
bool hasParam(std::string _key) const;
// template<typename T>
// T getParam(std::string key, std::string def_value) const {
// if(params_.find(key) != params_.end()){
......
......@@ -47,3 +47,8 @@ void ParamsServer::addParams(std::map<std::string, std::string> _params)
{
params_.insert(_params.begin(), _params.end());
}
bool ParamsServer::hasParam(std::string _key) const
{
return (params_.count(_key) != 0);
}
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