Blender
V3.3
|
IDPSerializer for IDP_DOUBLE. More...
Public Member Functions | |
constexpr | IDPDoubleSerializer ()=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 *id_property) const override |
create dictionary containing the given id_property. More... | |
std::unique_ptr< IDProperty, IDPropertyDeleter > | entry_to_idprop (DictionaryEntryParser &entry_reader) const override |
convert the entry to an id property. More... | |
![]() | |
constexpr | IDPropertySerializer ()=default |
virtual bool | supports_serializing () const |
Can the serializer be used? More... | |
Additional Inherited Members | |
![]() | |
std::shared_ptr< DictionaryValue > | create_dictionary (const struct IDProperty *id_property) const |
Create a new DictionaryValue instance. More... | |
IDPSerializer for IDP_DOUBLE.
Definition at line 386 of file idprop_serialize.cc.
|
constexprdefault |
|
inlineoverridevirtual |
convert the entry to an id property.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 409 of file idprop_serialize.cc.
References BLI_assert, blender::bke::idprop::create(), blender::bke::idprop::DictionaryEntryParser::get_double_value(), blender::bke::idprop::DictionaryEntryParser::get_name(), blender::bke::idprop::DictionaryEntryParser::get_type(), and IDP_DOUBLE.
|
inlineoverridevirtual |
create dictionary containing the given id_property.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 400 of file idprop_serialize.cc.
References IDP_Double, blender::bke::idprop::IDP_KEY_VALUE(), and result.
|
inlineoverridevirtual |
return the IDPropertyType for (de)serializing.
Implements blender::bke::idprop::IDPropertySerializer.
Definition at line 395 of file idprop_serialize.cc.
References IDP_DOUBLE.
|
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 390 of file idprop_serialize.cc.
References blender::bke::idprop::IDP_PROPERTY_TYPENAME_DOUBLE().