#include <field_pointer.h>
Inheritance diagram for fawkes::InterfaceFieldPointer< FieldType >:
Public Member Functions | |
InterfaceFieldPointer (Interface::interface_fieldtype_t type, const char *name, FieldType *value) | |
Constructor. | |
Interface::interface_fieldtype_t | get_type () const |
Get the type of the field. | |
const char * | get_name () const |
Get name of the field. | |
FieldType | get_value () const |
Get current value of the field. | |
void | set_value (FieldType value) |
Set value of the 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.
fawkes::InterfaceFieldPointer< FieldType >::InterfaceFieldPointer | ( | Interface::interface_fieldtype_t | type, | |
const char * | name, | |||
FieldType * | value | |||
) | [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.
const char* fawkes::InterfaceFieldPointer< FieldType >::get_name | ( | void | ) | const [inline] |
Interface::interface_fieldtype_t fawkes::InterfaceFieldPointer< FieldType >::get_type | ( | ) | const [inline] |
FieldType fawkes::InterfaceFieldPointer< FieldType >::get_value | ( | ) | const [inline] |
Get current value of the field.
Definition at line 73 of file field_pointer.h.
void fawkes::InterfaceFieldPointer< FieldType >::set_value | ( | FieldType | value | ) | [inline] |
Set value of the field.
value | new value to set for the field. |
Definition at line 81 of file field_pointer.h.