7 #include "unilistiter.h"
10 : ki(keys), vi(values)
19 keys.append(nk,
true);
20 keylook.add(nk,
false);
28 IUniConfGen::Iter &source(*_source);
29 for (source.rewind(); source.next(); )
30 add(source.key(), source.value());
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
virtual WvString value() const
Returns the value of the current key.
virtual void rewind()
Rewinds the iterator.
An abstract data container that backs a UniConf tree.
bool isnull() const
returns true if this string is null
virtual WvString get(const UniConfKey &key)=0
Fetches a string value for a key from the registry.
WvString get(WvStringParm s)
Get a shared string corresponding to 's'.
void add(const UniConfKey &k, WvStringParm v=WvString::null)
Add a key/value pair to the list that gets returned by this iterator.
virtual UniConfKey key() const
Returns the current key.
void autofill(IUniConfGen::Iter *source)
Automatically fill the contents of this iterator by calling add() for each element of the 'source' it...
WvString is an implementation of a simple and efficient printable-string class.
virtual bool next()
Seeks to the next element in the sequence.