| Viam C++ SDK current
    | 
A Button represents a physical or virtual button.  
 More...
#include "components/button.hpp"
 Inheritance diagram for viam::sdk::Button:
 Inheritance diagram for viam::sdk::Button:| Public Member Functions | |
| void | push () | 
| Push the button. | |
| virtual void | push (const ProtoStruct &extra)=0 | 
| Push the button. | |
| virtual ProtoStruct | do_command (const ProtoStruct &command)=0 | 
| Send/receive arbitrary commands to the resource. | |
| API | api () const override | 
| Returns the APIassociated with a particular resource. | |
|  Public Member Functions inherited from viam::sdk::Component | |
| Name | get_resource_name () const override | 
| Returns the Namefor 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. | |
| void | set_log_level (log_level) const | 
| Set the log level for log messages originating from this Resource. | |
| Protected Member Functions | |
| Button (std::string name) | |
|  Protected Member Functions inherited from viam::sdk::Component | |
| Component (std::string name) | |
|  Protected Member Functions inherited from viam::sdk::Resource | |
| Name | get_resource_name (const std::string &type) const | 
| Additional Inherited Members | |
|  Protected Attributes inherited from viam::sdk::Resource | |
| LogSource | logger_ | 
A Button represents a physical or virtual button. 
This acts as an abstract parent class to be inherited from by any drivers representing specific button implementations. This class cannot be used on its own.
| 
 | overridevirtual | 
Returns the API associated with a particular resource. 
Implements viam::sdk::Resource.
| 
 | pure virtual | 
Send/receive arbitrary commands to the resource.
| Command | the command to execute. | 
Implemented in viam::sdk::impl::ButtonClient.
| 
 | pure virtual | 
Push the button.
| extra | Any additional arguments to the method. | 
Implemented in viam::sdk::impl::ButtonClient, and viam::sdk::impl::ButtonClient.