mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 22:31:23 +01:00
added Poco::Util::MapConfiguration::copyTo()
This commit is contained in:
parent
c4c9bcb034
commit
f524aae508
@ -36,6 +36,9 @@ public:
|
||||
MapConfiguration();
|
||||
/// Creates an empty MapConfiguration.
|
||||
|
||||
void copyTo(AbstractConfiguration& config);
|
||||
/// Copies all configuration properties to the given configuration.
|
||||
|
||||
void clear();
|
||||
/// 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()
|
||||
{
|
||||
_map.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user