Blender  V3.3
Public Member Functions | List of all members
blender::bke::idprop::IDPArraySerializer Class Reference

IDPSerializer for IDP_ARRAY. More...

Inheritance diagram for blender::bke::idprop::IDPArraySerializer:
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. More...
 
std::optional< eIDPropertyTypeproperty_type () const override
 return the IDPropertyType for (de)serializing. More...
 
std::shared_ptr< DictionaryValueidprop_to_dictionary (const struct IDProperty *id_property) const override
 create dictionary containing the given id_property. More...
 
std::unique_ptr< IDProperty, IDPropertyDeleterentry_to_idprop (DictionaryEntryParser &entry_reader) const override
 convert the entry to an id property. More...
 
- Public Member Functions inherited from blender::bke::idprop::IDPropertySerializer
constexpr IDPropertySerializer ()=default
 
virtual bool supports_serializing () const
 Can the serializer be used? More...
 

Additional Inherited Members

- Protected Member Functions inherited from blender::bke::idprop::IDPropertySerializer
std::shared_ptr< DictionaryValuecreate_dictionary (const struct IDProperty *id_property) const
 Create a new DictionaryValue instance. More...
 

Detailed Description

IDPSerializer for IDP_ARRAY.

Definition at line 426 of file idprop_serialize.cc.

Constructor & Destructor Documentation

◆ IDPArraySerializer()

constexpr blender::bke::idprop::IDPArraySerializer::IDPArraySerializer ( )
constexprdefault

Member Function Documentation

◆ entry_to_idprop()

std::unique_ptr<IDProperty, IDPropertyDeleter> blender::bke::idprop::IDPArraySerializer::entry_to_idprop ( DictionaryEntryParser entry_reader) const
inlineoverridevirtual

◆ idprop_to_dictionary()

std::shared_ptr<DictionaryValue> blender::bke::idprop::IDPArraySerializer::idprop_to_dictionary ( const struct IDProperty id_property) const
inlineoverridevirtual

◆ property_type()

std::optional<eIDPropertyType> blender::bke::idprop::IDPArraySerializer::property_type ( ) const
inlineoverridevirtual

return the IDPropertyType for (de)serializing.

Implements blender::bke::idprop::IDPropertySerializer.

Definition at line 435 of file idprop_serialize.cc.

References IDP_ARRAY.

◆ type_name()

std::string blender::bke::idprop::IDPArraySerializer::type_name ( ) const
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 430 of file idprop_serialize.cc.

References blender::bke::idprop::IDP_PROPERTY_TYPENAME_ARRAY().


The documentation for this class was generated from the following file: