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
43class DbcParser {
44public:
46 explicit DbcParser(DbcParserOptions options = {}) : options(options) {}
47
57 DbcDatabase ParseFile(const std::string &filePath) const;
58
65 DbcParseResult ParseFileWithDiagnostics(const std::string &filePath) const;
66
67private:
68 DbcParserOptions options;
69};
70
71#endif /* DBC_PARSER_H */
Minimal DBC parser.
Definition dbc_parser.h:43
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:46
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.