|
roboligo
|
Represents a configurable interface with name, type, mode, and value. More...
#include <Interface.hpp>
Public Member Functions | |
| modes | get_mode (void) |
| Retrieves the interface mode. | |
| std::string | get_name (void) |
| Retrieves the interface name. | |
| types | get_type (void) |
| Retrieves the interface type. | |
| std::string | get_value (void) |
| Retrieves the current value of the interface. | |
| Interface (std::string name, modes mode, std::string value) | |
| Constructs an Interface with the specified parameters. | |
| void | set_value (std::string value) |
| Updates the interface value. | |
| void | show () |
| Displays the interface information. Outputs current interface properties to the standard output. | |
| virtual | ~Interface ()=default |
Represents a configurable interface with name, type, mode, and value.
This class manages interface properties including its name, operational mode, and current value. It provides methods to access and modify interface state.
| roboligo::interfaces::Interface::Interface | ( | std::string | name, |
| modes | mode, | ||
| std::string | value ) |
Constructs an Interface with the specified parameters.
| name | The interface name identifier. |
| mode | The operational mode of the interface. |
| value | The initial value of the interface. |
|
virtualdefault |
| modes roboligo::interfaces::Interface::get_mode | ( | void | ) |
Retrieves the interface mode.
| std::string roboligo::interfaces::Interface::get_name | ( | void | ) |
Retrieves the interface name.
| types roboligo::interfaces::Interface::get_type | ( | void | ) |
Retrieves the interface type.
| std::string roboligo::interfaces::Interface::get_value | ( | void | ) |
Retrieves the current value of the interface.
| void roboligo::interfaces::Interface::set_value | ( | std::string | value | ) |
Updates the interface value.
| value | The new value to set. |
| void roboligo::interfaces::Interface::show | ( | ) |
Displays the interface information. Outputs current interface properties to the standard output.