summaryrefslogtreecommitdiffstats
path: root/src/can
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-08 21:45:07 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commit2df0e9d0999a04bedf29c0ead1218ceea970c133 (patch)
treeb95b24a9dd1827f902bbd2b2969d584420e507bb /src/can
parentccd244c10988cd59d6f0b35e1b83a5eebd7bfb01 (diff)
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can')
-rw-r--r--src/can/can-message.hpp2
-rw-r--r--src/can/can-signals.cpp10
2 files changed, 11 insertions, 1 deletions
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<CanSignal*>& found_signals)
* @brief return signals name found searching through CAN_signals and OBD2 pid