DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
DbcParser Class Reference

Minimal DBC parser. More...

#include <dbc_parser.h>

Public Member Functions

DbcDatabase ParseFile (const std::string &filePath) const
 Parse DBC file.
 

Detailed Description

Minimal DBC parser.

Supports:

  • BO_
  • SG_
  • CM_ BO_
  • CM_ SG_
  • basic M / mN multiplexing
  • VAL_ signal value descriptions

Ignores:

  • attributes
  • named VAL_TABLE_ tables

Definition at line 34 of file dbc_parser.h.

Member Function Documentation

◆ ParseFile()

DbcDatabase DbcParser::ParseFile ( const std::string &  filePath) const

Parse DBC file.

Parameters
filePathPath to input file.
Returns
Parsed database.
Exceptions
std::runtime_erroron 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 19 of file dbc_parser.cpp.

References DbcStatementDispatcher::Dispatch().


The documentation for this class was generated from the following files: