NAP
Public Member Functions | List of all members
ResolvedPath Class Reference

#include <rtti/path.h>

Public Member Functions

const rtti::Variant getValue () const
 
bool setValue (const rtti::Variant &value)
 
const rtti::TypeInfo getType () const
 
const rtti::PropertygetProperty () const
 
bool isEmpty () const
 
bool isValid () const
 

Description

ResolvedPath is the 'resolved' version of a Path and can be used to get/set the value of the property being pointed to See Path for further documentation

Member Function Documentation

◆ getProperty()

const rtti::Property& getProperty ( ) const

Get the property that's holding the value pointed to by this path

Returns
The property that this path is pointing to

◆ getType()

const rtti::TypeInfo getType ( ) const

Get the type of the value pointed to by this path

Returns
The type of the value

◆ getValue()

const rtti::Variant getValue ( ) const

Get the value of the property pointed to by this path. Note that this returns a copy of the value; if you modify it, you need to make sure to call setValue() with the modified value again to apply it to the original object.

Returns
A copy of the value of the property

◆ isEmpty()

bool isEmpty ( ) const

Check whether this resolved path is empty

Returns
Whether the path is empty or not

◆ isValid()

bool isValid ( ) const

Check whether this path is valid

Returns
Whether the path is valid or not

◆ setValue()

bool setValue ( const rtti::Variant value)

Set the value of the property pointed to by this path

Parameters
valueThe value to set
Returns
Whether the value was successfully set or not