|
DBC Framework
DBC parsing and CAN signal decoding framework
|
Minimal DBC parser. More...
#include <dbc_parser.h>
Public Member Functions | |
| DbcDatabase | ParseFile (const std::string &filePath) const |
| Parse DBC file. | |
| DbcParseResult | ParseFileWithDiagnostics (const std::string &filePath) const |
| Parse with warnings and a structured first error instead of throwing. | |
Minimal DBC parser.
Supports:
Reports unsupported statements as warnings, except SG_MUL_VAL_ which is an error. VERSION, NS_, BS_, BU_ and NS_ symbol declarations stay quiet.
Definition at line 33 of file dbc_parser.h.
| DbcDatabase DbcParser::ParseFile | ( | const std::string & | filePath | ) | const |
Parse DBC file.
| filePath | Path to input file. |
| std::runtime_error | on file or parse errors. Line parse errors include the file path and one-based line number. Duplicate normalized CAN IDs of the same frame type and duplicate signal names within a frame are rejected at the repeated definition's line. |
Definition at line 31 of file dbc_parser.cpp.
References ParseFileWithDiagnostics().
| DbcParseResult DbcParser::ParseFileWithDiagnostics | ( | const std::string & | filePath | ) | const |
Parse with warnings and a structured first error instead of throwing.
Definition at line 44 of file dbc_parser.cpp.
References DbcStatementDispatcher::Dispatch().
Referenced by ParseFile().