iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
event_activation.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 Contributors to the Eclipse Foundation
2//
3// See the NOTICE file(s) distributed with this work for additional
4// information regarding copyright ownership.
5//
6// This program and the accompanying materials are made available under the
7// terms of the Apache Software License 2.0 which is available at
8// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9// which is available at https://opensource.org/licenses/MIT.
10//
11// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13#ifndef IOX2_EVENT_ACTIVATION_HPP
14#define IOX2_EVENT_ACTIVATION_HPP
15
16#include "iox2/event_id.hpp"
18
19namespace iox2 {
25 public:
28 auto operator=(const EventActivation&) -> EventActivation& = default;
30 ~EventActivation() = default;
31
33 auto id() const -> EventId;
35 auto count() const -> uint64_t;
36
37 private:
38 friend auto operator<<(std::ostream& stream, const EventActivation& value) -> std::ostream&;
39 EventActivation(iox2_event_id_t value, uint64_t count);
40 friend void wait_callback(const iox2_event_id_t*, uint64_t, iox2_callback_context);
41
42 EventId m_id;
43 uint64_t m_count;
44};
45} // namespace iox2
46
47#endif
auto id() const -> EventId
Returns the event identifier of this activation.
EventActivation(EventActivation &&)=default
~EventActivation()=default
auto count() const -> uint64_t
Returns the number of event activations associated with this identifier.
auto operator=(const EventActivation &) -> EventActivation &=default
auto operator=(EventActivation &&) -> EventActivation &=default
EventActivation(const EventActivation &)=default
friend void wait_callback(const iox2_event_id_t *, uint64_t, iox2_callback_context)
Definition listener.hpp:166
Type that allows to identify an event uniquely.
Definition event_id.hpp:22