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