EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
EBGeometry::Language::Diagnostic Struct Reference

One error or warning, at a span. More...

#include <EBGeometry_LanguageSyntax.hpp>

Collaboration diagram for EBGeometry::Language::Diagnostic:
Collaboration graph
[legend]

Public Types

enum class  Severity { Error , Warning }
 Whether a diagnostic stops the model. More...
 

Public Member Functions

std::string str () const
 The diagnostic as one line: "file:line:column: error: message" ("file: error: message" for a whole file).
 

Public Attributes

Severity m_severity = Severity::Error
 Error or warning.
 
Span m_span
 Where.
 
std::string m_message
 What is wrong, in words.
 

Detailed Description

One error or warning, at a span.

Member Enumeration Documentation

◆ Severity

Whether a diagnostic stops the model.

Enumerator
Error 

The model cannot be built.

Warning 

The model is built; something looks unintended.

Member Function Documentation

◆ str()

std::string EBGeometry::Language::Diagnostic::str ( ) const
inline

The diagnostic as one line: "file:line:column: error: message" ("file: error: message" for a whole file).

Returns
The line.

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