2using System.Collections.Generic;
20 public abstract bool HasKey(
string key);
26 public abstract IReadOnlyList<string>
GetKeys();
29 public abstract void SetBool(
string key,
bool value);
35 public abstract void SetInt64(
string key,
long value);
41 public abstract void SetDouble(
string key,
double value);
47 public abstract void SetString(
string key,
string value);
62 public abstract void SetBoolArray(
string key, IEnumerable<bool> value);
68 public abstract void SetInt64Array(
string key, IEnumerable<long> value);
Base class for IArchive implementations.
void SetArchiveArray(string key, IEnumerable< IArchive > value)
Stores an array of nested archives under the specified key.
IArchive GetArchive(string key)
Retrieves a nested archive by key.The stored child archive.
void SetBoolArray(string key, IEnumerable< bool > value)
Stores an array of boolean values under the specified key.
IReadOnlyList< string > GetKeys()
Gets all keys currently stored in the archive.A read-only list containing all stored keys.
IArchive CreateArchive()
Creates a new, empty archive instance of the same concrete type.The returned archive is empty and not...
IReadOnlyList< IArchive > GetArchiveArray(string key)
Retrieves an array of nested archives by key.A read-only list of child archives.
bool HasKey(string key)
Determines whether a value exists for the specified key.true if the key exists in the archive; otherw...
double GetDouble(string key)
Retrieves a double-precision floating-point value by key.The stored floating-point value.
void SetBool(string key, bool value)
Stores a boolean value under the specified key.If a value already exists for key ,...
IReadOnlyList< string > GetStringArray(string key)
Retrieves an array of string values by key.A read-only list of string values.
long GetInt64(string key)
Retrieves a 64-bit integer value by key.The stored integer value.
void SetStringArray(string key, IEnumerable< string > value)
Stores an array of string values under the specified key.
IReadOnlyList< long > GetInt64Array(string key)
Retrieves an array of 64-bit integer values by key.A read-only list of integer values.
void SetArchive(string key, IArchive value)
Stores a nested archive under the specified key.
void SetInt64(string key, long value)
Stores a 64-bit integer value under the specified key.If a value already exists for key ,...
bool GetBool(string key)
Retrieves a boolean value by key.The stored boolean value.
IReadOnlyList< double > GetDoubleArray(string key)
Retrieves an array of double-precision floating-point values by key.A read-only list of floating-poin...
void SetInt64Array(string key, IEnumerable< long > value)
Stores an array of 64-bit integer values under the specified key.
ArchiveValueKind GetValueKind(string key)
Gets the value kind associated with the specified key.The kind of value stored under the key.
void SetDouble(string key, double value)
Stores a double-precision floating-point value under the specified key.
string GetString(string key)
Retrieves a string value by key.The stored string value.
void SetDoubleArray(string key, IEnumerable< double > value)
Stores an array of double-precision floating-point values under the specified key.
void SetString(string key, string value)
Stores a string value under the specified key.
IReadOnlyList< bool > GetBoolArray(string key)
Retrieves an array of boolean values by key.A read-only list of boolean values.
int GetArrayCount(string key)
Gets the number of elements in an array stored under the specified key.The number of elements in the ...
ArchiveValueKind
Represents the type of value stored in an IArchive.
Represents a hierarchical, strongly-typed key-value archive.