Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
aria::runtime Namespace Reference

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< IDispatchermain_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.

Enumeration Type Documentation

◆ LogLevel

enum class aria::runtime::LogLevel
strong
Enumerator
Trace 
Debug 
Info 
Warn 
Error 
Fatal 

Function Documentation

◆ main_dispatcher()

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.

◆ set_main_dispatcher()

void aria::runtime::set_main_dispatcher ( std::shared_ptr< IDispatcher > dispatcher)

◆ level_name()

const char * aria::runtime::level_name ( LogLevel l)
noexcept

◆ install_default_diagnostics()

bool aria::runtime::install_default_diagnostics ( )
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.

◆ uninstall_default_diagnostics()

void aria::runtime::uninstall_default_diagnostics ( )
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).