DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
DbcParseResult Struct Reference

Parsed database and diagnostics; the database is empty on error. More...

#include <dbc_diagnostic.h>

Public Member Functions

bool HasErrors () const
 Return whether any diagnostic has error severity.
 

Public Attributes

DbcDatabase database
 
std::vector< DbcDiagnostic > diagnostics
 

Detailed Description

Parsed database and diagnostics; the database is empty on error.

Definition at line 38 of file dbc_diagnostic.h.

Member Function Documentation

◆ HasErrors()

bool DbcParseResult::HasErrors ( ) const
inline

Return whether any diagnostic has error severity.

Definition at line 43 of file dbc_diagnostic.h.

References diagnostics.

Member Data Documentation

◆ database

DbcDatabase DbcParseResult::database

Parsed content, published only on success.

Definition at line 39 of file dbc_diagnostic.h.

Referenced by DbcParser::ParseFile(), and DbcParser::ParseFileWithDiagnostics().

◆ diagnostics

std::vector<DbcDiagnostic> DbcParseResult::diagnostics

Warnings and the first error, if any.

Definition at line 40 of file dbc_diagnostic.h.

Referenced by HasErrors(), DbcParser::ParseFile(), and DbcParser::ParseFileWithDiagnostics().


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