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);
virtual bool ismountpoint(const UniConfKey &key)
Determines if a key is a mountpoint.
virtual bool keymap(const UniConfKey &key, UniConfKey &mapped_key)
A mapping function for filters that remap one keyspace onto another.
virtual IUniConfGen * mount(const UniConfKey &key, WvStringParm moniker, bool refresh)
Mounts a generator at a key using a moniker.
virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key)
A mapping function for filters that remap one keyspace onto another.
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
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.
WvString is an implementation of a simple and efficient printable-string class.
An abstract data container that backs a UniConf tree.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
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...
UniConfKey first(int n=1) const
Returns the path formed by the n first segments of this path.
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
The UniMountTree implementation realized as a UniConfGen.
int numsegments() const
Returns the number of segments in this path.
A UniConfGen that delegates all requests to an inner generator.
An abstract iterator over keys and values in a generator.