25#include <unordered_map>
29#include <rtl/ustring.hxx>
30#include <osl/mutex.hxx>
34#define VALUE_HEADERSIZE 5
35#define VALUE_TYPEOFFSET 1
36#define VALUE_HEADEROFFSET 5
38#define REG_GUARD(mutex) \
39 osl::Guard< osl::Mutex > aGuard( mutex );
56 bool bCreate =
false);
66 std::u16string_view keyName,
70 std::u16string_view keyName,
103 const OUString& sName,
104 sal_Int16 nSpace)
const;
107 const OUString& sName,
108 sal_Int16 nSpace)
const;
110 typedef std::unordered_map< OUString, ORegKey* >
KeyMap;
120 static constexpr OUStringLiteral
ROOT {
u"/" };
RegError dumpKey(const OUString &sPath, const OUString &sName, sal_Int16 nSpace) const
const store::OStoreFile & getStoreFile() const
RegError initRegistry(const OUString &name, RegAccessMode accessMode, bool bCreate=false)
RegError closeKey(RegKeyHandle hKey)
RegError openKey(RegKeyHandle hKey, std::u16string_view keyName, RegKeyHandle *phOpenKey)
RegError eraseKey(ORegKey *pKey, std::u16string_view keyName)
RegError dumpRegistry(RegKeyHandle hKey) const
RegError dumpValue(const OUString &sPath, const OUString &sName, sal_Int16 nSpace) const
RegError deleteKey(RegKeyHandle hKey, std::u16string_view keyName)
std::unordered_map< OUString, ORegKey * > KeyMap
RegError acquireKey(RegKeyHandle hKey)
const OUString & getName() const
RegError destroyRegistry(const OUString &name)
static constexpr OUStringLiteral ROOT
RegError deleteSubkeysAndValues(ORegKey *pKey)
RegError createKey(RegKeyHandle hKey, std::u16string_view keyName, RegKeyHandle *phNewKey)
RegError releaseKey(RegKeyHandle hKey)
void * RegKeyHandle
defines the type of a registry key handle used in the C API.
RegAccessMode
defines the open/access mode of the registry.
enum SAL_DLLPUBLIC_RTTI RegError
specifies the possible error codes which can occur using the registry API.