Skip to content

IInspectableValueBase#

Abstract base for a single inspectable property value.

Header:#include <AUI/Util/AInspectable.h>
CMake:aui_link(my_target PUBLIC aui::views)

Detailed Description#

Provides two rendering paths: - renderAsString() — plain text, suitable for CLI and agentic/AI profilers. - renderAsView() — rich view for the GUI devtools panel; default implementation wraps renderAsString() in an ALabel.

The primary implementation is AInspectableValue<T>, which uses fmt::formatter<T> for renderAsString(). Custom rendering can be added by specialising AInspectableValue<T>.

Public Methods#

renderAsString#


virtual AString IInspectableValueBase::renderAsString()

Renders the value as a plain string (CLI / agentic AI profiler path).

renderAsView#


virtual AArc<AView> IInspectableValueBase::renderAsView()

Renders the value as a view (GUI devtools path).

Default implementation returns _new<ALabel>(renderAsString()).