MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ inspector()

MAYAFLUX_API Inspector & MayaFlux::Portal::Forma::inspector ( )

Access the Forma introspection subsystem.

Returns the Inspector instance initialized alongside Bridge during Portal::Forma::initialize(). The Inspector holds no state beyond references to BufferManager and NodeGraphManager; it is a stable entry point into the Inspect:: query functions.

Precondition
Portal::Forma::initialize() must have been called.
Returns
Reference to the singleton Inspector. Lifetime is the Forma module lifetime.
Exceptions
std::runtime_errorif called before initialize().

Definition at line 159 of file Forma.cpp.

160{
161 if (!g_initialized) {
162 error<std::runtime_error>(Journal::Component::Portal, Journal::Context::API, std::source_location::current(),
163 "Portal::Forma not initialized - cannot get inspector");
164 }
165 return *g_inspect;
166}

References MayaFlux::Journal::API, and MayaFlux::Journal::Portal.