Fix: declaration and implementation of needed methods
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 8 Mar 2017 20:45:07 +0000 (21:45 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 16 Mar 2017 16:10:40 +0000 (17:10 +0100)
under their respective class as they were standalone
before that.

Change-Id: I3ca6fe68bb40f883106ddbe07db8f2dc7d4f618b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/can/can-message.hpp
src/can/can-signals.cpp

index 5d796cd..5d45b98 100644 (file)
@@ -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;
 };
 
 /**
index 18f5f2a..d369057 100644 (file)
 #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