Uniformization between get_name() method of signals.
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 14 Mar 2017 23:51:38 +0000 (00:51 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 16 Mar 2017 16:21:57 +0000 (17:21 +0100)
can_signal_t and active_diagnostic_message return name
with prefix using this method. If you need without it then
use get_generic_name.

Change-Id: I6b153eb20214049c10619d39fcc65c8641a9e32f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/diagnostic/active-diagnostic-request.cpp

index 762cb61..9d0f6aa 100644 (file)
@@ -76,9 +76,9 @@ DiagnosticRequestHandle* active_diagnostic_request_t::get_handle()
        return handle_;
 }
 
-std::string& active_diagnostic_request_t::get_name()
+const std::string active_diagnostic_request_t::get_name() const
 {
-       return name_;
+       return active_diagnostic_request_t::prefix_ + "." + name_;
 }
 
 std::string& active_diagnostic_request_t::get_prefix()