#include <proptable.h>
Public Types | |
| enum | { NO_OFFSET = 0xFFFFFFFF } |
Public Member Functions | |
| bool | isWriteOnly () const |
| True if this property is write-only. | |
| void | reflectFrom (CoreObject *instance, void *user_data, Item &prop) const |
| Reflects a single property. | |
| void | reflectTo (CoreObject *instance, void *user_data, const Item &prop) const |
| Reflects a single property Item -> user_data. | |
Public Attributes | |
| bool | m_bReadOnly |
| True if this property is read-only. | |
| t_reflection | m_eReflectMode |
| Reflection mode. | |
| const String * | m_name |
| Name of this property. | |
| union { | |
| struct { | |
| uint32 m_getterId | |
| uint32 m_setterId | |
| } gs | |
| uint32 offset | |
| struct { | |
| reflectionFunc from | |
| reflectionFunc to | |
| } rfunc | |
| } | m_reflection |
| Item | m_value |
| Default value of the property. | |
| void * | reflect_data |
| Module-specific property reflection data. | |
This structure descrbes the contents of a single property; It also stores all the data needed for reflection.
| bool Falcon::PropEntry::isWriteOnly | ( | ) | const [inline] |
True if this property is write-only.
If this property is accessed via accessors, but has only the set accessor, it cannot be read back (not even at C++ level). Doing so would cause an access error (for write-only read access).
References Falcon::e_reflectSetGet, m_eReflectMode, m_reflection, and NO_OFFSET.
| void Falcon::PropEntry::reflectFrom | ( | CoreObject * | instance, | |
| void * | user_data, | |||
| Item & | prop | |||
| ) | const |
Reflects a single property.
user_data -> Item
| void Falcon::PropEntry::reflectTo | ( | CoreObject * | instance, | |
| void * | user_data, | |||
| const Item & | prop | |||
| ) | const |
Reflects a single property Item -> user_data.
| struct { ... } Falcon::PropEntry::gs |
| const String* Falcon::PropEntry::m_name |
| union { ... } Falcon::PropEntry::m_reflection |
Referenced by Falcon::PropertyTable::append(), and isWriteOnly().
Referenced by Falcon::PropertyTable::append().
Module-specific property reflection data.
| struct { ... } Falcon::PropEntry::rfunc |
Referenced by Falcon::PropertyTable::append().
1.5.8