20 std::ifstream input(filePath.c_str());
22 throw std::runtime_error(
"Failed to open DBC file: " + filePath);
28 std::size_t lineNumber = 0U;
30 while (std::getline(input, line)) {
32 line = dbc_detail::TrimText(line);
37 context.lineNumber = lineNumber;
39 }
catch (
const std::exception &error) {
40 throw std::runtime_error(filePath +
":" + std::to_string(lineNumber) +
45 context.ResolveValueDescriptions(filePath);
46 context.ValidateMultiplexing(filePath);