Abstract representation of a property.
More...
#include <property.hpp>
|
template<typename T > |
class | ClassBuilder |
|
class | UserObject |
|
Abstract representation of a property.
Properties are members of metaclasses. Their main purpose is to be get and/or set; They also provide detailed informations about their type.
- See also
- SimpleProperty, ArrayProperty, EnumProperty, ObjectProperty
◆ accept()
virtual void ponder::Property::accept |
( |
ClassVisitor & |
visitor | ) |
const |
|
virtual |
◆ get()
Get the current value of the property for a given object.
- Parameters
-
- Returns
- Value of the property
- Exceptions
-
◆ isReadable()
virtual bool ponder::Property::isReadable |
( |
| ) |
const |
|
virtual |
Check if the property can be read.
- Returns
- True if the property can be read, false otherwise
◆ isWritable()
virtual bool ponder::Property::isWritable |
( |
| ) |
const |
|
virtual |
Check if the property can be written.
- Returns
- True if the property can be written, false otherwise
◆ kind()
Get the type of the property.
- Returns
- Type of the property
◆ name()
IdReturn ponder::Property::name |
( |
| ) |
const |
Get the name of the property.
- Returns
- Name of the property
◆ set()
void ponder::Property::set |
( |
const UserObject & |
object, |
|
|
const Value & |
value |
|
) |
| const |
Set the current value of the property for a given object.
- Parameters
-
object | Object |
value | New value to assign to the property |
- Exceptions
-
The documentation for this class was generated from the following file:
- include/ponder/property.hpp