Blender  V3.3
Classes | Namespaces
idprop_serialize.cc File Reference
#include <optional>
#include "DNA_ID.h"
#include "BKE_idprop.hh"
#include "BLI_listbase.h"

Go to the source code of this file.

Classes

class  blender::bke::idprop::IDPropertySerializer
 Base class for (de)serializing IDProperties. More...
 
struct  blender::bke::idprop::DictionaryEntryParser
 Helper class for parsing DictionaryValues. More...
 
class  blender::bke::idprop::IDPStringSerializer
 IDPSerializer for IDP_STRING. More...
 
class  blender::bke::idprop::IDPIntSerializer
 IDPSerializer for IDP_INT. More...
 
class  blender::bke::idprop::IDPFloatSerializer
 IDPSerializer for IDP_FLOAT. More...
 
class  blender::bke::idprop::IDPDoubleSerializer
 IDPSerializer for IDP_DOUBLE. More...
 
class  blender::bke::idprop::IDPArraySerializer
 IDPSerializer for IDP_ARRAY. More...
 
class  blender::bke::idprop::IDPGroupSerializer
 IDPSerializer for IDP_GROUP. More...
 
class  blender::bke::idprop::IDPUnknownSerializer
 Dummy serializer for unknown and unsupported types. More...
 

Namespaces

 blender
 
 blender::bke
 
 blender::bke::idprop
 

Functions

IDProperty from Value
static IDPropertyblender::bke::idprop::idprop_from_value (const DictionaryValue &value)
 
static IDPropertyblender::bke::idprop::idprop_from_value (const ArrayValue &value)
 
IDPropertyblender::bke::idprop::convert_from_serialize_value (const blender::io::serialize::Value &value)
 Convert the given value to an IDProperty. More...
 
IDProperty to Value
std::unique_ptr< ArrayValueblender::bke::idprop::convert_to_serialize_values (const struct IDProperty *properties)
 

ID property serialization.

static constexpr IDPStringSerializer blender::bke::idprop::IDP_SERIALIZER_STRING
 
static constexpr IDPIntSerializer blender::bke::idprop::IDP_SERIALIZER_INT
 
static constexpr IDPFloatSerializer blender::bke::idprop::IDP_SERIALIZER_FLOAT
 
static constexpr IDPDoubleSerializer blender::bke::idprop::IDP_SERIALIZER_DOUBLE
 
static constexpr IDPArraySerializer blender::bke::idprop::IDP_SERIALIZER_ARRAY
 
static constexpr IDPGroupSerializer blender::bke::idprop::IDP_SERIALIZER_GROUP
 
static constexpr IDPUnknownSerializer blender::bke::idprop::IDP_SERIALIZER_UNKNOWN
 
static const IDPropertySerializer & blender::bke::idprop::serializer_for (eIDPropertyType property_type)
 get the serializer for the given property type. More...
 
static const IDPropertySerializer & blender::bke::idprop::serializer_for (StringRef idprop_typename)
 get serializer for the given typename. More...
 
static constexpr StringRef blender::bke::idprop::IDP_KEY_NAME ("name")
 
static constexpr StringRef blender::bke::idprop::IDP_KEY_TYPE ("type")
 
static constexpr StringRef blender::bke::idprop::IDP_KEY_SUBTYPE ("subtype")
 
static constexpr StringRef blender::bke::idprop::IDP_KEY_VALUE ("value")
 
static constexpr StringRef blender::bke::idprop::IDP_PROPERTY_TYPENAME_STRING ("IDP_STRING")
 
static constexpr StringRef blender::bke::idprop::IDP_PROPERTY_TYPENAME_INT ("IDP_INT")
 
static constexpr StringRef blender::bke::idprop::IDP_PROPERTY_TYPENAME_FLOAT ("IDP_FLOAT")
 
static constexpr StringRef blender::bke::idprop::IDP_PROPERTY_TYPENAME_DOUBLE ("IDP_DOUBLE")
 
static constexpr StringRef blender::bke::idprop::IDP_PROPERTY_TYPENAME_ARRAY ("IDP_ARRAY")
 
static constexpr StringRef blender::bke::idprop::IDP_PROPERTY_TYPENAME_GROUP ("IDP_GROUP")
 
static constexpr StringRef blender::bke::idprop::IDP_PROPERTY_TYPENAME_UNKNOWN ("IDP_UNKNOWN")