From d91f5f743bc6f6ec9aadfe96187b45dc93043f61 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 16 May 2017 17:37:07 +0200 Subject: Include diagnostic_message_t into can_message_set. Change-Id: I7372e469752dd8e90dc9431b9e5c67df12f56c29 Signed-off-by: Romain Forlot --- .../low-can-binding/binding/configuration-generated.cpp | 16 +++++++--------- CAN-binder/low-can-binding/binding/configuration.cpp | 2 +- CAN-binder/low-can-binding/binding/configuration.hpp | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) (limited to 'CAN-binder/low-can-binding/binding') diff --git a/CAN-binder/low-can-binding/binding/configuration-generated.cpp b/CAN-binder/low-can-binding/binding/configuration-generated.cpp index 584fc397..a97b9ee9 100644 --- a/CAN-binder/low-can-binding/binding/configuration-generated.cpp +++ b/CAN-binder/low-can-binding/binding/configuration-generated.cpp @@ -96,13 +96,10 @@ configuration_t::configuration_t() decoder_t::booleanDecoder, nullptr, false - })} - } - })} - }} - } - , diagnostic_messages_ - { + })} // end can_signals entry + } // end can_signals vector + })} // end can_message_definition entry + }, // end can_message_definition vector { {std::make_shared(diagnostic_message_t{ 4, @@ -324,8 +321,9 @@ configuration_t::configuration_t() nullptr, true })} - } - } + } // end diagnostic_messages_ vector + }// end can_message_set entry + } // end can_message_set vector {} const std::string configuration_t::get_diagnostic_bus() const diff --git a/CAN-binder/low-can-binding/binding/configuration.cpp b/CAN-binder/low-can-binding/binding/configuration.cpp index 6e2ccc4c..7f53c620 100644 --- a/CAN-binder/low-can-binding/binding/configuration.cpp +++ b/CAN-binder/low-can-binding/binding/configuration.cpp @@ -54,7 +54,7 @@ std::vector > configuration_t::get_can_signals() std::vector > configuration_t::get_diagnostic_messages() { - return diagnostic_messages_[active_message_set_]; + return can_message_set_[active_message_set_].get_diagnostic_messages(); } std::vector > configuration_t::get_can_message_definition() diff --git a/CAN-binder/low-can-binding/binding/configuration.hpp b/CAN-binder/low-can-binding/binding/configuration.hpp index ab6a793a..409c4cda 100644 --- a/CAN-binder/low-can-binding/binding/configuration.hpp +++ b/CAN-binder/low-can-binding/binding/configuration.hpp @@ -50,7 +50,7 @@ class configuration_t std::vector can_message_set_; ///< Vector holding all message set from JSON signals description file //std::vector> can_message_definition_; ///< Vector of vector holding all can message definition from JSON signals description file. This describe a CAN message. First vector map to message set //std::vector> can_signals_; ///< Vector of vector holding all can signasl from JSON signals description file. A CAN signal is a part of a CAN message. First vector map to message set - std::vector > > diagnostic_messages_; ///< Vector of vector holding all diagnostics messages from JSON signals description file. First vector map to message set + //std::vector > > diagnostic_messages_; ///< Vector of vector holding all diagnostics messages from JSON signals description file. First vector map to message set configuration_t(); ///< Private constructor with implementation generated by the AGL generator. -- cgit 1.2.3-korg