gRPC client implementation of a Button component
More...
#include <button_client.hpp>
|
|
| ButtonClient (std::string name, std::shared_ptr< grpc::Channel > channel) |
| |
| void | push (const ProtoStruct &extra) override |
| | Push the button.
|
| |
| ProtoStruct | do_command (const ProtoStruct &command) override |
| | Send/receive arbitrary commands to the resource.
|
| |
|
void | push () |
| | Push the button.
|
| |
| virtual void | push (const ProtoStruct &extra)=0 |
| | Push the button.
|
| |
|
void | push () |
| | Push the button.
|
| |
| API | api () const override |
| | Returns the API associated with a particular resource.
|
| |
| Name | get_resource_name () const override |
| | Returns the Name for a particular resource.
|
| |
|
| Resource (std::string name) |
| |
|
virtual std::string | name () const |
| | Return the resource's name.
|
| |
|
void | set_log_level (log_level) const |
| | Set the log level for log messages originating from this Resource.
|
| |
|
|
| Button (std::string name) |
| |
|
| Component (std::string name) |
| |
|
Name | get_resource_name (const std::string &type) const |
| |
|
LogSource | logger_ |
| |
gRPC client implementation of a Button component
◆ do_command()
| ProtoStruct viam::sdk::impl::ButtonClient::do_command |
( |
const ProtoStruct & | command | ) |
|
|
overridevirtual |
Send/receive arbitrary commands to the resource.
- Parameters
-
| Command | the command to execute. |
- Returns
- The result of the executed command.
Implements viam::sdk::Button.
◆ push() [1/2]
| void viam::sdk::impl::ButtonClient::push |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
Push the button.
- Parameters
-
| extra | Any additional arguments to the method. |
Implements viam::sdk::Button.
◆ push() [2/2]
| virtual void viam::sdk::Button::push |
( |
const ProtoStruct & | extra | ) |
|
|
virtual |
Push the button.
- Parameters
-
| extra | Any additional arguments to the method. |
Implements viam::sdk::Button.
The documentation for this class was generated from the following file: