mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 19:48:44 +02:00
added Poco::Util::MapConfiguration::copyTo()
This commit is contained in:
@@ -36,6 +36,9 @@ public:
|
|||||||
MapConfiguration();
|
MapConfiguration();
|
||||||
/// Creates an empty MapConfiguration.
|
/// Creates an empty MapConfiguration.
|
||||||
|
|
||||||
|
void copyTo(AbstractConfiguration& config);
|
||||||
|
/// Copies all configuration properties to the given configuration.
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
/// Clears the configuration.
|
/// Clears the configuration.
|
||||||
|
|
||||||
|
@@ -32,6 +32,15 @@ MapConfiguration::~MapConfiguration()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void MapConfiguration::copyTo(AbstractConfiguration& config)
|
||||||
|
{
|
||||||
|
for (iterator it = _map.begin(); it != _map.end(); ++it)
|
||||||
|
{
|
||||||
|
config.setString(it->first, it->second);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void MapConfiguration::clear()
|
void MapConfiguration::clear()
|
||||||
{
|
{
|
||||||
_map.clear();
|
_map.clear();
|
||||||
|
Reference in New Issue
Block a user