Viam C++ SDK current
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
MyGizmo Class Reference
+ Inheritance diagram for MyGizmo:

Public Member Functions

 MyGizmo (std::string name, std::string arg1)
 
 MyGizmo (const Dependencies &deps, const ResourceConfig &cfg)
 
void reconfigure (const Dependencies &deps, const ResourceConfig &cfg) override
 Reconfigures a resource.
 
bool do_one (std::string arg1) override
 
bool do_one_client_stream (std::vector< std::string > arg1) override
 
std::vector< bool > do_one_server_stream (std::string arg1) override
 
std::vector< bool > do_one_bidi_stream (std::vector< std::string > arg1) override
 
std::string do_two (bool arg1) override
 
- Public Member Functions inherited from Gizmo
API api () const override
 Returns the API associated with a particular resource.
 
- Public Member Functions inherited from viam::sdk::Component
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.
 

Static Public Member Functions

static std::vector< std::string > validate (ResourceConfig cfg)
 
- Static Public Member Functions inherited from viam::sdk::Reconfigurable
static void reconfigure_if_reconfigurable (const std::shared_ptr< Resource > &resource, const Dependencies &deps, const ResourceConfig &cfg)
 Reconfigures a resource if it is Reconfigurable.
 

Additional Inherited Members

- Protected Member Functions inherited from Gizmo
 Gizmo (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
 

Member Function Documentation

◆ do_one()

bool MyGizmo::do_one ( std::string arg1)
overridevirtual

Implements Gizmo.

◆ do_one_bidi_stream()

std::vector< bool > MyGizmo::do_one_bidi_stream ( std::vector< std::string > arg1)
overridevirtual

Implements Gizmo.

◆ do_one_client_stream()

bool MyGizmo::do_one_client_stream ( std::vector< std::string > arg1)
overridevirtual

Implements Gizmo.

◆ do_one_server_stream()

std::vector< bool > MyGizmo::do_one_server_stream ( std::string arg1)
overridevirtual

Implements Gizmo.

◆ do_two()

std::string MyGizmo::do_two ( bool arg1)
overridevirtual

Implements Gizmo.

◆ reconfigure()

void MyGizmo::reconfigure ( const Dependencies & deps,
const ResourceConfig & cfg )
overridevirtual

Reconfigures a resource.

Parameters
depsDependencies of the resource.
cfgThe resource's config.

Implements viam::sdk::Reconfigurable.


The documentation for this class was generated from the following file: