Viam C++ SDK current
Loading...
Searching...
No Matches
reconfigurable.hpp
1#pragma once
2
3#include <viam/sdk/config/resource.hpp>
4#include <viam/sdk/resource/resource.hpp>
5
6namespace viam {
7namespace sdk {
8
10 public:
11 virtual ~Reconfigurable();
12
16 virtual void reconfigure(const Dependencies& deps, const ResourceConfig& cfg) = 0;
17
22 static void reconfigure_if_reconfigurable(const std::shared_ptr<Resource>& resource,
23 const Dependencies& deps,
24 const ResourceConfig& cfg);
25
26 protected:
27 explicit Reconfigurable();
28};
29
30} // namespace sdk
31} // namespace viam
Definition reconfigurable.hpp:9
static void reconfigure_if_reconfigurable(const std::shared_ptr< Resource > &resource, const Dependencies &deps, const ResourceConfig &cfg)
Reconfigures a resource if it is Reconfigurable.
virtual void reconfigure(const Dependencies &deps, const ResourceConfig &cfg)=0
Reconfigures a resource.
Definition resource.hpp:23