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

Public Member Functions

virtual void reconfigure (const Dependencies &deps, const ResourceConfig &cfg)=0
 Reconfigures a resource.
 

Static Public Member Functions

static void reconfigure_if_reconfigurable (const std::shared_ptr< Resource > &resource, const Dependencies &deps, const ResourceConfig &cfg)
 Reconfigures a resource if it is Reconfigurable.
 

Member Function Documentation

◆ reconfigure()

virtual void viam::sdk::Reconfigurable::reconfigure ( const Dependencies & deps,
const ResourceConfig & cfg )
pure virtual

Reconfigures a resource.

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

Implemented in MyBase, MyGizmo, and MySummation.

◆ reconfigure_if_reconfigurable()

static void viam::sdk::Reconfigurable::reconfigure_if_reconfigurable ( const std::shared_ptr< Resource > & resource,
const Dependencies & deps,
const ResourceConfig & cfg )
static

Reconfigures a resource if it is Reconfigurable.

Parameters
resourcethe Resource to reconfigure.
depsDependencies of the resource.
cfgThe resource's config.

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