AuroraRuntime/Include/Aurora/Registry/IRegistry.hpp
2021-06-27 22:25:29 +01:00

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;
};
}