Program Listing for File DataReaderListener.hpp
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastdds/dds/subscriber/DataReaderListener.hpp
)
// Copyright 2019 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 _FASTRTPS_DATAREADERLISTENER_HPP_
#define _FASTRTPS_DATAREADERLISTENER_HPP_
#include <fastrtps/fastrtps_dll.h>
#include <fastrtps/qos/DeadlineMissedStatus.h>
#include <fastrtps/qos/LivelinessChangedStatus.h>
#include <fastrtps/qos/SampleRejectedStatus.hpp>
#include <fastdds/dds/core/status/IncompatibleQosStatus.hpp>
#include <fastdds/dds/core/status/BaseStatus.hpp>
#include <fastdds/dds/core/status/SubscriptionMatchedStatus.hpp>
namespace eprosima {
namespace fastdds {
namespace dds {
class DataReader;
class DataReaderListener
{
public:
RTPS_DllAPI DataReaderListener()
{
}
RTPS_DllAPI virtual ~DataReaderListener()
{
}
RTPS_DllAPI virtual void on_data_available(
DataReader* reader)
{
(void)reader;
}
RTPS_DllAPI virtual void on_subscription_matched(
DataReader* reader,
const fastdds::dds::SubscriptionMatchedStatus& info)
{
(void)reader;
(void)info;
}
RTPS_DllAPI virtual void on_requested_deadline_missed(
DataReader* reader,
const fastrtps::RequestedDeadlineMissedStatus& status)
{
(void)reader;
(void)status;
}
RTPS_DllAPI virtual void on_liveliness_changed(
DataReader* reader,
const fastrtps::LivelinessChangedStatus& status)
{
(void)reader;
(void)status;
}
RTPS_DllAPI virtual void on_sample_rejected(
DataReader* reader,
const fastrtps::SampleRejectedStatus& status)
{
(void)reader;
(void)status;
}
RTPS_DllAPI virtual void on_requested_incompatible_qos(
DataReader* reader,
const RequestedIncompatibleQosStatus& status)
{
(void)reader;
(void)status;
}
RTPS_DllAPI virtual void on_sample_lost(
DataReader* reader,
const SampleLostStatus& status)
{
(void)reader;
(void)status;
}
};
} /* namespace dds */
} /* namespace fastdds */
} /* namespace eprosima */
#endif /* _FASTRTPS_DATAREADERLISTENER_HPP_ */