Fast DDS  Version 3.6.1.0
Fast DDS
MatchedStatus.hpp
1 // Copyright 2019 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 
19 #ifndef FASTDDS_DDS_CORE_STATUS__MATCHEDSTATUS_HPP
20 #define FASTDDS_DDS_CORE_STATUS__MATCHEDSTATUS_HPP
21 
22 #include <cstdint>
23 
24 namespace eprosima {
25 namespace fastdds {
26 namespace dds {
27 
30 {
32  MatchedStatus() = default;
33 
35  ~MatchedStatus() = default;
36 
39  int32_t total_count = 0;
40 
42  int32_t total_count_change = 0;
43 
45  int32_t current_count = 0;
46 
48  int32_t current_count_change = 0;
49 };
50 
51 } // namespace dds
52 } // namespace fastdds
53 } // namespace eprosima
54 
55 #endif //FASTDDS_DDS_CORE_STATUS__MATCHEDSTATUS_HPP
Definition: DomainParticipant.hpp:46
A structure storing a matching status.
Definition: MatchedStatus.hpp:30
int32_t current_count_change
The change in current_count since the last time the listener was called or the status was read.
Definition: MatchedStatus.hpp:48
MatchedStatus()=default
Constructor.
int32_t current_count
The number of writers currently matched to the concerned reader.
Definition: MatchedStatus.hpp:45
int32_t total_count_change
The change in total_count since the last time the listener was called or the status was read.
Definition: MatchedStatus.hpp:42
int32_t total_count
Total cumulative count the concerned reader discovered a match with a writer.
Definition: MatchedStatus.hpp:39