Skip to content

Commit 02f1f70

Browse files
committed
add hasOption method to ConfigParamRegistry
1 parent 4010485 commit 02f1f70

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Framework/Core/include/Framework/ConfigParamRegistry.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ class ConfigParamRegistry
6262
return mStore->store().count(key);
6363
}
6464

65+
bool hasOption(const char* key) const
66+
{
67+
return mStore->store().get_child_optional(key).is_initialized();
68+
}
69+
6570
bool isDefault(const char* key) const
6671
{
6772
return mStore->store().count(key) > 0 && mStore->provenance(key) != "default";

0 commit comments

Comments
 (0)