
Data Structures | |
| class | Handle |
Public Member Functions | |
| Archive () | |
Constructs an empty Archive instance. | |
| void | Dispose () |
| Releases all resources used by the Archive class. | |
| override bool | HasKey (string key) |
| Checks whether a key exists in the archive. | |
| override ArchiveValueKind | GetValueKind (string key) |
| Returns the kind of value stored under a key. | |
| override IReadOnlyList< string > | GetKeys () |
| Returns all keys stored in the archive. | |
| override void | SetBool (string key, bool value) |
| Sets a boolean value. | |
| override bool | GetBool (string key) |
| Returns the boolean value. | |
| override void | SetInt64 (string key, long value) |
| Sets an integer value. | |
| override long | GetInt64 (string key) |
| Returns the integer value. | |
| override void | SetDouble (string key, double value) |
| Sets a double precision floating point value. | |
| override double | GetDouble (string key) |
| Returns the double precision floating point value. | |
| override void | SetString (string key, string value) |
| Sets a string value. | |
| override string | GetString (string key) |
| Returns the string value. | |
| override void | SetArchive (string key, IArchive value) |
| Sets a nested archive. | |
| override IArchive | GetArchive (string key) |
| Returns the nested archive. | |
| override int | GetArrayCount (string key) |
| Returns the number of elements in an array value. | |
| override void | SetBoolArray (string key, IEnumerable< bool > value) |
| Sets an array of boolean values. | |
| override IReadOnlyList< bool > | GetBoolArray (string key) |
| Returns the array of boolean values. | |
| override void | SetInt64Array (string key, IEnumerable< long > value) |
| Sets an array of integer values. | |
| override IReadOnlyList< long > | GetInt64Array (string key) |
| Returns the array of integer values. | |
| override void | SetDoubleArray (string key, IEnumerable< double > value) |
| Sets an array of double precision floating point values. | |
| override IReadOnlyList< double > | GetDoubleArray (string key) |
| Returns the array of double precision floating point values. | |
| override void | SetStringArray (string key, IEnumerable< string > value) |
| Sets an array of string values. | |
| override IReadOnlyList< string > | GetStringArray (string key) |
| Returns the array of string values. | |
| override void | SetArchiveArray (string key, IEnumerable< IArchive > value) |
| Sets an array of nested archives. | |
| override IReadOnlyList< IArchive > | GetArchiveArray (string key) |
| Returns the array of nested archives. | |
| override IArchive | CreateArchive () |
| Creates a new archive instance. | |
A key-value store that implements the IArchive interface.
The Archive class provides a concrete implementation of a serialization archive that stores data as key-value pairs. It supports various data types including primitives (bool, long, double), strings, nested archives, and arrays of these types.
|
inline |
Constructs an empty Archive instance.
| IcvInvalidConfigurationException | The library is not initialized. |
|
inline |
Creates a new archive instance.
IArchive instance. Implements IArchive.
|
inline |
Releases all resources used by the Archive class.
|
inline |
Returns the nested archive.
| key | The key of the archive to retrieve. |
Implements IArchive.
|
inline |
Returns the array of nested archives.
| key | The key of the array to retrieve. |
IArchive objects stored under the specified key. Implements IArchive.
|
inline |
Returns the number of elements in an array value.
| key | The key of the array. |
0 if the key does not exist or is not an array. Implements IArchive.
|
inline |
Returns the boolean value.
| key | The key of the value to retrieve. |
Implements IArchive.
|
inline |
Returns the array of boolean values.
| key | The key of the array to retrieve. |
Implements IArchive.
|
inline |
Returns the double precision floating point value.
| key | The key of the value to retrieve. |
Implements IArchive.
|
inline |
Returns the array of double precision floating point values.
| key | The key of the array to retrieve. |
Implements IArchive.
|
inline |
Returns the integer value.
| key | The key of the value to retrieve. |
Implements IArchive.
|
inline |
Returns the array of integer values.
| key | The key of the array to retrieve. |
Implements IArchive.
|
inline |
Returns all keys stored in the archive.
Implements IArchive.
|
inline |
Returns the string value.
| key | The key of the value to retrieve. |
Implements IArchive.
|
inline |
Returns the array of string values.
| key | The key of the array to retrieve. |
Implements IArchive.
|
inline |
Returns the kind of value stored under a key.
| key | The key to query. |
ArchiveValueKind representing the stored type. Implements IArchive.
|
inline |
Checks whether a key exists in the archive.
| key | The key to check. |
true if the key exists, otherwise false. Implements IArchive.
|
inline |
Sets a nested archive.
| key | The key under which to store the archive. |
| value | A non-null IArchive instance to store under the specified key. |
| IcvMismatchException | The specified value is not an instance of Archive. |
Implements IArchive.
|
inline |
Sets an array of nested archives.
| key | The key under which to store the array. |
| value | A non-null collection of IArchive instances to store. |
| IcvNullPointerException | The specified value is null or contains null/invalid entries. |
| IcvInternalErrorException | The underlying handle cannot be safely pinned. |
Implements IArchive.
|
inline |
Sets a boolean value.
| key | The key under which to store the value. |
| value | The boolean value to store. |
Implements IArchive.
|
inline |
Sets an array of boolean values.
| key | The key under which to store the array. |
| value | The collection of boolean values to store. |
Implements IArchive.
|
inline |
Sets a double precision floating point value.
| key | The key under which to store the value. |
| value | The double value to store. |
Implements IArchive.
|
inline |
Sets an array of double precision floating point values.
| key | The key under which to store the array. |
| value | The collection of double values to store. |
Implements IArchive.
|
inline |
Sets an integer value.
| key | The key under which to store the value. |
| value | The 64-bit integer value to store. |
Implements IArchive.
|
inline |
Sets an array of integer values.
| key | The key under which to store the array. |
| value | The collection of 64-bit integer values to store. |
Implements IArchive.
|
inline |
Sets a string value.
| key | The key under which to store the value. |
| value | The string value to store. |
Implements IArchive.
|
inline |
Sets an array of string values.
| key | The key under which to store the array. |
| value | The collection of string values to store. |
Implements IArchive.