X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FConfigFile.hh;h=8b5a291072d682a3c1797d253189e5d3ba9b8ed7;hb=45df7138999be77ea7949c6249ca973305290f48;hp=3e08edf8caa8dcd29e9721bb4513c12d44a15d1f;hpb=95ac66527fcf847f4194a3b6827add911f2f2e34;p=senf.git diff --git a/Console/ConfigFile.hh b/Console/ConfigFile.hh index 3e08edf..8b5a291 100644 --- a/Console/ConfigFile.hh +++ b/Console/ConfigFile.hh @@ -52,6 +52,10 @@ namespace console { // Parse rest of the config file cf.parse(); \endcode + + If your application uses multiple configuration sources, use a ConfigBundle and FileConfig + + \ingroup console_access */ class ConfigFile : public detail::BundleMixin @@ -80,8 +84,15 @@ namespace console { \related ConfigFile */ - void readConfig(std::string const & filename, DirectoryNode & root = root()); + void parseFile(std::string const & filename, DirectoryNode & root = root()); + + /** \brief ConfigBundle source reading a configuration file + This constructor is used to create a config source parsing the given configuration file to + add to a ConfigBundle. + + \related ConfigFile + */ detail::ConfigFileSource::ptr FileConfig(std::string const & filename); }}