XMLConfiguration default (and single-argument delimiter) constructor now loads an empty XML document with "config" root element to make the configuration usable without an additional call to load() or loadEmpty().

This commit is contained in:
Guenter Obiltschnig
2016-10-16 13:39:17 +02:00
parent f777325cea
commit 5df2508986
4 changed files with 41 additions and 3 deletions

View File

@@ -83,11 +83,11 @@ class Util_API XMLConfiguration: public AbstractConfiguration
{
public:
XMLConfiguration();
/// Creates an empty XMLConfiguration.
/// Creates an empty XMLConfiguration with a "config" root element.
XMLConfiguration(char delim);
/// Creates an empty XMLConfiguration, using the given
/// delimiter char instead of the default '.'.
/// Creates an empty XMLConfiguration with a "config" root element,
/// using the given delimiter char instead of the default '.'.
XMLConfiguration(Poco::XML::InputSource* pInputSource);
/// Creates an XMLConfiguration and loads the XML document from