summaryrefslogtreecommitdiffstats
path: root/src/configuration.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.hpp')
-rw-r--r--src/configuration.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/configuration.hpp b/src/configuration.hpp
index 9aaf41e..516b0ff 100644
--- a/src/configuration.hpp
+++ b/src/configuration.hpp
@@ -44,6 +44,12 @@ class configuration_t
can_bus_t can_bus_manager_ = can_bus_t(afb_daemon_rootdir_open_locale(binder_interface->daemon, "can_buses.json", O_RDONLY, NULL));
diagnostic_manager_t diagnostic_manager_;
uint8_t active_message_set_ = 0;
+ std::vector<std::string> signals_prefix_;
+
+ std::vector<can_message_set_t> can_message_set_;
+ std::vector<std::vector<can_signal_t>> can_signals_;
+ std::vector<std::vector<obd2_signal_t>> obd2_signals_;
+ std::vector<std::vector<can_message_definition_t>> can_message_definition_;
/// Private constructor with implementation generated by the AGL generator.
configuration_t();
@@ -51,11 +57,6 @@ class configuration_t
public:
static configuration_t& instance();
- std::vector<can_message_set_t> can_message_set_;
- std::vector<std::vector<can_signal_t>> can_signals_;
- std::vector<std::vector<obd2_signal_t>> obd2_signals_;
- std::vector<std::vector<can_message_definition_t>> can_message_definition_;
-
configuration_t& get_configuration() ;
can_bus_t& get_can_bus_manager();
@@ -72,6 +73,7 @@ class configuration_t
std::vector<obd2_signal_t>& get_obd2_signals();
+ const std::vector<std::string>& get_signals_prefix() const;
uint32_t get_signal_id(obd2_signal_t& sig) const;
uint32_t get_signal_id(can_signal_t& sig) const;