Viam C++ SDK current
Loading...
Searching...
No Matches
service.hpp
1#pragma once
2
3#include <string>
4
5#include <viam/sdk/resource/resource.hpp>
6
7namespace viam {
8namespace sdk {
9
10class Service : public Resource {
11 public:
12 Name get_resource_name() const override;
13 Service();
14
15 protected:
16 explicit Service(std::string name) : Resource(std::move(name)) {}
17};
18
19} // namespace sdk
20} // namespace viam
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.
Definition service.hpp:10
Name get_resource_name() const override
Returns the Name for a particular resource.