Fast DDS  Version 3.0.0
Fast DDS
Loading...
Searching...
No Matches
IReaderDataFilter.hpp
1// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
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
20#ifndef FASTDDS_RTPS_INTERFACES__IREADERDATAFILTER_HPP
21#define FASTDDS_RTPS_INTERFACES__IREADERDATAFILTER_HPP
22
23#include <fastdds/rtps/common/CacheChange.hpp>
24#include <fastdds/rtps/common/Guid.hpp>
25
26
27namespace eprosima {
28namespace fastdds {
29namespace rtps {
30
36{
37public:
38
46 virtual bool is_relevant(
47 const fastdds::rtps::CacheChange_t& change,
48 const fastdds::rtps::GUID_t& reader_guid) const = 0;
49};
50
51} // namespace rtps
52} // namespace fastdds
53} // namespace eprosima
54
55#endif // FASTDDS_RTPS_INTERFACES__IREADERDATAFILTER_HPP
Abstract class IReaderDataFilter that acts as virtual interface for data filters in ReaderProxy.
Definition IReaderDataFilter.hpp:36
virtual bool is_relevant(const fastdds::rtps::CacheChange_t &change, const fastdds::rtps::GUID_t &reader_guid) const =0
This method checks whether a CacheChange_t is relevant for the specified reader This callback should ...
eProsima namespace.
Structure CacheChange_t, contains information on a specific CacheChange.
Definition CacheChange.hpp:78
Structure GUID_t, entity identifier, unique in DDS-RTPS Domain.
Definition Guid.hpp:40