Program Listing for File SampleInfo.h
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastrtps/subscriber/SampleInfo.h
)
// Copyright 2016 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 SAMPLEINFO_H_
#define SAMPLEINFO_H_
#include <cstdint>
#include <fastdds/rtps/common/ChangeKind_t.hpp>
#include <fastdds/rtps/common/InstanceHandle.h>
#include <fastdds/rtps/common/SampleIdentity.h>
#include <fastdds/rtps/common/Time_t.h>
#include <fastrtps/fastrtps_dll.h>
namespace eprosima {
namespace fastrtps {
class RTPS_DllAPI SampleInfo_t
{
public:
SampleInfo_t()
: sampleKind(rtps::ALIVE)
, ownershipStrength(0)
, sample_identity(rtps::SampleIdentity::unknown())
, related_sample_identity(rtps::SampleIdentity::unknown())
{
}
virtual ~SampleInfo_t()
{
}
rtps::ChangeKind_t sampleKind;
uint32_t ownershipStrength;
rtps::Time_t sourceTimestamp;
rtps::Time_t receptionTimestamp;
rtps::InstanceHandle_t iHandle;
rtps::SampleIdentity sample_identity;
rtps::SampleIdentity related_sample_identity;
};
} /* namespace fastrtps */
} /* namespace eprosima */
#endif /* SAMPLEINFO_H_ */