DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
dbc_parser.h
Go to the documentation of this file.
1
12#ifndef DBC_PARSER_H
13#define DBC_PARSER_H
14
15#include <string>
16
17#include "dbc_diagnostic.h"
18
21 bool enableJ1939 = false;
22};
23
41class DbcParser {
42public:
44 explicit DbcParser(DbcParserOptions options = {}) : options(options) {}
45
55 DbcDatabase ParseFile(const std::string &filePath) const;
56
63 DbcParseResult ParseFileWithDiagnostics(const std::string &filePath) const;
64
65private:
66 DbcParserOptions options;
67};
68
69#endif /* DBC_PARSER_H */
Minimal DBC parser.
Definition dbc_parser.h:41
DbcParseResult ParseFileWithDiagnostics(const std::string &filePath) const
Parse with warnings and a structured first error instead of throwing.
DbcParser(DbcParserOptions options={})
Create a parser with explicit extended-frame interpretation options.
Definition dbc_parser.h:44
DbcDatabase ParseFile(const std::string &filePath) const
Parse DBC file.
Parsed DBC content stored in a simple internal form.
Parsed database and diagnostics; the database is empty on error.