core: Extend ConfigFile to support passing a parsed ConfigSection
Change-Id: I955220c08d8e6ed07c77d82149f6ff3ae48b2b12
Refs: #2495
diff --git a/core/config-file.cpp b/core/config-file.cpp
index 5887c2b..1079666 100644
--- a/core/config-file.cpp
+++ b/core/config-file.cpp
@@ -109,6 +109,13 @@
}
void
+ConfigFile::parse(const ConfigSection& config, bool isDryRun, const std::string& filename)
+{
+ m_global = config;
+ process(isDryRun, filename);
+}
+
+void
ConfigFile::process(bool isDryRun, const std::string& filename)
{
BOOST_ASSERT(!filename.empty());