A message field for interfacing with an LED. More...
#include <feedback.hpp>
Public Member Functions | |
| Color | getColor () const |
| Returns the led color. More... | |
| bool | hasColor () const |
| Returns true if the LED color is set, and false otherwise. More... | |
| LedField (const HebiFeedbackRef &internal, HebiFeedbackLedField field) | |
| operator bool () const | |
Allows casting to a bool to check if the LED color is set without directly calling hasColor(). More... | |
Private Attributes | |
| HebiFeedbackLedField const | field_ |
| const HebiFeedbackRef & | internal_ |
A message field for interfacing with an LED.
Definition at line 410 of file feedback.hpp.
| hebi::Feedback::LedField::LedField | ( | const HebiFeedbackRef & | internal, |
| HebiFeedbackLedField | field | ||
| ) |
Definition at line 136 of file feedback.cpp.
| Color hebi::Feedback::LedField::getColor | ( | ) | const |
Returns the led color.
Definition at line 143 of file feedback.cpp.
| bool hebi::Feedback::LedField::hasColor | ( | ) | const |
Returns true if the LED color is set, and false otherwise.
Definition at line 139 of file feedback.cpp.
|
inlineexplicit |
Allows casting to a bool to check if the LED color is set without directly calling hasColor().
This can be used as in the following (assuming 'parent' is a parent message, and this field is called 'myField')
Definition at line 427 of file feedback.hpp.
|
private |
Definition at line 436 of file feedback.hpp.
|
private |
Definition at line 435 of file feedback.hpp.