From 2df0e9d0999a04bedf29c0ead1218ceea970c133 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 8 Mar 2017 21:45:07 +0100 Subject: Fix: declaration and implementation of needed methods under their respective class as they were standalone before that. Change-Id: I3ca6fe68bb40f883106ddbe07db8f2dc7d4f618b Signed-off-by: Romain Forlot --- src/can/can-message.hpp | 2 +- src/can/can-signals.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/can/can-message.hpp b/src/can/can-message.hpp index 5d796cd..5d45b98 100644 --- a/src/can/can-message.hpp +++ b/src/can/can-message.hpp @@ -122,7 +122,7 @@ class can_message_definition_t * needs to compare an incoming CAN message with the previous frame.*/ public: - uint32_t get_id(); + uint32_t get_id() const; }; /** diff --git a/src/can/can-signals.cpp b/src/can/can-signals.cpp index 18f5f2a..d369057 100644 --- a/src/can/can-signals.cpp +++ b/src/can/can-signals.cpp @@ -24,6 +24,16 @@ #include "obd2/obd2-signals.hpp" #include "low-can-binding.hpp" +can_message_definition_t& can_signal_t::get_message() const +{ + return message_; +} + +std::string& can_signal_t::get_generic_name() const +{ + return generic_name_; +} + /** * @fn void find_can_signals(const openxc_DynamicField& key, std::vector& found_signals) * @brief return signals name found searching through CAN_signals and OBD2 pid -- cgit 1.2.3-korg