UniConf::XIter Class Reference

#include <uniconf.h>

Inheritance diagram for UniConf::XIter:
[legend]

List of all members.


Detailed Description

This iterator walks over all children that match a wildcard pattern.

See UniConfKey::matches(const UniConfKey&) for information about patterns.

Example patterns: (where STAR is the asterisk character, '*')

"": a null iterator "a": matches only the key "a" if it exists "STAR": matches all direct children "STAR/foo": matches any existing key "foo" under direct children "STAR/STAR": matches all children of depth exactly 2 "foo/...": matches all keys including and below "foo" "foo/STAR/...": matches all keys below "foo" ".../foo/STAR": matches all keys below any subkey named "foo" in the tree

Definition at line 510 of file uniconf.h.


Public Member Functions

 XIter (const UniConf &_top, const UniConfKey &pattern)
 Creates a wildcard iterator.
void rewind ()
bool next ()
const UniConfptr () const
 WvIterStuff (const UniConf)

Protected Attributes

UniConf top
UniConf current

Constructor & Destructor Documentation

UniConf::XIter::XIter ( const UniConf _top,
const UniConfKey pattern 
)

Creates a wildcard iterator.

Definition at line 251 of file uniconf.cc.

References UniConfKey::append(), UniConfKey::first(), UniConfKey::isempty(), UniConfKey::iswild(), and UniConfKey::removefirst().


The documentation for this class was generated from the following files:

Generated on Sat Feb 7 13:37:18 2009 for WvStreams by  doxygen 1.5.6