1using System.Collections.Generic;
ArchiveValueKind
Represents the type of value stored in an IArchive.
@ String
Single UTF-8 encoded string.
@ DoubleArray
Array of double-precision floating-point numbers.
@ StringArray
Array of UTF-8 encoded strings.
@ Int64Array
Array of 64-bit signed integers.
@ Bool
Single boolean value.
@ BoolArray
Array of boolean values.
@ Double
Single double-precision floating-point number.
@ Archive
Nested archive object.
@ ArchiveArray
Array of nested archives.
@ Int64
Single 64-bit signed integer.
Represents a hierarchical, strongly-typed key-value archive.
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.
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.
IArchive CreateArchive()
Creates a new, empty archive instance of the same concrete type.
IReadOnlyList< IArchive > GetArchiveArray(string key)
Retrieves an array of nested archives by key.
bool HasKey(string key)
Determines whether a value exists for the specified key.
double GetDouble(string key)
Retrieves a double-precision floating-point value by key.
void SetBool(string key, bool value)
Stores a boolean value under the specified key.
IReadOnlyList< string > GetStringArray(string key)
Retrieves an array of string values by key.
long GetInt64(string key)
Retrieves a 64-bit integer value by key.
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.
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.
bool GetBool(string key)
Retrieves a boolean value by key.
IReadOnlyList< double > GetDoubleArray(string key)
Retrieves an array of double-precision floating-point values by key.
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.
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.
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.
int GetArrayCount(string key)
Gets the number of elements in an array stored under the specified key.