iceoryx_posh  2.0.2
subscriber.hpp
1 // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
2 // Copyright (c) 2020 - 2022 by Apex.AI Inc. All rights reserved.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // SPDX-License-Identifier: Apache-2.0
17 
18 #ifndef IOX_POSH_POPO_TYPED_SUBSCRIBER_HPP
19 #define IOX_POSH_POPO_TYPED_SUBSCRIBER_HPP
20 
21 #include "iceoryx_posh/internal/popo/subscriber_impl.hpp"
22 
23 namespace iox
24 {
25 namespace popo
26 {
30 template <typename T, typename H = mepoo::NoUserHeader>
31 class Subscriber : public SubscriberImpl<T, H>
32 {
33  using Impl = SubscriberImpl<T, H>;
34 
35  public:
37 
38  virtual ~Subscriber() noexcept
39  {
40  Impl::m_trigger.reset();
41  }
42 };
43 
44 } // namespace popo
45 } // namespace iox
46 
47 #endif // IOX_POSH_POPO_TYPED_SUBSCRIBER_HPP
The SubscriberImpl class implements the typed subscriber API.
Definition: subscriber_impl.hpp:33
The Subscriber class for the publish-subscribe messaging pattern in iceoryx.
Definition: subscriber.hpp:32