Program Listing for File SampleInfo.hpp
↰ Return to documentation for file (include/fastdds/dds/subscriber/SampleInfo.hpp)
// Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef FASTDDS_DDS_SUBSCRIBER__SAMPLEINFO_HPP
#define FASTDDS_DDS_SUBSCRIBER__SAMPLEINFO_HPP
#include <fastdds/dds/subscriber/InstanceState.hpp>
#include <fastdds/dds/subscriber/SampleState.hpp>
#include <fastdds/dds/subscriber/ViewState.hpp>
#include <fastdds/dds/topic/TypeSupport.hpp>
#include <fastdds/rtps/common/SampleIdentity.hpp>
#include <fastdds/rtps/common/Time_t.hpp>
#include <fastdds/rtps/common/Types.hpp>
#include <fastdds/dds/common/InstanceHandle.hpp>
namespace eprosima {
namespace fastdds {
namespace dds {
struct SampleInfo
{
SampleStateKind sample_state;
ViewStateKind view_state;
InstanceStateKind instance_state;
int32_t disposed_generation_count;
int32_t no_writers_generation_count;
int32_t sample_rank;
int32_t generation_rank;
int32_t absolute_generation_rank;
rtps::Time_t source_timestamp;
rtps::Time_t reception_timestamp;
InstanceHandle_t instance_handle;
InstanceHandle_t publication_handle;
bool valid_data;
rtps::SampleIdentity sample_identity;
rtps::SampleIdentity related_sample_identity;
};
} // namespace dds
} // namespace fastdds
} // namespace eprosima
#endif // FASTDDS_DDS_SUBSCRIBER__SAMPLEINFO_HPP