ReXGlue SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
driver_context.h
Go to the documentation of this file.
1
10
11
#pragma once
12
13
#include <
rex/module.h
>
14
#include <
rex/result.h
>
15
#include <
rex/utility.h
>
16
17
namespace
rex
{
18
19
class
ILogger
;
20
class
ISettingsRegistry
;
21
23
REX_DECLARE_INTERFACE
(
IDriverContext
, 2)
25
virtual
ISettingsRegistry
& GetSettingsRegistry() = 0;
26
30
virtual
ILogger
& GetLogger() = 0;
31
38
[[nodiscard]] virtual
Result
<
void
> RunOnUIThread(
MoveOnlyFunction
<
void
()> fn) = 0;
39
44
virtual
void
PostToUIThread(
MoveOnlyFunction
<
void
()> fn) = 0;
45
};
46
47
}
// namespace rex
rex::IDriverContext
Definition
driver_context.h:23
rex::ILogger
Definition
logger.h:174
rex::ISettingsRegistry
Definition
settings_registry.h:38
module.h
Interfaces, factory and module declaration.
REX_DECLARE_INTERFACE
#define REX_DECLARE_INTERFACE(Name, version)
Definition
module.h:114
rex
Definition
app.h:36
rex::MoveOnlyFunction
typename detail::MoveOnlyFunctionFor< Signature >::type MoveOnlyFunction
Definition
utility.h:254
rex::Result
std::expected< T, Error > Result
Definition
result.h:98
result.h
utility.h
Move only function, const propagating pointer and scope guard.
rex
driver_context.h
Generated by
1.18.0