We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cdb1e9 commit 3d9579cCopy full SHA for 3d9579c
src/viam/sdk/resource/resource.cpp
@@ -26,5 +26,8 @@ Name Resource::get_resource_name() const {
26
return get_resource_name(kResource);
27
}
28
29
+// default behavior is to just return
30
+void Resource::close() {}
31
+
32
} // namespace sdk
33
} // namespace viam
src/viam/sdk/resource/resource.hpp
@@ -25,6 +25,9 @@ class Resource {
25
/// @brief Return the resource's name.
virtual std::string name() const;
+ /// @brief Closes a resource
+ virtual void close();
private:
std::string name_;
0 commit comments