|
roboligo
|
Represents a configurable mode with name, value, and active status. More...
#include <Mode.hpp>

Public Member Functions | |
| std::string | get_name (void) |
| Gets the mode name. | |
| std::string | get_value (void) |
| Gets the mode value. | |
| bool | is_ative (void) |
| Checks if the mode is active. | |
| Mode (std::string name, std::string value) | |
| Constructs a Mode object with the specified name and value. | |
| void | set_active (bool status) |
| Sets the active status of the mode. | |
| void | set_name (std::string new_name) |
| Sets the mode name. | |
| void | set_value (std::string new_value) |
| Sets the mode value. | |
| virtual | ~Mode ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
Protected Attributes | |
| bool | active_ {false} |
| Active status flag. | |
| std::string | name_ {"base_mode"} |
| Mode name identifier. | |
| std::string | value_ {"MODE"} |
| Mode value representation. | |
Represents a configurable mode with name, value, and active status.
This class encapsulates mode information including a name identifier, a value representation, and an active status flag. It provides methods to get and set these properties.
|
inline |
Constructs a Mode object with the specified name and value.
| name | The mode name identifier |
| value | The mode value representation |
|
virtualdefault |
Virtual destructor for proper cleanup of derived classes.
| std::string roboligo::Mode::get_name | ( | void | ) |
Gets the mode name.
| std::string roboligo::Mode::get_value | ( | void | ) |
Gets the mode value.
| bool roboligo::Mode::is_ative | ( | void | ) |
Checks if the mode is active.
| void roboligo::Mode::set_active | ( | bool | status | ) |
Sets the active status of the mode.
| status | The new active status |
| void roboligo::Mode::set_name | ( | std::string | new_name | ) |
Sets the mode name.
| new_name | The new mode name |
| void roboligo::Mode::set_value | ( | std::string | new_value | ) |
Sets the mode value.
| new_value | The new mode value |
|
protected |
Active status flag.
|
protected |
Mode name identifier.
|
protected |
Mode value representation.