#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::Property & | getProperty () const |
bool | isEmpty () const |
bool | isValid () const |
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
const rtti::Property& getProperty | ( | ) | const |
Get the property that's holding the value pointed to by this path
const rtti::TypeInfo getType | ( | ) | const |
Get the type of the value pointed to by this path
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.
bool isEmpty | ( | ) | const |
Check whether this resolved path is empty
bool isValid | ( | ) | const |
Check whether this path is valid
bool setValue | ( | const rtti::Variant & | value | ) |
Set the value of the property pointed to by this path
value | The value to set |