00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __UNICONFLISTGEN_H
00011 #define __UNICONFLISTGEN_H
00012
00013 #include "uniconfgen.h"
00014 #include "wvscatterhash.h"
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 class UniListGen : public UniConfGen
00031 {
00032 public:
00033 UniListGen(UniConfGenList *_l);
00034 virtual UniListGen::~UniListGen() { delete l; }
00035
00036 UniConfGenList *l;
00037 UniConfGenList::Iter i;
00038
00039
00040
00041 virtual void commit();
00042 virtual bool refresh();
00043 virtual void flush_buffers() { }
00044 virtual WvString get(const UniConfKey &key);
00045 virtual void set(const UniConfKey &key, WvStringParm value);
00046 virtual bool exists(const UniConfKey &key);
00047 virtual bool haschildren(const UniConfKey &key);
00048 virtual bool isok();
00049 virtual Iter *iterator(const UniConfKey &key);
00050
00051 class IterIter;
00052
00053 protected:
00058 virtual void gencallback(const UniConfKey &key, WvStringParm value,
00059 void *userdata);
00060 };
00061
00062
00063 #endif // __UNICONFLISTGEN_H