2 * Worldvisions Weaver Software:
3 * Copyright (C) 2002 Net Integration Technologies, Inc.
5 * A simple implementation of a UniConfGen iterator. See unilistiter.h.
7 #include "unilistiter.h"
9 UniListIter::UniListIter(IUniConfGen
*_gen
)
10 : ki(keys
), vi(values
)
16 void UniListIter::add(const UniConfKey
&k
, WvStringParm v
)
18 UniConfKey
*nk
= new UniConfKey(k
);
19 keys
.append(nk
, true);
20 keylook
.add(nk
, false);
22 values
.append(new WvString(scache
.get(v
)), true);
26 void UniListIter::autofill(IUniConfGen::Iter
*_source
)
28 IUniConfGen::Iter
&source(*_source
);
29 for (source
.rewind(); source
.next(); )
30 add(source
.key(), source
.value());
34 void UniListIter::rewind()
41 bool UniListIter::next()
49 UniConfKey
UniListIter::key() const
55 WvString
UniListIter::value() const