Viam C++ SDK current
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
viam::sdk::impl::GenericServiceClient Class Reference

gRPC client implementation of a GenericService. More...

#include <generic_client.hpp>

+ Inheritance diagram for viam::sdk::impl::GenericServiceClient:

Public Types

using interface_type = GenericService
 

Public Member Functions

 GenericServiceClient (std::string name, std::shared_ptr< grpc::Channel > channel)
 
AttributeMap do_command (const AttributeMap &command) override
 Send/receive arbitrary commands to the resource.
 
- Public Member Functions inherited from viam::sdk::GenericService
API api () const override
 Creates a GenericService API.
 
- Public Member Functions inherited from viam::sdk::Service
viam::common::v1::ResourceName get_resource_name (std::string name) const override
 Returns a ResourceName for a particular resource name.
 
- Public Member Functions inherited from viam::sdk::Resource
 Resource (std::string name)
 
virtual std::string name () const
 Return the resource's name.
 

Protected Member Functions

 GenericServiceClient (std::string name, std::unique_ptr< viam::service::generic::v1::GenericService::StubInterface > stub)
 
- Protected Member Functions inherited from viam::sdk::GenericService
 GenericService (std::string name)
 
- Protected Member Functions inherited from viam::sdk::Service
 Service (std::string name)
 

Detailed Description

gRPC client implementation of a GenericService.

Member Function Documentation

◆ do_command()

AttributeMap viam::sdk::impl::GenericServiceClient::do_command ( const AttributeMap & command)
overridevirtual

Send/receive arbitrary commands to the resource.

Parameters
commandthe 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: