Fast DDS
Version 3.6.1.0
Fast DDS
Toggle main menu visibility
Loading...
Searching...
No Matches
SampleRejectedStatus.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__SAMPLEREJECTEDSTATUS_HPP
20
#define FASTDDS_DDS_CORE_STATUS__SAMPLEREJECTEDSTATUS_HPP
21
22
#include <cstdint>
23
24
#include <fastdds/dds/common/InstanceHandle.hpp>
25
26
namespace
eprosima
{
27
namespace
fastdds
{
28
namespace
dds
{
29
31
enum
SampleRejectedStatusKind
32
{
34
NOT_REJECTED
,
36
REJECTED_BY_INSTANCES_LIMIT
,
38
REJECTED_BY_SAMPLES_LIMIT
,
40
REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
,
42
REJECTED_BY_UNKNOWN_INSTANCE
43
};
44
46
struct
SampleRejectedStatus
47
{
51
uint32_t
total_count
= 0;
52
56
uint32_t
total_count_change
= 0;
57
62
SampleRejectedStatusKind
last_reason
=
NOT_REJECTED
;
63
67
InstanceHandle_t
last_instance_handle
;
68
};
69
70
}
//namespace dds
71
}
//namespace fastdds
72
}
//namespace eprosima
73
74
#endif
// FASTDDS_DDS_CORE_STATUS__SAMPLEREJECTEDSTATUS_HPP
eprosima::fastdds::dds
Definition
BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::SampleRejectedStatusKind
SampleRejectedStatusKind
An enum with the possible values for the sample rejected reason.
Definition
SampleRejectedStatus.hpp:32
eprosima::fastdds::dds::REJECTED_BY_UNKNOWN_INSTANCE
@ REJECTED_BY_UNKNOWN_INSTANCE
Instance could not be determined.
Definition
SampleRejectedStatus.hpp:42
eprosima::fastdds::dds::NOT_REJECTED
@ NOT_REJECTED
Default value.
Definition
SampleRejectedStatus.hpp:34
eprosima::fastdds::dds::REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
@ REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
Exceeds the max_samples_per_instance limit.
Definition
SampleRejectedStatus.hpp:40
eprosima::fastdds::dds::REJECTED_BY_INSTANCES_LIMIT
@ REJECTED_BY_INSTANCES_LIMIT
Exceeds the max_instance limit.
Definition
SampleRejectedStatus.hpp:36
eprosima::fastdds::dds::REJECTED_BY_SAMPLES_LIMIT
@ REJECTED_BY_SAMPLES_LIMIT
Exceeds the max_samples limit.
Definition
SampleRejectedStatus.hpp:38
eprosima::fastdds::dds::InstanceHandle_t
eprosima::fastdds::rtps::InstanceHandle_t InstanceHandle_t
Definition
InstanceHandle.hpp:31
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::dds::SampleRejectedStatus
A struct storing the sample rejected status.
Definition
SampleRejectedStatus.hpp:47
eprosima::fastdds::dds::SampleRejectedStatus::last_reason
SampleRejectedStatusKind last_reason
Reason for rejecting the last sample rejected.
Definition
SampleRejectedStatus.hpp:62
eprosima::fastdds::dds::SampleRejectedStatus::total_count
uint32_t total_count
Total cumulative count of samples rejected by the DataReader.
Definition
SampleRejectedStatus.hpp:51
eprosima::fastdds::dds::SampleRejectedStatus::total_count_change
uint32_t total_count_change
The incremental number of samples rejected since the last time the listener was called or the status ...
Definition
SampleRejectedStatus.hpp:56
eprosima::fastdds::dds::SampleRejectedStatus::last_instance_handle
InstanceHandle_t last_instance_handle
Handle to the instance being updated by the last sample that was rejected.
Definition
SampleRejectedStatus.hpp:67
include
fastdds
dds
core
status
SampleRejectedStatus.hpp
Generated on
for