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

Dummy serializer for unknown and unsupported types. More...

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

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

Dummy serializer for unknown and unsupported types.

Definition at line 655 of file idprop_serialize.cc.

Constructor & Destructor Documentation

◆ IDPUnknownSerializer()

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

Member Function Documentation

◆ entry_to_idprop()

std::unique_ptr<IDProperty, IDPropertyDeleter> blender::bke::idprop::IDPUnknownSerializer::entry_to_idprop ( DictionaryEntryParser UNUSEDentry_reader) const
inlineoverride

Definition at line 679 of file idprop_serialize.cc.

◆ idprop_to_dictionary()

std::shared_ptr<DictionaryValue> blender::bke::idprop::IDPUnknownSerializer::idprop_to_dictionary ( const struct IDProperty UNUSEDid_property) const
inlineoverride

Definition at line 667 of file idprop_serialize.cc.

References BLI_assert_unreachable.

◆ property_type()

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

return the IDPropertyType for (de)serializing.

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

Definition at line 662 of file idprop_serialize.cc.

◆ supports_serializing()

bool blender::bke::idprop::IDPUnknownSerializer::supports_serializing ( ) const
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.

◆ type_name()

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

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


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