Instance management for Viam C++ SDK applications. This is a single instance class which is responsible for global setup and teardown related to the SDK. An Instance must be constructed before doing anything else in a program, and it must remain alive in a valid state for the duration of the program. Creating multiple Instance objects in the same program is an error.
More...
#include <instance.hpp>
Instance management for Viam C++ SDK applications. This is a single instance class which is responsible for global setup and teardown related to the SDK. An Instance must be constructed before doing anything else in a program, and it must remain alive in a valid state for the duration of the program. Creating multiple Instance objects in the same program is an error.
◆ Creation
Enumeration for creation behavior of current.
Enumerator |
---|
open_existing | Instance must already exist.
|
if_needed | Use existing instance if present, else create one.
|
◆ current()
Get the current Instance according to the Creation behavior.
- Exceptions
-
The documentation for this class was generated from the following file: