summaryrefslogtreecommitdiff
path: root/implementation/configuration/include/event.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'implementation/configuration/include/event.hpp')
-rw-r--r--implementation/configuration/include/event.hpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/implementation/configuration/include/event.hpp b/implementation/configuration/include/event.hpp
index 84dc5a0..1e35a85 100644
--- a/implementation/configuration/include/event.hpp
+++ b/implementation/configuration/include/event.hpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2014-2021 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -17,18 +17,25 @@ namespace cfg {
struct eventgroup;
struct event {
- event(event_t _id)
+ event(event_t _id, bool _is_field, reliability_type_e _reliability,
+ std::chrono::milliseconds _cycle, bool _change_resets_cycle,
+ bool _update_on_change)
: id_(_id),
- is_placeholder_(true),
- is_field_(false),
- reliability_(reliability_type_e::RT_UNRELIABLE) {
+ is_field_(_is_field),
+ reliability_(_reliability),
+ cycle_(_cycle),
+ change_resets_cycle_(_change_resets_cycle),
+ update_on_change_(_update_on_change) {
}
event_t id_;
- bool is_placeholder_;
bool is_field_;
reliability_type_e reliability_;
std::vector<std::weak_ptr<eventgroup> > groups_;
+
+ std::chrono::milliseconds cycle_;
+ bool change_resets_cycle_;
+ bool update_on_change_;
};
} // namespace cfg