| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
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
18
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
29 struct LivelinessChangedStatus
30{
36 int32_t alive_count = 0;
37
43 int32_t not_alive_count = 0;
44
46 int32_t alive_count_change = 0;
47
49 int32_t not_alive_count_change = 0;
50
52 InstanceHandle_t last_publication_handle;
53};
54
55} //namespace dds
56} //namespace fastdds
57} //namespace eprosima
58
59#endif // FASTDDS_DDS_CORE_STATUS__LIVELINESSCHANGEDSTATUS_HPP
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::InstanceHandle_t
eprosima::fastdds::rtps::InstanceHandle_t InstanceHandle_t
Definition InstanceHandle.hpp:31
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::dds::LivelinessChangedStatus
A struct storing the liveliness changed status.
Definition LivelinessChangedStatus.hpp:30
eprosima::fastdds::dds::LivelinessChangedStatus::not_alive_count_change
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
eprosima::fastdds::dds::LivelinessChangedStatus::not_alive_count
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
eprosima::fastdds::dds::LivelinessChangedStatus::alive_count
int32_t alive_count
The total number of currently active publishers that write the topic read by the subscriber.
Definition LivelinessChangedStatus.hpp:36
eprosima::fastdds::dds::LivelinessChangedStatus::alive_count_change
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
eprosima::fastdds::dds::LivelinessChangedStatus::last_publication_handle
InstanceHandle_t last_publication_handle
Handle to the last publisher whose change in liveliness caused this status to change.
Definition LivelinessChangedStatus.hpp:52