- DOc
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-27 13:16:08 +02:00
parent 07f25762b4
commit 54706c29dc
1 changed files with 16 additions and 0 deletions

View File

@ -256,11 +256,27 @@ public struct RegistryEntry
}
}
/**
* A registry for managing
* multiple mappings of
* string-based names to
* configuration entries
*/
public struct Registry
{
private ConfigEntry[string] entries;
private bool allowOverwriteEntry;
/**
* Creates a new `Registry`
* and sets the overwriting policy
*
* Params:
* allowOverwritingOfEntries = `true`
* if you want to allow overwriting of
* previously added entries, otherwise
* `false`
*/
this(bool allowOverwritingOfEntries)
{
setAllowOverwrite(allowOverwritingOfEntries);