MetaPropertyΒΆ
Inherited: None
DescriptionΒΆ
This class is a part of Object-Introspection-Mechanism. MetaProperty provides information about one particular class property. Developers are able to retrieve information about property type, read and write values.
To make properties visible in introspection mechanism, developers must declare those under A_PROPERTIES() macro.
Public MethodsΒΆ
Static MethodsΒΆ
None
Methods DescriptionΒΆ
MetaProperty::MetaProperty (MetaProperty::Table * table)
Constructs MetaProperty object which will contain information provided in a table.
bool MetaProperty::isValid () const
Returns true if property is valid; otherwise returns false.
const char MetaProperty::name () const
Returns a name of method.
Variant MetaProperty::read (void * object) const
Returns the value as Variant which contain current property of provided object.
const MetaProperty::Table * MetaProperty::table () const
Returns property information table.
const MetaType MetaProperty::type () const
Returns a type of property.
void MetaProperty::write (void * object, Variant & value) const
Tries to write a value as Variant to provided object.