Abstract interface for providing a concrete runtime instance. More...
#include <xronos/sdk/runtime_provider.hh>
Public Member Functions | |
| virtual auto | get_runtime () const noexcept -> std::unique_ptr< runtime::Runtime >=0 |
| Get a runtime instance. | |
| virtual auto | version () const noexcept -> std::string_view=0 |
| Get the version of the runtime provided by this provider. | |
Abstract interface for providing a concrete runtime instance.
An implementation of this interface can be passed to Environment::execute() to provide a runtime for execution.
|
nodiscardpure virtualnoexcept |
Get the version of the runtime provided by this provider.
The returned version is baked into the library that defines the provider. Environment::execute() compares it against the SDK's own version to detect a mismatched SDK/runtime pair (which can occur because the runtime is linked separately from the SDK).
Implemented in xronos::sdk::DefaultRuntimeProvider.