TEMU
4.4
The Terma Emulator
|
#include </builds/termade/temu/temu/include/temu-c/Support/Objsys.h>
Data Fields | |
temu_Type | Typ |
Type of property. More... | |
temu_Object * | Obj |
Pointer to object containing property. More... | |
int | Index |
Index used in access, can be modified by user. More... | |
void * | Data |
Pointer to value if applicable. More... | |
temu_PropWriter | Writer |
Writer function if applicable. More... | |
temu_PropReader | Reader |
Reader function if applicable. More... | |
temu_PropWriter | Setter |
Setter function if applicable. More... | |
temu_PropReader | Getter |
Getter function if applicable. More... | |
temu_Propval(* | readProp )(struct temu_PropAccessor *accessor) |
Read property via accessor. More... | |
void(* | writeProp )(struct temu_PropAccessor *accessor, temu_Propval pv) |
Write property via accessor. More... | |
temu_Propval(* | getProp )(struct temu_PropAccessor *accessor) |
Get property via accessor. More... | |
void(* | setProp )(struct temu_PropAccessor *accessor, temu_Propval pv) |
Set property via accessor. More... | |
! Generic property accessor
This struct serves as a generic accessor for properties. The intention for this is to be able to cache property accessors, without having to disambiguate between properties and pseudo properties.
The accessor is queried by the temu_getPropAccessor function, and is then used by calling the functions:
readProp
writeProp
getProp
setProp
Depending on whether read, write, get or set semantics is needed.
void* temu_PropAccessor::Data |
Pointer to value if applicable.
temu_Propval(* temu_PropAccessor::getProp) (struct temu_PropAccessor *accessor) |
Get property via accessor.
temu_PropReader temu_PropAccessor::Getter |
Getter function if applicable.
int temu_PropAccessor::Index |
Index used in access, can be modified by user.
temu_Object* temu_PropAccessor::Obj |
Pointer to object containing property.
temu_PropReader temu_PropAccessor::Reader |
Reader function if applicable.
temu_Propval(* temu_PropAccessor::readProp) (struct temu_PropAccessor *accessor) |
Read property via accessor.
void(* temu_PropAccessor::setProp) (struct temu_PropAccessor *accessor, temu_Propval pv) |
Set property via accessor.
temu_PropWriter temu_PropAccessor::Setter |
Setter function if applicable.
temu_Type temu_PropAccessor::Typ |
Type of property.
void(* temu_PropAccessor::writeProp) (struct temu_PropAccessor *accessor, temu_Propval pv) |
Write property via accessor.
temu_PropWriter temu_PropAccessor::Writer |
Writer function if applicable.