WvStreams
Public Member Functions | Protected Attributes | List of all members
UniConf::XIter Class Reference

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

#include <uniconf.h>

Inheritance diagram for UniConf::XIter:
Inheritance graph
[legend]

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
 

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 511 of file uniconf.h.


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