HEBI C++ API
3.8.0
|
A message field for interfacing with an LED. More...
#include <feedback.hpp>
Public Member Functions | |
operator bool () const | |
Allows casting to a bool to check if the LED color is set without directly calling hasColor() . More... | |
bool | hasColor () const |
Returns true if the LED color is set, and false otherwise. More... | |
Color | getColor () const |
Returns the led color. More... | |
A message field for interfacing with an LED.
|
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')
bool hebi::Feedback::LedField::hasColor | ( | ) | const |
Returns true if the LED color is set, and false otherwise.
Color hebi::Feedback::LedField::getColor | ( | ) | const |
Returns the led color.