
Public Member Functions | |
| bool | HasKey (string key) |
| Determines whether a value exists for the specified key. | |
| ArchiveValueKind | GetValueKind (string key) |
| Gets the value kind associated with the specified key. | |
| IReadOnlyList< string > | GetKeys () |
| Gets all keys currently stored in the archive. | |
| void | SetBool (string key, bool value) |
| Stores a boolean value under the specified key. | |
| bool | GetBool (string key) |
| Retrieves a boolean value by key. | |
| void | SetInt64 (string key, long value) |
| Stores a 64-bit integer value under the specified key. | |
| long | GetInt64 (string key) |
| Retrieves a 64-bit integer value by key. | |
| void | SetDouble (string key, double value) |
| Stores a double-precision floating-point value under the specified key. | |
| double | GetDouble (string key) |
| Retrieves a double-precision floating-point value by key. | |
| void | SetString (string key, string value) |
| Stores a string value under the specified key. | |
| string | GetString (string key) |
| Retrieves a string value by key. | |
| void | SetArchive (string key, IArchive value) |
| Stores a nested archive under the specified key. | |
| IArchive | GetArchive (string key) |
| Retrieves a nested archive by key. | |
| int | GetArrayCount (string key) |
| Gets the number of elements in an array stored under the specified key. | |
| void | SetBoolArray (string key, IEnumerable< bool > value) |
| Stores an array of boolean values under the specified key. | |
| IReadOnlyList< bool > | GetBoolArray (string key) |
| Retrieves an array of boolean values by key. | |
| void | SetInt64Array (string key, IEnumerable< long > value) |
| Stores an array of 64-bit integer values under the specified key. | |
| IReadOnlyList< long > | GetInt64Array (string key) |
| Retrieves an array of 64-bit integer values by key. | |
| void | SetDoubleArray (string key, IEnumerable< double > value) |
| Stores an array of double-precision floating-point values under the specified key. | |
| IReadOnlyList< double > | GetDoubleArray (string key) |
| Retrieves an array of double-precision floating-point values by key. | |
| void | SetStringArray (string key, IEnumerable< string > value) |
| Stores an array of string values under the specified key. | |
| IReadOnlyList< string > | GetStringArray (string key) |
| Retrieves an array of string values by key. | |
| void | SetArchiveArray (string key, IEnumerable< IArchive > value) |
| Stores an array of nested archives under the specified key. | |
| IReadOnlyList< IArchive > | GetArchiveArray (string key) |
| Retrieves an array of nested archives by key. | |
| IArchive | CreateArchive () |
| Creates a new, empty archive instance of the same concrete type. | |
Represents a hierarchical, strongly-typed key-value archive.
An IArchive stores values by string keys and supports primitive values, arrays, and nested archives. It is intended for serialization and deserialization of structured data.
| IArchive CreateArchive | ( | ) |
Creates a new, empty archive instance of the same concrete type.
The returned archive is empty and not automatically stored in the current archive.
Implemented in ArchiveBase, and Archive.
| IArchive GetArchive | ( | string | key | ) |
Retrieves a nested archive by key.
| key | The key of the archive to retrieve. |
Implemented in ArchiveBase, and Archive.
| IReadOnlyList< IArchive > GetArchiveArray | ( | string | key | ) |
Retrieves an array of nested archives by key.
| key | The key of the array to retrieve. |
Implemented in ArchiveBase, and Archive.
| int GetArrayCount | ( | string | key | ) |
Gets the number of elements in an array stored under the specified key.
| key | The key referencing the array. |
Implemented in ArchiveBase, and Archive.
| bool GetBool | ( | string | key | ) |
Retrieves a boolean value by key.
| key | The key of the value to retrieve. |
Implemented in ArchiveBase, and Archive.
| IReadOnlyList< bool > GetBoolArray | ( | string | key | ) |
Retrieves an array of boolean values by key.
| key | The key of the array to retrieve. |
Implemented in ArchiveBase, and Archive.
| double GetDouble | ( | string | key | ) |
Retrieves a double-precision floating-point value by key.
| key | The key of the value to retrieve. |
Implemented in ArchiveBase, and Archive.
| IReadOnlyList< double > GetDoubleArray | ( | string | key | ) |
Retrieves an array of double-precision floating-point values by key.
| key | The key of the array to retrieve. |
Implemented in ArchiveBase, and Archive.
| long GetInt64 | ( | string | key | ) |
Retrieves a 64-bit integer value by key.
| key | The key of the value to retrieve. |
Implemented in ArchiveBase, and Archive.
| IReadOnlyList< long > GetInt64Array | ( | string | key | ) |
Retrieves an array of 64-bit integer values by key.
| key | The key of the array to retrieve. |
Implemented in ArchiveBase, and Archive.
| IReadOnlyList< string > GetKeys | ( | ) |
Gets all keys currently stored in the archive.
Implemented in ArchiveBase, and Archive.
| string GetString | ( | string | key | ) |
Retrieves a string value by key.
| key | The key of the value to retrieve. |
Implemented in ArchiveBase, and Archive.
| IReadOnlyList< string > GetStringArray | ( | string | key | ) |
Retrieves an array of string values by key.
| key | The key of the array to retrieve. |
Implemented in ArchiveBase, and Archive.
| ArchiveValueKind GetValueKind | ( | string | key | ) |
Gets the value kind associated with the specified key.
| key | The key whose value kind is requested. |
Implemented in ArchiveBase, and Archive.
| bool HasKey | ( | string | key | ) |
Determines whether a value exists for the specified key.
| key | The key to check. |
true if the key exists in the archive; otherwise, false. Implemented in ArchiveBase, and Archive.
| void SetArchive | ( | string | key, |
| IArchive | value ) |
Stores a nested archive under the specified key.
| key | The key under which the archive is stored. |
| value | The archive to store. Must not be null. |
Implemented in ArchiveBase, and Archive.
| void SetArchiveArray | ( | string | key, |
| IEnumerable< IArchive > | value ) |
Stores an array of nested archives under the specified key.
| key | The key under which the array is stored. |
| value | The archives to store. Must not be null. |
Implemented in ArchiveBase, and Archive.
| void SetBool | ( | string | key, |
| bool | value ) |
Stores a boolean value under the specified key.
| key | The key under which the value is stored. |
| value | The boolean value to store. |
If a value already exists for key , it is overwritten.
Implemented in ArchiveBase, and Archive.
| void SetBoolArray | ( | string | key, |
| IEnumerable< bool > | value ) |
Stores an array of boolean values under the specified key.
| key | The key under which the array is stored. |
| value | The boolean values to store. Must not be null. |
Implemented in ArchiveBase, and Archive.
| void SetDouble | ( | string | key, |
| double | value ) |
Stores a double-precision floating-point value under the specified key.
| key | The key under which the value is stored. |
| value | The floating-point value to store. |
Implemented in ArchiveBase, and Archive.
| void SetDoubleArray | ( | string | key, |
| IEnumerable< double > | value ) |
Stores an array of double-precision floating-point values under the specified key.
| key | The key under which the array is stored. |
| value | The floating-point values to store. Must not be null. |
Implemented in ArchiveBase, and Archive.
| void SetInt64 | ( | string | key, |
| long | value ) |
Stores a 64-bit integer value under the specified key.
| key | The key under which the value is stored. |
| value | The integer value to store. |
If a value already exists for key , it is overwritten.
Implemented in ArchiveBase, and Archive.
| void SetInt64Array | ( | string | key, |
| IEnumerable< long > | value ) |
Stores an array of 64-bit integer values under the specified key.
| key | The key under which the array is stored. |
| value | The integer values to store. Must not be null. |
Implemented in ArchiveBase, and Archive.
| void SetString | ( | string | key, |
| string | value ) |
Stores a string value under the specified key.
| key | The key under which the value is stored. |
| value | The string value to store. Must not be null. |
Implemented in ArchiveBase, and Archive.
| void SetStringArray | ( | string | key, |
| IEnumerable< string > | value ) |
Stores an array of string values under the specified key.
| key | The key under which the array is stored. |
| value | The string values to store. Must not be null. |
Implemented in ArchiveBase, and Archive.