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

IDPSerializer for IDP_INT. More...

Inheritance diagram for blender::bke::idprop::IDPIntSerializer:
blender::bke::idprop::IDPropertySerializer

Public Member Functions

constexpr IDPIntSerializer ()=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_INT.

Definition at line 306 of file idprop_serialize.cc.

Constructor & Destructor Documentation

◆ IDPIntSerializer()

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

Member Function Documentation

◆ entry_to_idprop()

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

◆ idprop_to_dictionary()

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

create dictionary containing the given id_property.

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

Definition at line 320 of file idprop_serialize.cc.

References IDP_Int, blender::bke::idprop::IDP_KEY_VALUE(), and result.

◆ property_type()

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

return the IDPropertyType for (de)serializing.

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

Definition at line 315 of file idprop_serialize.cc.

References IDP_INT.

◆ type_name()

std::string blender::bke::idprop::IDPIntSerializer::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 310 of file idprop_serialize.cc.

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


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