8 #include "swCommonLib/Common/RTTR.h"
11 #include "swCommonLib/Common/Properties/Properties.h"
16 template<
typename KeyType >
20 rttr::property m_property;
31 KeyType GetValue (
Object*
object );
32 void SetValue (
Object*
object, KeyType& value );
41 template<
typename KeyType >
44 , m_object(
rttr::variant() )
50 template<
typename KeyType >
55 auto accessor = Properties::GetProperty(
object, propertyPath );
56 m_property = accessor.second;
62 template<
typename KeyType >
65 return sw::SerializationCore::GetPropertyValue< KeyType >( m_property, m_object );
70 template<
typename KeyType >
Definition: TypesDefinitions.h:42
static void SetPropertyValue(rttr::property prop, const rttr::instance &object, PropertyType value)
Ustawia wartość podanej właściwości.
Definition: SerializationCore.inl:79
rttr::variant m_object
Definition: DirectPropertyh.h:21
Definition: DirectPropertyh.h:17
Base clas for all objects in sleeping wombat libraries.
Definition: Object.h:42
Definition: Properties.h:10
DirectProperty()
Constructor for serialization.
Definition: DirectPropertyh.h:42