Blender V4.3
blender::bke::idprop::DictionaryEntryParser Struct Reference

Helper class for parsing DictionaryValues. More...

Public Member Functions

 DictionaryEntryParser (const DictionaryValue &value)
 
std::optional< eIDPropertyTypeget_type () const
 
std::optional< eIDPropertyTypeget_subtype () const
 
std::optional< std::string > get_name () const
 
std::optional< std::string > get_string_value () const
 
std::optional< bool > get_bool_value () const
 
std::optional< int32_tget_int_value () const
 
std::optional< floatget_float_value () const
 
std::optional< doubleget_double_value () const
 
std::optional< intget_enum_value () const
 
const ArrayValueget_array_value () const
 
std::optional< Vector< int32_t > > get_array_int_value () const
 
std::optional< Vector< float > > get_array_float_value () const
 
std::optional< Vector< double > > get_array_double_value () const
 

Public Attributes

DictionaryValue::Lookup lookup
 

Detailed Description

Helper class for parsing DictionaryValues.

Definition at line 103 of file idprop_serialize.cc.

Constructor & Destructor Documentation

◆ DictionaryEntryParser()

blender::bke::idprop::DictionaryEntryParser::DictionaryEntryParser ( const DictionaryValue & value)
inlineexplicit

Definition at line 107 of file idprop_serialize.cc.

Member Function Documentation

◆ get_array_double_value()

std::optional< Vector< double > > blender::bke::idprop::DictionaryEntryParser::get_array_double_value ( ) const
inline

Definition at line 169 of file idprop_serialize.cc.

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

◆ get_array_float_value()

std::optional< Vector< float > > blender::bke::idprop::DictionaryEntryParser::get_array_float_value ( ) const
inline

Definition at line 164 of file idprop_serialize.cc.

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

◆ get_array_int_value()

std::optional< Vector< int32_t > > blender::bke::idprop::DictionaryEntryParser::get_array_int_value ( ) const
inline

Definition at line 159 of file idprop_serialize.cc.

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

◆ get_array_value()

const ArrayValue * blender::bke::idprop::DictionaryEntryParser::get_array_value ( ) const
inline

◆ get_bool_value()

std::optional< bool > blender::bke::idprop::DictionaryEntryParser::get_bool_value ( ) const
inline

◆ get_double_value()

std::optional< double > blender::bke::idprop::DictionaryEntryParser::get_double_value ( ) const
inline

◆ get_enum_value()

std::optional< int > blender::bke::idprop::DictionaryEntryParser::get_enum_value ( ) const
inline

Definition at line 149 of file idprop_serialize.cc.

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

◆ get_float_value()

std::optional< float > blender::bke::idprop::DictionaryEntryParser::get_float_value ( ) const
inline

◆ get_int_value()

std::optional< int32_t > blender::bke::idprop::DictionaryEntryParser::get_int_value ( ) const
inline

◆ get_name()

◆ get_string_value()

std::optional< std::string > blender::bke::idprop::DictionaryEntryParser::get_string_value ( ) const
inline

◆ get_subtype()

std::optional< eIDPropertyType > blender::bke::idprop::DictionaryEntryParser::get_subtype ( ) const
inline

◆ get_type()

Member Data Documentation

◆ lookup

DictionaryValue::Lookup blender::bke::idprop::DictionaryEntryParser::lookup

Definition at line 104 of file idprop_serialize.cc.


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