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)
 
ProtoStruct do_command (const ProtoStruct &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
Name get_resource_name () const override
 Returns the Name for a particular resource.
 
- 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)
 
- Protected Member Functions inherited from viam::sdk::Resource
Name get_resource_name (const std::string &type) const
 

Detailed Description

gRPC client implementation of a GenericService.

Member Function Documentation

◆ do_command()

ProtoStruct viam::sdk::impl::GenericServiceClient::do_command ( const ProtoStruct & 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: