Fawkes API
Fawkes Development Version
|
Direct pointer to an interface field. More...
#include <field_pointer.h>
Public Member Functions | |
InterfaceFieldPointer (Interface::interface_fieldtype_t type, const char *name, FieldType *value) | |
Constructor. More... | |
Interface::interface_fieldtype_t | get_type () const |
Get the type of the field. More... | |
const char * | get_name () const |
Get name of the field. More... | |
FieldType | get_value () const |
Get current value of the field. More... | |
void | set_value (FieldType value) |
Set value of the field. More... | |
Direct pointer to an interface field.
This class allows for keeping a pointer to an interface value which is valid for the whole lifetime of the interface.
Definition at line 37 of file field_pointer.h.
|
inline |
Constructor.
type | value type of the field |
name | name of the field |
value | pointer to the value of the field |
Definition at line 45 of file field_pointer.h.
|
inline |
|
inline |
|
inline |
Get current value of the field.
Definition at line 73 of file field_pointer.h.
|
inline |
Set value of the field.
value | new value to set for the field. |
Definition at line 81 of file field_pointer.h.