From b1b91596a28dfbb06f63d2bd5e1737448e445e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 12 Oct 2023 13:59:29 +0200 Subject: [PATCH] data_container: add protected access methods allows derived classes to modify the data --- ulog_cpp/data_container.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ulog_cpp/data_container.hpp b/ulog_cpp/data_container.hpp index 5655228..8a89786 100644 --- a/ulog_cpp/data_container.hpp +++ b/ulog_cpp/data_container.hpp @@ -61,6 +61,18 @@ class DataContainer : public DataHandlerInterface { const std::unordered_map& subscriptions() const { return _subscriptions; } const std::vector& dropouts() const { return _dropouts; } + protected: + std::map& messageInfoRef() { return _message_info; } + std::map>>& messageInfoMultiRef() + { + return _message_info_multi; + } + std::map& initialParametersRef() { return _initial_parameters; } + std::map& defaultParametersRef() { return _default_parameters; } + std::vector& changedParametersRef() { return _changed_parameters; } + std::vector& loggingRef() { return _logging; } + std::vector& dropoutsRef() { return _dropouts; } + private: const StorageConfig _storage_config;