![]() |
IDS peak ICV v1.2.0
|

Public Member Functions | |
| None | set (self, str key, AllowedValue|IArchive value) |
| Stores a value under the given key. | |
| T | get (self, str key, Type[T] datatype) |
| Retrieves the value stored under the given key. | |
| IArchive | get_archive (self, str key) |
| Retrieves the archive stored under the given key. | |
| bool | has (self, str key) |
| Checks whether a given key exists in the archive. | |
| List[str] | keys (self) |
| Returns all keys currently stored in the archive. | |
| IArchive | create_archive (self) |
| Creates a new, empty archive instance. | |
Static Public Attributes | |
| AllowedValue | |
| T = TypeVar("T", bound=AllowedValue) | |
Simplified interface for a hierarchical key-value archive system.
Provides dict-like access with restricted value types:
Definition at line 7 of file iarchive.py.
| IArchive create_archive | ( | self | ) |
Creates a new, empty archive instance.
Reimplemented in Archive.
Definition at line 95 of file iarchive.py.
Retrieves the value stored under the given key.
| key | Key of the value to retrieve. |
| datatype | The expected datatype of the value. |
Reimplemented in Archive.
Definition at line 43 of file iarchive.py.
| IArchive get_archive | ( | self, | |
| str | key ) |
Retrieves the archive stored under the given key.
| key | Key of the archive to retrieve. |
Reimplemented in Archive.
Definition at line 57 of file iarchive.py.
| bool has | ( | self, | |
| str | key ) |
Checks whether a given key exists in the archive.
| key | The key to check. |
Reimplemented in Archive.
Definition at line 70 of file iarchive.py.
| List[str] keys | ( | self | ) |
Returns all keys currently stored in the archive.
Reimplemented in Archive.
Definition at line 83 of file iarchive.py.
| None set | ( | self, | |
| str | key, | ||
| AllowedValue | IArchive | value ) |
Stores a value under the given key.
| key | Key to store the value under. |
| value | The value to store (restricted types only). |
Reimplemented in Archive.
Definition at line 30 of file iarchive.py.
|
static |
Definition at line 22 of file iarchive.py.
|
static |
Definition at line 27 of file iarchive.py.