iceoryx_doc  1.0.1
notification_attorney.hpp
1 // Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // SPDX-License-Identifier: Apache-2.0
16 
17 #ifndef IOX_POSH_POPO_NOTIFICATION_ATTORNEY_HPP
18 #define IOX_POSH_POPO_NOTIFICATION_ATTORNEY_HPP
19 
20 #include "iceoryx_posh/iceoryx_posh_types.hpp"
21 #include "iceoryx_utils/cxx/method_callback.hpp"
22 
23 #include <cstdint>
24 
25 namespace iox
26 {
27 namespace popo
28 {
33 {
34  template <uint64_t>
35  friend class WaitSet;
36  friend class Listener;
37 
38  private:
39  template <typename T, typename... Targs>
40  static void enableEvent(T& eventOrigin, Targs&&... args) noexcept;
41 
42  template <typename T, typename... Targs>
43  static void disableEvent(T& eventOrigin, Targs&&... args) noexcept;
44 
45  template <typename T, typename... Targs>
46  static void enableState(T& stateOrigin, Targs&&... args) noexcept;
47 
48  template <typename T, typename... Targs>
49  static void disableState(T& stateOrigin, Targs&&... args) noexcept;
50 
51  template <typename T>
52  static cxx::MethodCallback<void, uint64_t> getInvalidateTriggerMethod(T& eventOrigin) noexcept;
53 
54  template <typename T, typename... Targs>
55  static WaitSetIsConditionSatisfiedCallback getCallbackForIsStateConditionSatisfied(T& eventOrigin,
56  Targs&&... args) noexcept;
57 };
58 
59 
60 } // namespace popo
61 } // namespace iox
62 
63 #include "iceoryx_posh/internal/popo/notification_attorney.inl"
64 #endif
The Listener is a class which reacts to registered events by executing a corresponding callback concu...
Definition: listener.hpp:67
Class which allows accessing private methods to friends of NotificationAttorney. Used for example by ...
Definition: notification_attorney.hpp:33
Logical disjunction of a certain number of Triggers.
Definition: wait_set.hpp:62
Definition: service_description.hpp:29