gRPC client implementation of a GenericService.
More...
#include <generic_client.hpp>
|
|
| GenericServiceClient (std::string name, std::shared_ptr< grpc::Channel > channel) |
| |
| ProtoStruct | do_command (const ProtoStruct &command) override |
| | Send/receive arbitrary commands to the resource.
|
| |
| API | api () const override |
| | Creates a GenericService API.
|
| |
| 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.
|
| |
|
|
| GenericServiceClient (std::string name, std::unique_ptr< viam::service::generic::v1::GenericService::StubInterface > stub) |
| |
|
| GenericService (std::string name) |
| |
|
| Service (std::string name) |
| |
|
Name | get_resource_name (const std::string &type) const |
| |
gRPC client implementation of a GenericService.
◆ do_command()
| ProtoStruct viam::sdk::impl::GenericServiceClient::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::GenericService.
The documentation for this class was generated from the following file: