|
roboligo
|
Manages the configuration and state of interface connections. More...
#include <Linker.hpp>


Public Member Functions | |
| interfaces::modes | get_mode () |
| Gets the current mode of the linker. | |
| std::string | get_name () |
| Gets the linker name. | |
| std::string | get_topic () |
| Gets the topic name. | |
| bool | is_available (void) |
| Checks if the linker is available. | |
| bool | is_configured (void) |
| Checks if the linker is configured. | |
| Linker () | |
| Default constructor. | |
| void | set_available (bool new_state) |
| Sets the availability state. | |
| void | set_configured (bool new_state) |
| Sets the configuration state. | |
| void | set_interface (std::string name_, std::string topic_name_) |
| Configures the interface with name and topic. | |
| void | set_mode (interfaces::modes new_mode) |
| Sets the linker mode. | |
| void | set_name (std::string new_name) |
| Sets the linker name. | |
| void | set_service (std::string new_name) |
| Sets the service name. | |
| void | set_topic (std::string new_name) |
| Sets the topic name. | |
| virtual | ~Linker ()=default |
| Virtual destructor. | |
Public Attributes | |
| std::shared_ptr< interfaces::Interface > | interface |
| Shared pointer to the interface object. | |
| std::string | name {"linker"} |
| Linker identifier name. | |
| std::string | topic_name {"/interface"} |
| Associated topic name. | |
Protected Attributes | |
| bool | available_ {false} |
| Availability flag. | |
| bool | configured_ {false} |
| Configuration state flag. | |
| interfaces::modes | mode_ |
| Current operating mode. | |
Manages the configuration and state of interface connections.
Handles linking between components through topics and services, including mode management, availability, and configuration status.
|
inline |
Default constructor.
|
virtualdefault |
Virtual destructor.
| interfaces::modes roboligo::Linker::get_mode | ( | ) |
Gets the current mode of the linker.
| std::string roboligo::Linker::get_name | ( | ) |
Gets the linker name.
| std::string roboligo::Linker::get_topic | ( | ) |
Gets the topic name.
| bool roboligo::Linker::is_available | ( | void | ) |
Checks if the linker is available.
| bool roboligo::Linker::is_configured | ( | void | ) |
Checks if the linker is configured.
| void roboligo::Linker::set_available | ( | bool | new_state | ) |
Sets the availability state.
| new_state | Availability state |
| void roboligo::Linker::set_configured | ( | bool | new_state | ) |
Sets the configuration state.
| new_state | Configuration state |
| void roboligo::Linker::set_interface | ( | std::string | name_, |
| std::string | topic_name_ ) |
Configures the interface with name and topic.
| name_ | Interface name |
| topic_name_ | Topic name |
| void roboligo::Linker::set_mode | ( | interfaces::modes | new_mode | ) |
Sets the linker mode.
| new_mode | The mode to set |
| void roboligo::Linker::set_name | ( | std::string | new_name | ) |
Sets the linker name.
| new_name | Name to assign |
| void roboligo::Linker::set_service | ( | std::string | new_name | ) |
Sets the service name.
| new_name | Service name to assign |
| void roboligo::Linker::set_topic | ( | std::string | new_name | ) |
Sets the topic name.
| new_name | Topic name to assign |
|
protected |
Availability flag.
|
protected |
Configuration state flag.
| std::shared_ptr<interfaces::Interface> roboligo::Linker::interface |
Shared pointer to the interface object.
|
protected |
Current operating mode.
| std::string roboligo::Linker::name {"linker"} |
Linker identifier name.
| std::string roboligo::Linker::topic_name {"/interface"} |
Associated topic name.