diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-10 13:47:44 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-10 13:47:44 +0100 |
commit | bfa86a6b49c553d2395914d6e5c26d8c0ee70cee (patch) | |
tree | 5dd2e686f77046e48dc85ee5b4b7de40ef5fcab7 | |
parent | 992f19cf8173b8a6b492ef3cacec2d8e67c837ef (diff) |
messsage_definition: add name getter method
Change-Id: I8c31ed12cc8e1eeb1a758a908181e96be799ad4e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | low-can-binding/can/message-definition.cpp | 4 | ||||
-rw-r--r-- | low-can-binding/can/message-definition.hpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/low-can-binding/can/message-definition.cpp b/low-can-binding/can/message-definition.cpp index b761ad68..114307e5 100644 --- a/low-can-binding/can/message-definition.cpp +++ b/low-can-binding/can/message-definition.cpp @@ -62,6 +62,10 @@ const std::string message_definition_t::get_bus_device_name() const .get_can_device_name(bus_); } +const std::string message_definition_t::get_name() const{ + return name_; +} + uint32_t message_definition_t::get_id() const { return id_ & CAN_EFF_MASK ? diff --git a/low-can-binding/can/message-definition.hpp b/low-can-binding/can/message-definition.hpp index cce42e14..ca264b7e 100644 --- a/low-can-binding/can/message-definition.hpp +++ b/low-can-binding/can/message-definition.hpp @@ -79,6 +79,7 @@ public: const std::string get_bus_name() const; const std::string get_bus_device_name() const; + const std::string get_name() const; uint32_t get_id() const; bool is_fd() const; bool is_j1939() const; |