8 #include "swCommonLib/Common/RTTR.h"
9 #include "swCommonLib/Common/Properties/Properties.h"
16 template<
typename KeyType >
20 std::vector< rttr::property > m_path;
28 KeyType GetValue (
Object*
object );
29 void SetValue (
Object*
object, KeyType& value );
39 template<
typename KeyType >
45 template<
typename KeyType >
47 : m_path(
Properties::GetPropertyPath( object, propertyPath ) )
52 template<
typename KeyType >
55 auto finalPair = Properties::GetProperty(
object, m_path );
56 auto& owner = finalPair.first;
57 auto& prop = finalPair.second;
59 return sw::SerializationCore::GetPropertyValue< KeyType >( prop, owner );
64 template<
typename KeyType >
67 auto finalPair = Properties::GetProperty(
object, m_path );
68 auto& owner = finalPair.first;
69 auto& prop = finalPair.second;
static void SetPropertyValue(rttr::property prop, const rttr::instance &object, PropertyType value)
Ustawia wartość podanej właściwości.
Definition: SerializationCore.inl:79
Definition: PropertyPath.h:17
PropertyPath()
Constructor for serialization.
Definition: PropertyPath.h:40
Base clas for all objects in sleeping wombat libraries.
Definition: Object.h:42
Definition: Properties.h:10