23 lines
681 B
C++
23 lines
681 B
C++
|
/***
|
||
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: IRegistry.hpp
|
||
|
Date: 2021-6-11
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::Registry
|
||
|
{
|
||
|
using RegistryType = Aurora::Data::DataType;
|
||
|
using RegistryValue = Aurora::Data::Value;
|
||
|
|
||
|
class IRegistry
|
||
|
{
|
||
|
public:
|
||
|
virtual bool KeyExists(const AuString &key, RegistryType &type) = 0;
|
||
|
virtual bool GetOrCreateKey(const AuString &key, const RegistryValue &def, RegistryValue &value) = 0;
|
||
|
virtual bool SetKey(const AuString &key, const RegistryValue &value) = 0;
|
||
|
virtual bool GetKey(const AuString &key, RegistryValue &value) = 0;
|
||
|
};
|
||
|
}
|