|
Blender V4.3
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::io |
| namespace | blender::io::serialize |
Functions | |
| void | blender::io::serialize::write_json_file (StringRef path, const Value &value) |
| std::shared_ptr< Value > | blender::io::serialize::read_json_file (StringRef path) |
An abstraction layer for serialization formats.
Allowing to read/write data to a serialization format like JSON.
The abstraction layer has a limited set of data types it supports. There are specific classes that builds up the data structure that can be (de)serialized.
*Value classes.The next example would format an integer value (42) as JSON the result will be stored inside out.
To add a new formatter a new sub-class of Formatter must be created and the serialize/deserialize methods should be implemented.
Definition in file BLI_serialize.hh.