Fast DDS  Version 3.6.1.0
Fast DDS
LivelinessChangedStatus.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__LIVELINESSCHANGEDSTATUS_HPP
20 #define FASTDDS_DDS_CORE_STATUS__LIVELINESSCHANGEDSTATUS_HPP
21 
22 #include <fastdds/dds/common/InstanceHandle.hpp>
23 
24 namespace eprosima {
25 namespace fastdds {
26 namespace dds {
27 
30 {
36  int32_t alive_count = 0;
37 
43  int32_t not_alive_count = 0;
44 
46  int32_t alive_count_change = 0;
47 
50 
53 };
54 
55 } //namespace dds
56 } //namespace fastdds
57 } //namespace eprosima
58 
59 #endif // FASTDDS_DDS_CORE_STATUS__LIVELINESSCHANGEDSTATUS_HPP
Definition: DomainParticipant.hpp:46
A struct storing the liveliness changed status.
Definition: LivelinessChangedStatus.hpp:30
int32_t not_alive_count_change
The change in the not_alive_count since the last time the listener was called or the status was read.
Definition: LivelinessChangedStatus.hpp:49
int32_t not_alive_count
The total count of current publishers that write the topic read by the subscriber that are no longer ...
Definition: LivelinessChangedStatus.hpp:43
int32_t alive_count
The total number of currently active publishers that write the topic read by the subscriber.
Definition: LivelinessChangedStatus.hpp:36
int32_t alive_count_change
The change in the alive_count since the last time the listener was called or the status was read.
Definition: LivelinessChangedStatus.hpp:46
InstanceHandle_t last_publication_handle
Handle to the last publisher whose change in liveliness caused this status to change.
Definition: LivelinessChangedStatus.hpp:52
Struct InstanceHandle_t, used to contain the key for WITH_KEY topics.
Definition: InstanceHandle.hpp:154