11#include "wvtclstring.h"
12#include "wvstringlist.h"
13#include "wvlinkerhack.h"
43 UniConfGenList *l =
new UniConfGenList();
47 WvStringList::Iter i(gens);
49 for (i.rewind(); i.next();)
52 IUniConfGen *gen = wvcreate<IUniConfGen>(i(), _obj);
63UniListGen::UniListGen(UniConfGenList *_l) : l(_l)
65 UniConfGenList::Iter i(*l);
66 for (i.rewind(); i.next(); )
71UniListGen::~UniListGen()
73 UniConfGenList::Iter i(*l);
74 for (i.rewind(); i.next(); )
75 i->del_callback(
this);
82 UniConfGenList::Iter i(*l);
83 for (i.rewind(); i.next();)
92 UniConfGenList::Iter i(*l);
93 for (i.rewind(); i.next();)
94 result = i->refresh() && result;
101 UniConfGenList::Iter i(*l);
102 for (i.rewind(); i.next(); )
105 return WvString::null;
112 UniConfGenList::Iter i(*l);
113 for (i.rewind(); i.next(); )
120 UniConfGenList::Iter i(*l);
121 for (i.rewind(); i.next(); )
128 UniConfGenList::Iter i(*l);
129 for (i.rewind(); i.next();)
140 UniConfGenList::Iter i(*l);
141 for (i.rewind(); i.next();)
143 if (i->haschildren(key))
152 UniConfGenList::Iter i(*l);
153 for (i.rewind(); i.next();)
178 UniConfGenList::Iter geniter(*gen->l);
179 for (geniter.rewind(); geniter.next(); )
181 Iter *it = geniter->iterator(key);
186 i =
new IterList::Iter(l);
192 for ((*i).rewind(); (*i).next(); )
235 return (*i)->value();
The basic interface which is included by all other XPLC interfaces and objects.
virtual unsigned int addRef()=0
Indicate you are using this object.
virtual unsigned int release()=0
Indicate that you are finished using this object.
An abstract data container that backs a UniConf tree.
An abstract iterator over keys and values in a generator.
void delta(const UniConfKey &key, WvStringParm value)
Call this when a key's value or children have possibly changed.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
virtual void rewind()
Rewinds the iterator.
virtual bool next()
Seeks to the next element in the sequence.
virtual UniConfKey key() const
Returns the current key.
virtual WvString value() const
Returns the value of the current key.
Accepts a list of UniConf generators, and stacks them, treating them as one uniconf source.
virtual void commit()
Commits any changes.
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
virtual bool refresh()
Refreshes information about a key recursively.
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
virtual void setv(const UniConfPairList &pairs)
Stores multiple key-value pairs into the registry.
virtual bool isok()
Determines if the generator is usable and working properly.
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.
virtual void gencallback(const UniConfKey &key, WvStringParm value)
Called by first generator when a key changes.
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
This is a WvList of WvStrings, and is a really handy way to parse strings.
WvString is an implementation of a simple and efficient printable-string class.
void wvtcl_decode(WvList< WvString > &l, WvStringParm _s, const WvStringMask &splitchars=WVTCL_SPLITCHARS, bool do_unescape=true)
split a tcl-style list.