|
Blender V5.3
|
IDPSerializer for IDP_GROUP. More...
Inherits blender::bke::idprop::IDPropertySerializer.
Public Member Functions | |
| constexpr | IDPGroupSerializer ()=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_GROUP.
Definition at line 649 of file idprop_serialize.cc.
|
constexprdefault |
|
inlineoverridevirtual |
convert the entry to an id property.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 679 of file idprop_serialize.cc.
References blender::BLI_assert(), blender::bke::idprop::create_group(), blender::io::serialize::Dictionary, blender::element, blender::bke::idprop::DictionaryEntryParser::get_array_value(), blender::bke::idprop::DictionaryEntryParser::get_name(), blender::bke::idprop::DictionaryEntryParser::get_type(), blender::IDP_AddToGroup(), blender::IDP_FreeProperty(), blender::IDP_GROUP, blender::bke::idprop::idprop_from_value(), and blender::result.
|
inlineoverridevirtual |
create dictionary containing the given id_property.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 663 of file idprop_serialize.cc.
References array< T, alignment >::append(), blender::bke::idprop::IDPropertySerializer::create_dictionary(), blender::IDProperty::data, blender::IDPropertyData::group, blender::bke::idprop::IDP_KEY_VALUE(), blender::bke::idprop::IDPropertySerializer::idprop_to_dictionary(), blender::bke::idprop::IDPropertySerializer::IDPropertySerializer(), blender::result, blender::bke::idprop::serializer_for(), and blender::IDProperty::type.
|
inlineoverridevirtual |
return the IDPropertyType for (de)serializing.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 658 of file idprop_serialize.cc.
References blender::IDP_GROUP.
|
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 653 of file idprop_serialize.cc.
References blender::bke::idprop::IDP_PROPERTY_TYPENAME_GROUP().