Blender
V3.3
|
Dummy serializer for unknown and unsupported types. More...
Public Member Functions | |
constexpr | IDPUnknownSerializer ()=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. More... | |
std::optional< eIDPropertyType > | property_type () const override |
return the IDPropertyType for (de)serializing. More... | |
std::shared_ptr< DictionaryValue > | idprop_to_dictionary (const struct IDProperty *UNUSED(id_property)) const override |
bool | supports_serializing () const override |
Can the serializer be used? More... | |
std::unique_ptr< IDProperty, IDPropertyDeleter > | entry_to_idprop (DictionaryEntryParser &UNUSED(entry_reader)) const override |
![]() | |
constexpr | IDPropertySerializer ()=default |
virtual std::shared_ptr< DictionaryValue > | idprop_to_dictionary (const struct IDProperty *id_property) const =0 |
create dictionary containing the given id_property. More... | |
virtual std::unique_ptr< IDProperty, IDPropertyDeleter > | entry_to_idprop (DictionaryEntryParser &entry_reader) const =0 |
convert the entry to an id property. More... | |
Additional Inherited Members | |
![]() | |
std::shared_ptr< DictionaryValue > | create_dictionary (const struct IDProperty *id_property) const |
Create a new DictionaryValue instance. More... | |
Dummy serializer for unknown and unsupported types.
Definition at line 655 of file idprop_serialize.cc.
|
constexprdefault |
|
inlineoverride |
Definition at line 679 of file idprop_serialize.cc.
|
inlineoverride |
Definition at line 667 of file idprop_serialize.cc.
References BLI_assert_unreachable.
|
inlineoverridevirtual |
return the IDPropertyType for (de)serializing.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 662 of file idprop_serialize.cc.
|
inlineoverridevirtual |
Can the serializer be used?
IDP_ID and IDP_IDPARRAY aren't supported for serialization.
Reimplemented from blender::bke::idprop::IDPropertySerializer.
Definition at line 674 of file idprop_serialize.cc.
|
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 658 of file idprop_serialize.cc.
References blender::bke::idprop::IDP_PROPERTY_TYPENAME_UNKNOWN().