|
Blender V4.3
|
Namespaces | |
| namespace | json |
Classes | |
| class | ArrayValue |
| class | DictionaryValue |
| class | Formatter |
| class | JsonFormatter |
| class | NullValue |
| class | PrimitiveValue |
| class | StringValue |
| class | Value |
Typedefs | |
| using | IntValue = PrimitiveValue<int64_t, eValueType::Int> |
| using | DoubleValue = PrimitiveValue<double, eValueType::Double> |
| using | BooleanValue = PrimitiveValue<bool, eValueType::Boolean> |
| using | EnumValue = PrimitiveValue<int, eValueType::Enum> |
Enumerations | |
| enum class | eValueType { String , Int , Array , Null , Boolean , Double , Dictionary , Enum } |
Functions | |
| void | write_json_file (StringRef path, const Value &value) |
| std::shared_ptr< Value > | read_json_file (StringRef path) |
| static void | convert_to_json (nlohmann::ordered_json &j, const Value &value) |
| static void | convert_to_json (nlohmann::ordered_json &j, const ArrayValue &value) |
| static void | convert_to_json (nlohmann::ordered_json &j, const DictionaryValue &value) |
| static std::unique_ptr< Value > | convert_from_json (const nlohmann::ordered_json &j) |
| static std::unique_ptr< ArrayValue > | convert_from_json_to_array (const nlohmann::ordered_json &j) |
| static std::unique_ptr< DictionaryValue > | convert_from_json_to_object (const nlohmann::ordered_json &j) |
Definition at line 92 of file BLI_serialize.hh.
Definition at line 91 of file BLI_serialize.hh.
Definition at line 93 of file BLI_serialize.hh.
Definition at line 90 of file BLI_serialize.hh.
|
strong |
Enumeration containing all sub-classes of Value. It is used as for type checking.
| Enumerator | |
|---|---|
| String | |
| Int | |
| Array | |
| Null | |
| Boolean | |
| Double | |
| Dictionary | |
| Enum | |
Definition at line 75 of file BLI_serialize.hh.
|
static |
Definition at line 160 of file serialize.cc.
References BLI_assert_unreachable, convert_from_json_to_array(), and convert_from_json_to_object().
Referenced by convert_from_json_to_array(), convert_from_json_to_object(), and blender::io::serialize::JsonFormatter::deserialize().
|
static |
Definition at line 141 of file serialize.cc.
References array< T, alignment >::append(), and convert_from_json().
Referenced by convert_from_json().
|
static |
Definition at line 150 of file serialize.cc.
References convert_from_json().
Referenced by convert_from_json().
|
static |
Definition at line 69 of file serialize.cc.
References convert_to_json().
|
static |
Definition at line 81 of file serialize.cc.
References convert_to_json().
|
static |
Definition at line 93 of file serialize.cc.
References Array, blender::io::serialize::Value::as_dictionary_value(), Boolean, convert_to_json(), Dictionary, Double, Enum, Int, Null, and String.
Referenced by convert_to_json(), convert_to_json(), convert_to_json(), and blender::io::serialize::JsonFormatter::serialize().
Definition at line 382 of file serialize.cc.
References blender::io::serialize::JsonFormatter::deserialize().
Definition at line 375 of file serialize.cc.
References blender::io::serialize::JsonFormatter::serialize().