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 (HebiFeedbackPtr 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_ |
HebiFeedbackPtr const | internal_ |
A message field for interfacing with an LED.
Definition at line 399 of file feedback.hpp.
hebi::Feedback::LedField::LedField | ( | HebiFeedbackPtr | internal, |
HebiFeedbackLedField | field | ||
) |
Definition at line 199 of file feedback.cpp.
Color hebi::Feedback::LedField::getColor | ( | ) | const |
Returns the led color.
Definition at line 209 of file feedback.cpp.
bool hebi::Feedback::LedField::hasColor | ( | ) | const |
Returns true if the LED color is set, and false otherwise.
Definition at line 204 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 417 of file feedback.hpp.
|
private |
Definition at line 425 of file feedback.hpp.
|
private |
Definition at line 424 of file feedback.hpp.