xronos-sdk 0.14.0
Xronos C++ SDK
Loading...
Searching...
No Matches
xronos::sdk::RuntimeProvider Struct Referenceabstract

Abstract interface for providing a concrete runtime instance. More...

#include <xronos/sdk/runtime_provider.hh>

Inheritance diagram for xronos::sdk::RuntimeProvider:
[legend]

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.

Detailed Description

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.

Member Function Documentation

◆ version()

virtual auto xronos::sdk::RuntimeProvider::version ( ) const -> std::string_view
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.


The documentation for this struct was generated from the following file: