1#ifndef __DCL_REGISTRY_H__
2#define __DCL_REGISTRY_H__ 20080607
4#ifndef __DCL_CONFIG_H__
5#include <dcl/_Config.h>
10#ifndef __DCL_OBJECT_H__
13#ifndef __DCL_EXCEPTION_H__
16#ifndef __DCL_STRING_H__
21static const char_t __szWinRegistry_h__[] =
__T(
"dcl/Registry.h");
23#define __THIS_FILE__ __szWinRegistry_h__
38 Registry(HKEY hParentKey);
43 REGSAM samDesired = KEY_READ
48 void create(
const String& strKey, REGSAM samDesired = KEY_ALL_ACCESS)
51 void open(
const String& strKey, REGSAM samDesired = KEY_ALL_ACCESS)
58 String getString(
const String& strName)
61 int getInteger(
const String& strName)
64 void setValue(
const String& strName,
const String& strValue)
67 void setValue(
const String& strName,
int nValue);
70 HKEY parentKey()
const;
73 const String& keyName()
const;
75 bool existsValue(
const String& strName);
76 bool existsSubKey(
const String& strKey)
const;
77 static bool existsKey(
const String& strKeyName, HKEY hParentKey);
89inline HKEY Registry::parentKey()
const
94inline HKEY Registry::key()
const
100inline REGSAM Registry::sam()
const
106inline const String& Registry::keyName()
const
112inline bool Registry::opened()
const
117inline bool Registry::existsSubKey(
const String& strKey)
const
119 return Registry::existsKey(strKey,
m_hKey);
127#define __THIS_FILE__ __T(__FILE__)
#define DECLARE_CLASSINFO(class_name)
#define __DCL_ASSERT(expr)
__DCL_BEGIN_NAMESPACE struct _REGISTRY_DATAINFO REGISTRY_DATAINFO
void CharsetConvertException * setValue(UTF8Encoder::encode(_value), _assignType)
LONG getDataInfo(const String &strName, REGISTRY_DATAINFO &info)