WvStreams
debian/libwvstreams-dev/usr/include/wvstreams/unifilesystemgen.h
1#ifndef __UNIFILESYSTEMGEN_H
2#define __UNIFILESYSTEMGEN_H
3
4#include "uniconfgen.h"
5#include <sys/types.h>
6
42{
43public:
44 UniFileSystemGen(WvStringParm _dir, mode_t _mode);
45 virtual WvString get(const UniConfKey &key);
46 virtual void set(const UniConfKey &key, WvStringParm value);
47 virtual void setv(const UniConfPairList &pairs);
48 virtual void flush_buffers() {}
49 virtual Iter *iterator(const UniConfKey &key);
50private:
51 WvString dir;
52 mode_t mode;
53};
54
55#endif
A default implementation of IUniConfGen, providing various handy features that save trouble when impl...
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
Creates a UniConf tree that mirrors some point in the Linux filesystem, with restrictions.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.
virtual void flush_buffers()
Flushes any commitment/notification buffers .
virtual void setv(const UniConfPairList &pairs)
Stores multiple key-value pairs into the registry.
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
WvString is an implementation of a simple and efficient printable-string class.