|
Blender
V3.3
|
Go to the source code of this file.
Namespaces | |
| blender | |
| blender::io | |
| 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::ArrayValue = ContainerValue< Vector< std::shared_ptr< Value > >, eValueType::Array > |
| using | blender::io::serialize::DictionaryElementType = std::pair< std::string, std::shared_ptr< Value > > |
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.