Viam C++ SDK current
Loading...
Searching...
No Matches
instance.hpp
1#pragma once
2
3#include <memory>
4
5namespace viam {
6namespace sdk {
7
13class Instance {
14 public:
16 enum class Creation {
19 };
20
21 Instance();
22 ~Instance();
23
28
29 private:
30 friend class Registry;
31
32 struct Impl;
33 std::unique_ptr<Impl> impl_;
34};
35
36} // namespace sdk
37} // namespace viam
Instance management for Viam C++ SDK applications. This is a single instance class which is responsib...
Definition instance.hpp:13
static Instance & current(Creation)
Get the current Instance according to the Creation behavior.
Creation
Enumeration for creation behavior of current.
Definition instance.hpp:16
@ if_needed
Use existing instance if present, else create one.
@ open_existing
Instance must already exist.
A registry of known resources.
Definition registry.hpp:104
Definition instance.hpp:9