3#include <unordered_map>
5#include <viam/sdk/common/proto_value.hpp>
6#include <viam/sdk/config/resource.hpp>
7#include <viam/sdk/resource/resource_api.hpp>
13using Dependencies = std::unordered_map<Name, std::shared_ptr<Resource>>;
26 virtual std::string
name()
const;
38 return {
"rdk",
"resource",
"Resource"};
Extends APIType to additionally define a resource's subtype (e.g., camera).
Definition resource_api.hpp:33
A name for specific instances of resources.
Definition resource_api.hpp:63
Definition resource.hpp:14
virtual std::string name() const
Return the resource's name.
virtual Name get_resource_name() const
Returns the Name for a particular resource.
virtual API api() const =0
Returns the API associated with a particular resource.
Definition resource_api.hpp:50