Fawkes API
Fawkes Development Version
|
Interface field wrapper for Xabsl. More...
#include <iface_field_wrapper.h>
Public Member Functions | |
XabslInterfaceFieldWrapper (fawkes::Interface::interface_fieldtype_t type, const char *name, FieldType *value) | |
Constructor. More... | |
~XabslInterfaceFieldWrapper () | |
Destructor. More... | |
const char * | get_name () const |
Get name of the field. More... | |
fawkes::Interface::interface_fieldtype_t | get_type () const |
Get type of the field. More... | |
XabslType | get_value () const |
Get current value. More... | |
void | set_value (XabslType new_value) |
Set new value. More... | |
Interface field wrapper for Xabsl.
This wraps a field of an iterface in a Xabsl function provider such that the field can be used as input and/or output symbol in Xabsl. This class does an implicit conversion of types. For instance in a BlackBoard interface floats are stored, while Xabsl requires doubles. With an explicit casting conversion code is generated by the compiler to make it work.
Definition at line 39 of file iface_field_wrapper.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 47 of file iface_field_wrapper.h.
|
inline |
Destructor.
Definition at line 54 of file iface_field_wrapper.h.
|
inline |
Get name of the field.
Definition at line 62 of file iface_field_wrapper.h.
|
inline |
Get type of the field.
Definition at line 70 of file iface_field_wrapper.h.
|
inline |
Get current value.
Definition at line 78 of file iface_field_wrapper.h.
|
inline |
Set new value.
new_value | new value, converted to field type |
Definition at line 86 of file iface_field_wrapper.h.