Move all signals search functions into new signals_manager_t object
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 21 Apr 2017 16:20:42 +0000 (18:20 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 21 Apr 2017 16:20:42 +0000 (18:20 +0200)
commit20c0dec8fd46f14c95618b7baed16c3c828ad530
tree96d22269b6c7841a7ba7884c144f0f1810e6d2f9
parent4f3b7570bb8e4c6943116026cf42da04830f7243
Move all signals search functions into new signals_manager_t object

Create a class from signals lookup and find standalone function and gather all
find function into it. There is now only 1 function to find either CAN signals
or diagnostic messages, results are returned using an ad-hoc struct containing
vector of one or the other type pointers.

This object also hold subscribed_signals map with events, so this class is a singleton.

Change-Id: I3584c6a91201e6904edc6aeac0abfa1785bdeccc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/low-can-binding/can/can-bus.cpp
CAN-binder/low-can-binding/configuration.cpp
CAN-binder/low-can-binding/configuration.hpp
CAN-binder/low-can-binding/diagnostic/diagnostic-manager.cpp
CAN-binder/low-can-binding/low-can-binding.cpp
CAN-binder/low-can-binding/utils/signals.cpp
CAN-binder/low-can-binding/utils/signals.hpp