|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
Classes | |
| class | Container |
| Type-keyed dependency-injection container. More... | |
| class | DispatcherExecutor |
| IExecutor forwarding post() to a runtime::IDispatcher. More... | |
| class | DispatcherScheduler |
| IDelayedScheduler backed by IDispatcher::post_delayed. More... | |
| class | EventBus |
| Type-erased event bus. More... | |
| class | IDispatcher |
| Abstract main-thread dispatcher. More... | |
| class | Logger |
| Process-wide logger. More... | |
| class | SimpleDispatcher |
| In-process dispatcher: runs queued callables when pump() is invoked (typically from your main loop). More... | |
Enumerations | |
| enum class | LogLevel { Trace , Debug , Info , Warn , Error , Fatal } |
Functions | |
| std::shared_ptr< IDispatcher > | main_dispatcher () |
| Obtain an owning snapshot of the main dispatcher. | |
| void | set_main_dispatcher (std::shared_ptr< IDispatcher > dispatcher) |
| const char * | level_name (LogLevel l) noexcept |
| bool | install_default_diagnostics () noexcept |
| Install the default diagnostics wiring (callback-boundary sink → Logger, abi slot hook → callback boundary). | |
| void | uninstall_default_diagnostics () noexcept |
| Revert both wirings to whatever they were before the most recent install_default_diagnostics() call. | |
|
strong |
| std::shared_ptr< IDispatcher > aria::runtime::main_dispatcher | ( | ) |
Obtain an owning snapshot of the main dispatcher.
Replacement does not invalidate existing snapshots. The first call installs a SimpleDispatcher owned by the calling thread if no platform dispatcher has been installed.
| void aria::runtime::set_main_dispatcher | ( | std::shared_ptr< IDispatcher > | dispatcher | ) |
|
noexcept |
|
noexcept |
Install the default diagnostics wiring (callback-boundary sink → Logger, abi slot hook → callback boundary).
Returns true if a wiring became active; returns false if it was already active and nothing changed.
|
noexcept |
Revert both wirings to whatever they were before the most recent install_default_diagnostics() call.
Safe to invoke when no installation is currently active (no-op).