diff options
author | Jeroen Bakker <jbakker> | 2021-10-26 14:05:59 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-10-26 14:09:10 +0300 |
commit | ddf97d6270d0a0da36257bb676d9d05513064de5 (patch) | |
tree | a7b50b034db2ee79f740e7c228757fb7918a8228 /source/blender/editors/screen | |
parent | d20fa6c4d48580bf5fc140cf83fd7d8829bd8e09 (diff) |
BlenLib: Add JSON Serialization/Deserialization Abstraction Layer.
Adds an abstraction layer to switch between serialization formats.
Currently only supports JSON. The abstraction layer supports
`String`, `Int`, `Array`, `Null`, `Boolean`, `Float` and `Object`. This
feature is only CPP complaint.
To write from a stream, the structure can be built by creating a value
(any subclass of `blender::io::serialize::Value` can do, and pass it to
the `serialize` method of a `blender::io::serialize::Formatter`. The
formatter is abstract and there is one implementation for JSON
(`JsonFormatter`).
To read from a stream use the `deserialize` method of the formatter.
{D12693} uses this abstraction layer to read/write asset indexes.
Reviewed By: Severin, sybren
Maniphest Tasks: T91430
Differential Revision: https://developer.blender.org/D12544
Diffstat (limited to 'source/blender/editors/screen')
0 files changed, 0 insertions, 0 deletions