mgmt refactoring: ManagerBase
Change-Id: I0710297f352723874d05092d091128b02b3747a2
Refs: #2107
diff --git a/core/config-file.hpp b/core/config-file.hpp
index 9991484..ae9102e 100644
--- a/core/config-file.hpp
+++ b/core/config-file.hpp
@@ -73,6 +73,16 @@
const ConfigSection& section,
bool isDryRun);
+ /** @brief parse a config option that can be either "yes" or "no"
+ *
+ * @throw ConfigFile::Error value is neither "yes" nor "no"
+ * @return true if "yes", false if "no"
+ */
+ static bool
+ parseYesNo(const ConfigSection::const_iterator& i,
+ const std::string& optionName,
+ const std::string& sectionName);
+
/// \brief setup notification of configuration file sections
void
addSectionHandler(const std::string& sectionName,