IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
IArchive.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
4
29
34{
36 Bool,
37
40
42 Int64,
43
46
48 Double,
49
52
54 String,
55
58
60 Archive,
61
64}
65
74
78public interface IArchive
79{
87 bool HasKey(string key);
88
95
102 IReadOnlyList<string> GetKeys();
103
112 void SetBool(string key, bool value);
113
119 bool GetBool(string key);
120
129 void SetInt64(string key, long value);
130
136 long GetInt64(string key);
137
143 void SetDouble(string key, double value);
144
150 double GetDouble(string key);
151
157 void SetString(string key, string value);
158
164 string GetString(string key);
165
171 void SetArchive(string key, IArchive value);
172
178 IArchive GetArchive(string key);
179
185 int GetArrayCount(string key);
186
192 void SetBoolArray(string key, IEnumerable<bool> value);
193
199 IReadOnlyList<bool> GetBoolArray(string key);
200
206 void SetInt64Array(string key, IEnumerable<long> value);
207
213 IReadOnlyList<long> GetInt64Array(string key);
214
220 void SetDoubleArray(string key, IEnumerable<double> value);
221
227 IReadOnlyList<double> GetDoubleArray(string key);
228
234 void SetStringArray(string key, IEnumerable<string> value);
235
241 IReadOnlyList<string> GetStringArray(string key);
242
248 void SetArchiveArray(string key, IEnumerable<IArchive> value);
249
255 IReadOnlyList<IArchive> GetArchiveArray(string key);
256
266}
ArchiveValueKind
Represents the type of value stored in an IArchive.
Definition IArchive.cs:34
@ DoubleArray
Array of double-precision floating-point numbers.
@ StringArray
Array of UTF-8 encoded strings.
@ Int64Array
Array of 64-bit signed integers.
@ Double
Single double-precision floating-point number.
Represents a hierarchical, strongly-typed key-value archive.
Definition IArchive.cs:79
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.