X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FConfig.hh;h=412c61aaa51c8d4a5e714334aac144a5e847e02f;hb=b89e3166f7680755683dccee5e48cb3a820185c0;hp=64d9802f0609f42f9dadd32e2d6a8c27db4f5268;hpb=7f1c36ac78c8aec05f857d7594ea70e865c822ef;p=senf.git diff --git a/Utils/Console/Config.hh b/Utils/Console/Config.hh index 64d9802..412c61a 100644 --- a/Utils/Console/Config.hh +++ b/Utils/Console/Config.hh @@ -67,7 +67,7 @@ namespace console { ///\name Structors and default members ///@{ - ConfigBundle(); + ConfigBundle(); ///< root node is set to console::root() ConfigBundle(DirectoryNode & root); ///< Set custom root node ///@} @@ -77,18 +77,21 @@ namespace console { Source & add(boost::intrusive_ptr source); ///< Add configuration source - void parse(); ///< Parse config file + void parse(); ///< Parse config bundle /**< All nodes already parsed are skipped */ - void parse(DirectoryNode & restrict); ///< Parse config file under \a restrict + void parse(DirectoryNode & restrict); ///< Parse config bundle under \a restrict /**< Only nodes which are children of \a restrict are - parsed. */ + parsed. */ bool complete() const; ///< \c true, if all nodes have been parsed bool parsed(GenericNode & node) const; ///< \c true. if \a node has been parsed void reset(); ///< Reset node parse info state /**< After a call to reset(), all information about already parsed nodes is cleared. Calling parse() will parse the - complete config file again. */ + complete config bundle again. */ + + DirectoryNode & root() const; + void chroot(DirectoryNode & node); protected: