8 #include "uniconfroot.h"
9 #include "unisubtreegen.h"
10 #include "wvlinkerhack.h"
21 WvString uniautogen_moniker(
"default:ini:/etc/uniconf.conf");
46 wvcreate<IUniConfGen>(uniautogen_moniker, _obj),
true);
49 for (
int i = appname.numsegments(); i >= 0; i--)
51 UniConfKey prefix(appname.first(i)), suffix(appname.removefirst(i));
53 if (!!cfg.xget(prefix))
55 return new UniSubtreeGen(wvcreate<IUniConfGen>(cfg.xget(prefix)),
60 return wvcreate<IUniConfGen>(
"null:");
WvString is an implementation of a simple and efficient printable-string class.
An abstract data container that backs a UniConf tree.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
A default implementation of IUniConfGen, providing various handy features that save trouble when impl...
A UniConfGen that returns only a particular subtree of a given generator.
Represents the root of a hierarhical registry consisting of pairs of UniConfKeys and associated strin...
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...