Adding accessor to diagnostic msg shared ptr.
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 2 Jun 2017 00:02:55 +0000 (02:02 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 2 Jun 2017 00:02:55 +0000 (02:02 +0200)
Change-Id: I9d32239b3ebd762ab3a337fc734d504ee8dc8c5f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/low-can-binding/binding/low-can-cb.cpp
CAN-binder/low-can-binding/binding/low-can-cb.hpp

index edda209..917fb53 100644 (file)
@@ -97,6 +97,11 @@ const std::shared_ptr<can_signal_t> low_can_subscription_t::get_can_signal() con
        return can_signal_;
 }
 
+const std::shared_ptr<diagnostic_message_t> low_can_subscription_t::get_diagnostic_message() const
+{
+       return diagnostic_message_;
+}
+
 const std::string low_can_subscription_t::get_name() const
 {
        if (can_signal_ != nullptr)
index ad3f74f..3975c67 100644 (file)
@@ -60,6 +60,7 @@ public:
        int get_index() const;
        struct afb_event& get_event();
        const std::shared_ptr<can_signal_t> get_can_signal() const;
+       const std::shared_ptr<diagnostic_message_t> get_diagnostic_message() const;
        const std::string get_name() const;
        float get_frequency() const;
        float get_min() const;