denigma 4.0.0
Loading...
Searching...
No Matches
denigma::ConversionResult Struct Reference

Result metadata returned after a conversion completes. More...

#include <conversion.h>

Public Member Functions

std::span< const Diagnosticdiagnostics () const noexcept
 Returns the diagnostics collected during conversion.
 
bool hasError () const noexcept
 Returns true when at least one diagnostic has severity Error.
 
 operator bool () const noexcept
 Returns true when the conversion completed without any error diagnostics.
 
void addDiagnostic (MessageSeverity severity, std::string message)
 Adds a diagnostic and updates the error state if needed.
 
void addDiagnostic (Diagnostic diagnostic)
 Adds a diagnostic and updates the error state if needed.
 

Detailed Description

Result metadata returned after a conversion completes.


The documentation for this struct was generated from the following file: