|
Blender V5.0
|
Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::io |
| namespace | blender::io::serialize |
Typedefs | |
| using | blender::io::serialize::IntValue = PrimitiveValue<int64_t, eValueType::Int> |
| using | blender::io::serialize::DoubleValue = PrimitiveValue<double, eValueType::Double> |
| using | blender::io::serialize::BooleanValue = PrimitiveValue<bool, eValueType::Boolean> |
| using | blender::io::serialize::EnumValue = PrimitiveValue<int, eValueType::Enum> |
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.
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.