Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::format::validation::CheckResult Struct Reference

Outcome of a single validation check. More...

#include <validation_assertions.hpp>

Public Member Functions

 operator bool () const

Static Public Member Functions

static CheckResult pass ()
static CheckResult fail (std::string why)

Public Attributes

bool ok = true
std::string message

Detailed Description

Outcome of a single validation check.

Convertible to bool so it drops straight into REQUIRE(...) / if (!result); the message describes the first failure for diagnostics.

Member Function Documentation

◆ fail()

CheckResult pulp::format::validation::CheckResult::fail ( std::string why)
inlinestatic

◆ operator bool()

pulp::format::validation::CheckResult::operator bool ( ) const
inlineexplicit

◆ pass()

CheckResult pulp::format::validation::CheckResult::pass ( )
inlinestatic

Member Data Documentation

◆ message

std::string pulp::format::validation::CheckResult::message

◆ ok

bool pulp::format::validation::CheckResult::ok = true

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