1 #include "uniconfgen.h" 2 #include "unimountgen.h" 4 #include "wvlinkerhack.h" 7 #include "unifiltergen.h" 19 log(
WvString(
"AutoMount '%s'", dir), WvLog::Info)
40 if (parent && parent != treegen && parent->
haschildren(
"/"))
43 log(
"Automount for '%s'\n", key);
45 for (
int count = key.
numsegments(); count >= 0; count--)
50 log(
"Key '%s' already mounted.\n", k);
55 log(
"Filename is '%s'\n", filename);
57 log(
"Key '%s' newly mounted.\n", k);
62 log(
"Key '%s' not found.\n", key);
76 WV_LINK(UniFsTreeGen);
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...
The basic interface which is included by all other XPLC interfaces and objects.
UniConfKey first(int n=1) const
Returns the path formed by the n first segments of this path.
An abstract data container that backs a UniConf tree.
virtual IUniConfGen * mount(const UniConfKey &key, WvStringParm moniker, bool refresh)
Mounts a generator at a key using a moniker.
An abstract iterator over keys and values in a generator.
virtual IUniConfGen * whichmount(const UniConfKey &key, UniConfKey *mountpoint)
Finds the generator that owns a key.
virtual bool haschildren(const UniConfKey &key)=0
Returns true if a key has children.
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
int numsegments() const
Returns the number of segments in this path.
The UniMountTree implementation realized as a UniConfGen.
virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key)
A mapping function for filters that remap one keyspace onto another.
A UniConfGen that delegates all requests to an inner generator.
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
WvString is an implementation of a simple and efficient printable-string class.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's...
virtual bool keymap(const UniConfKey &key, UniConfKey &mapped_key)
A mapping function for filters that remap one keyspace onto another.
virtual bool ismountpoint(const UniConfKey &key)
Determines if a key is a mountpoint.