messsage_definition: add name getter method
authorRomain Forlot <romain.forlot@iot.bzh>
Sun, 10 Nov 2019 12:47:44 +0000 (13:47 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Sun, 10 Nov 2019 12:47:44 +0000 (13:47 +0100)
Change-Id: I8c31ed12cc8e1eeb1a758a908181e96be799ad4e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/can/message-definition.cpp
low-can-binding/can/message-definition.hpp

index b761ad6..114307e 100644 (file)
@@ -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 ?
index cce42e1..ca264b7 100644 (file)
@@ -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;