Closes #24
This commit is contained in:
1 parent
fc97682b37
commit
e555ebb571
16 files changed
+337
-52
No files matched your search
@@ -16,6 +16,11 @@
|
||||
|
||||
#include "dbc_diagnostic.h"
|
||||
|
||||
/** Explicit interpretation applied to extended frames in this file. */
|
||||
struct DbcParserOptions {
|
||||
bool enableJ1939 = false;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Minimal DBC parser.
|
||||
*
|
||||
@@ -34,6 +39,8 @@
|
||||
*/
|
||||
class DbcParser {
|
||||
public:
|
||||
explicit DbcParser(DbcParserOptions options = {}) : options(options) {}
|
||||
|
||||
/**
|
||||
* @brief Parse DBC file.
|
||||
* @param filePath Path to input file.
|
||||
@@ -53,6 +60,8 @@ public:
|
||||
*/
|
||||
DbcParseResult ParseFileWithDiagnostics(const std::string &filePath) const;
|
||||
|
||||
private:
|
||||
DbcParserOptions options;
|
||||
};
|
||||
|
||||
#endif /* DBC_PARSER_H */
|
||||
Reference in new issue
Block a user