WvStreams
Public Member Functions | Protected Attributes | List of all members
UniWvConfGen::WvConfIter Class Reference

A wrapper class for the wvconf iters to provide a UniConfGen iter. More...

Inheritance diagram for UniWvConfGen::WvConfIter:
Inheritance graph
[legend]

Public Member Functions

 WvConfIter (WvConfigSection *sect)
 
virtual void rewind ()
 Rewinds the iterator. More...
 
virtual bool next ()
 Seeks to the next element in the sequence. More...
 
virtual UniConfKey key () const
 Returns the current key.
 
virtual WvString value () const
 Returns the value of the current key. More...
 

Protected Attributes

WvConfigSection::Iter i
 

Detailed Description

A wrapper class for the wvconf iters to provide a UniConfGen iter.

Definition at line 14 of file uniwvconfgen.cc.

Member Function Documentation

◆ rewind()

void UniWvConfGen::WvConfIter::rewind ( )
virtual

Rewinds the iterator.

Must be called prior to the first invocation of next().

Implements UniConfGen::Iter.

Definition at line 124 of file uniwvconfgen.cc.

◆ next()

bool UniWvConfGen::WvConfIter::next ( )
virtual

Seeks to the next element in the sequence.

Returns true if that element exists. Must be called prior to the first invocation of key().

Implements UniConfGen::Iter.

Definition at line 130 of file uniwvconfgen.cc.

◆ value()

WvString UniWvConfGen::WvConfIter::value ( ) const
virtual

Returns the value of the current key.

You could just do a get(), but maybe your generator has a more efficient way.

Implements UniConfGen::Iter.

Definition at line 142 of file uniwvconfgen.cc.


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