Fawkes API  Fawkes Development Version
fawkes::InterfaceFieldPointer< FieldType > Class Template Reference

Direct pointer to an interface field. More...

#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. 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...
 

Detailed Description

template<typename FieldType>
class fawkes::InterfaceFieldPointer< FieldType >

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.

Author
Tim Niemueller

Definition at line 37 of file field_pointer.h.

Constructor & Destructor Documentation

◆ InterfaceFieldPointer()

template<typename FieldType>
fawkes::InterfaceFieldPointer< FieldType >::InterfaceFieldPointer ( Interface::interface_fieldtype_t  type,
const char *  name,
FieldType *  value 
)
inline

Constructor.

Parameters
typevalue type of the field
namename of the field
valuepointer to the value of the field

Definition at line 45 of file field_pointer.h.

Member Function Documentation

◆ get_name()

template<typename FieldType>
const char* fawkes::InterfaceFieldPointer< FieldType >::get_name ( void  ) const
inline

Get name of the field.

Returns
name of the field.

Definition at line 65 of file field_pointer.h.

◆ get_type()

template<typename FieldType>
Interface::interface_fieldtype_t fawkes::InterfaceFieldPointer< FieldType >::get_type ( ) const
inline

Get the type of the field.

Returns
type of the field

Definition at line 57 of file field_pointer.h.

◆ get_value()

template<typename FieldType>
FieldType fawkes::InterfaceFieldPointer< FieldType >::get_value ( ) const
inline

Get current value of the field.

Returns
current vlaue of the field.

Definition at line 73 of file field_pointer.h.

◆ set_value()

template<typename FieldType>
void fawkes::InterfaceFieldPointer< FieldType >::set_value ( FieldType  value)
inline

Set value of the field.

Parameters
valuenew value to set for the field.

Definition at line 81 of file field_pointer.h.


The documentation for this class was generated from the following file: