|
Blender V4.3
|
IDPSerializer for IDP_ARRAY. More...
Inherits blender::bke::idprop::IDPropertySerializer.
Public Member Functions | |
| constexpr | IDPArraySerializer ()=default |
| std::string | type_name () const override |
return the type name for (de)serializing. Type name is stored in the type or subtype attribute of the serialized id_property. | |
| std::optional< eIDPropertyType > | property_type () const override |
| return the IDPropertyType for (de)serializing. | |
| std::shared_ptr< DictionaryValue > | idprop_to_dictionary (const IDProperty *id_property) const override |
| create dictionary containing the given id_property. | |
| std::unique_ptr< IDProperty, IDPropertyDeleter > | entry_to_idprop (DictionaryEntryParser &entry_reader) const override |
| convert the entry to an id property. | |
Public Member Functions inherited from blender::bke::idprop::IDPropertySerializer | |
| constexpr | IDPropertySerializer ()=default |
| virtual bool | supports_serializing () const |
| Can the serializer be used? | |
Additional Inherited Members | |
Protected Member Functions inherited from blender::bke::idprop::IDPropertySerializer | |
| std::shared_ptr< DictionaryValue > | create_dictionary (const IDProperty *id_property) const |
| Create a new DictionaryValue instance. | |
IDPSerializer for IDP_ARRAY.
Definition at line 480 of file idprop_serialize.cc.
|
constexprdefault |
|
inlineoverridevirtual |
convert the entry to an id property.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 534 of file idprop_serialize.cc.
References BLI_assert, blender::bke::idprop::DictionaryEntryParser::get_subtype(), blender::bke::idprop::DictionaryEntryParser::get_type(), IDP_ARRAY, IDP_DOUBLE, IDP_FLOAT, and IDP_INT.
|
inlineoverridevirtual |
create dictionary containing the given id_property.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 494 of file idprop_serialize.cc.
References BLI_assert_unreachable, blender::bke::idprop::IDPropertySerializer::create_dictionary(), IDP_Array, IDP_DOUBLE, IDP_FLOAT, IDP_GROUP, IDP_INT, blender::bke::idprop::IDP_KEY_SUBTYPE(), blender::bke::idprop::IDP_KEY_VALUE(), IDProperty::len, result, blender::bke::idprop::serializer_for(), IDProperty::subtype, and blender::bke::idprop::IDPropertySerializer::type_name().
|
inlineoverridevirtual |
return the IDPropertyType for (de)serializing.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 489 of file idprop_serialize.cc.
References IDP_ARRAY.
|
inlineoverridevirtual |
return the type name for (de)serializing. Type name is stored in the type or subtype attribute of the serialized id_property.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 484 of file idprop_serialize.cc.
References blender::bke::idprop::IDP_PROPERTY_TYPENAME_ARRAY().