Viam C++ SDK
current
Loading...
Searching...
No Matches
src
viam
sdk
resource
reconfigurable.hpp
1
#pragma once
2
3
#include <viam/sdk/config/resource.hpp>
4
#include <viam/sdk/resource/resource.hpp>
5
6
namespace
viam {
7
namespace
sdk {
8
9
class
Reconfigurable
{
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
viam::sdk::Reconfigurable
Definition
reconfigurable.hpp:9
viam::sdk::Reconfigurable::reconfigure_if_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.
viam::sdk::Reconfigurable::reconfigure
virtual void reconfigure(const Dependencies &deps, const ResourceConfig &cfg)=0
Reconfigures a resource.
viam::sdk::ResourceConfig
Definition
resource.hpp:23
Generated by
1.10.0