| 25 | } |
| 26 | |
| 27 | DbcParser::ParseStatus DbcParser::parseMessage(const uint32_t id, const std::vector<uint8_t>& data, std::vector<double>& out) { |
| 28 | #ifdef HAVE_DBC_PARSER |
| 29 | if (m_parseFileStatus != ParseStatus::Success) |
| 30 | return m_parseFileStatus; |
| 31 | switch (m_parser.parse_message(id, data, out)) { |
| 32 | case Libdbc::Message::ParseSignalsStatus::Success: |
| 33 | return ParseStatus::Success; |
| 34 | case Libdbc::Message::ParseSignalsStatus::ErrorMessageToLong: |
| 35 | return ParseStatus::ErrorMessageToLong; |
| 36 | case Libdbc::Message::ParseSignalsStatus::ErrorBigEndian: |
| 37 | return ParseStatus::ErrorBigEndian; |
| 38 | case Libdbc::Message::ParseSignalsStatus::ErrorUnknownID: |
| 39 | return ParseStatus::ErrorUnknownID; |
| 40 | case Libdbc::Message::ParseSignalsStatus::ErrorInvalidConversion: |
| 41 | return ParseStatus::ErrorInvalidConversion; |
| 42 | } |
| 43 | #else |
| 44 | Q_UNUSED(id) |
| 45 | Q_UNUSED(data) |
| 46 | Q_UNUSED(out) |
| 47 | #endif |
| 48 | return ParseStatus::ErrorDBCParserUnsupported; |
| 49 | } |
| 50 | |
| 51 | /*! |
| 52 | * \brief numberSignals |
no outgoing calls
no test coverage detected