WvStreams
|
This iterator walks over all children that match a wildcard pattern. More...
#include <uniconf.h>
Public Member Functions | |
XIter (const UniConf &_top, const UniConfKey &pattern) | |
Creates a wildcard iterator. | |
void | rewind () |
bool | next () |
const UniConf * | ptr () const |
WvIterStuff (const UniConf) | |
Protected Attributes | |
UniConf | top |
UniConf | current |
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