1 // Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
2 // This Source Code Form is subject to the terms of the Mozilla Public
3 // License, v. 2.0. If a copy of the MPL was not distributed with this
4 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 
6 #ifndef VSOMEIP_V3_CFG_EVENT_HPP
7 #define VSOMEIP_V3_CFG_EVENT_HPP
8 
9 #include <memory>
10 #include <vector>
11 
12 #include <vsomeip/primitive_types.hpp>
13 
14 namespace vsomeip_v3 {
15 namespace cfg {
16 
17 struct eventgroup;
18 
19 struct event {
eventvsomeip_v3::cfg::event20     event(event_t _id)
21         : id_(_id),
22           is_placeholder_(true),
23           is_field_(false),
24           reliability_(reliability_type_e::RT_UNRELIABLE) {
25     }
26 
27     event_t id_;
28     bool is_placeholder_;
29     bool is_field_;
30     reliability_type_e reliability_;
31     std::vector<std::weak_ptr<eventgroup> > groups_;
32 };
33 
34 } // namespace cfg
35 } // namespace vsomeip_v3
36 
37 #endif // VSOMEIP_V3_CFG_EVENT_HPP
38