diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-01 09:43:43 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-01 18:40:05 +0200 |
commit | 80740ea1082b3034fa5003b812e063063a873d7c (patch) | |
tree | e11d9e0b23a930ae591372de9248d68416100542 /CAN-binder/low-can-binding/binding/low-can-cb.hpp | |
parent | 07cf0fca41024a41ba035f6e817a9590b686a992 (diff) |
Fix: get signal name no matter type of signal.
One method to return name depending upon which type it is,
can or diagnostic.
Change-Id: I1e96f88654e14316d3afe527fa6fa0d8ddbf410d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/binding/low-can-cb.hpp')
-rw-r--r-- | CAN-binder/low-can-binding/binding/low-can-cb.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CAN-binder/low-can-binding/binding/low-can-cb.hpp b/CAN-binder/low-can-binding/binding/low-can-cb.hpp index e05e2518..b74fdb2a 100644 --- a/CAN-binder/low-can-binding/binding/low-can-cb.hpp +++ b/CAN-binder/low-can-binding/binding/low-can-cb.hpp @@ -40,7 +40,7 @@ private: /// Signal part std::shared_ptr<can_signal_t> can_signal_; - std::shared_ptr<diagnostic_message_t> diagnostic_message_; + std::shared_ptr<active_diagnostic_request_t> active_diagnostic_request_; /// Filtering part struct event_filter_t event_filter_; @@ -49,7 +49,7 @@ private: public: low_can_subscription_t(); low_can_subscription_t(struct event_filter_t event_filter); - low_can_subscription_t(struct event_filter_t event_filter, std::shared_ptr<diagnostic_message_t> sig_name); + low_can_subscription_t(struct event_filter_t event_filter, std::shared_ptr<active_diagnostic_request_t> active_diagnostic_request); low_can_subscription_t(const low_can_subscription_t& s) = delete; low_can_subscription_t(low_can_subscription_t&& s); @@ -58,7 +58,7 @@ public: int get_index() const; const std::shared_ptr<can_signal_t> get_can_signal() const; - const std::string get_sig_name() const; + const std::string get_name() const; float get_frequency() const; float get_min() const; float get_max() const; |