mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
FairMQProgOptions: add a method to check key existence
This commit is contained in:
committed by
Mohammad Al-Turany
parent
4bc54ad32b
commit
a60fac80d9
@@ -102,6 +102,11 @@ class FairProgOptions
|
||||
// convert value to string that corresponds to the key
|
||||
std::string GetStringValue(const std::string& key);
|
||||
|
||||
int Count(const std::string& key) const
|
||||
{
|
||||
return fVarMap.count(key);
|
||||
}
|
||||
|
||||
//restrict conversion to fundamental types
|
||||
template<typename T>
|
||||
T ConvertTo(const std::string& strValue)
|
||||
|
Reference in New Issue
Block a user