00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
#ifndef __UNICONFREGISTRY_H
00012
#define __UNICONFREGISTRY_H
00013
00014
#include "uniconfgen.h"
00015
#include "wvlog.h"
00016
#include "windows.h"
00017
00018
00019
00020
00021
00022
00023
00024 class UniRegistryGen :
public UniConfGen
00025 {
00026
WvLog m_log;
00027 HKEY m_hRoot;
00028
00029 HKEY follow_path(
const UniConfKey &key,
bool create,
bool *isValue);
00030
00031
public:
00032
UniRegistryGen(
WvString _base);
00033
virtual ~UniRegistryGen();
00034
00035
00036
00037
virtual bool isok();
00038
virtual WvString get(
const UniConfKey &key);
00039
virtual void set(
const UniConfKey &key,
WvStringParm value);
00040
virtual bool exists(
const UniConfKey &key);
00041
virtual bool haschildren(
const UniConfKey &key);
00042
virtual Iter *
iterator(
const UniConfKey &key);
00043 };
00044
00045
#if 0
00046
class UniRegistryGen::Iter :
public UniRegistryGen::Iter
00047 {
00048
public:
00049
00050
virtual ~Iter() { }
00051
00052
00053
00054
00055
00056
virtual void rewind() = 0;
00057
00058
00059
00060
00061
00062
00063
virtual bool next() = 0;
00064
00065
00066
virtual UniConfKey key() const = 0;
00067 };
00068 #endif
00069 #endif