Program Listing for File RTPSParticipantListener.h
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastdds/rtps/participant/RTPSParticipantListener.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 _FASTDDS_RTPS_PARTICIPANT_RTPSPARTICIPANTLISTENER_H__
#define _FASTDDS_RTPS_PARTICIPANT_RTPSPARTICIPANTLISTENER_H__
#include <fastdds/rtps/participant/ParticipantDiscoveryInfo.h>
#include <fastdds/rtps/reader/ReaderDiscoveryInfo.h>
#include <fastdds/rtps/writer/WriterDiscoveryInfo.h>
#include <fastrtps/types/DynamicTypePtr.h>
#include <fastrtps/types/TypeIdentifier.h>
#include <fastrtps/types/TypeObject.h>
namespace eprosima{
namespace fastrtps{
namespace rtps{
class RTPSParticipant;
class RTPS_DllAPI RTPSParticipantListener
{
public:
RTPSParticipantListener(){};
virtual ~RTPSParticipantListener(){};
virtual void onParticipantDiscovery(RTPSParticipant* participant, ParticipantDiscoveryInfo&& info)
{
(void)participant, (void)info;
}
#if HAVE_SECURITY
virtual void onParticipantAuthentication(RTPSParticipant* participant, ParticipantAuthenticationInfo&& info)
{
(void)participant, (void)info;
}
#endif
virtual void onReaderDiscovery(RTPSParticipant* participant, ReaderDiscoveryInfo&& info)
{
(void)participant, (void)info;
}
virtual void onWriterDiscovery(RTPSParticipant* participant, WriterDiscoveryInfo&& info)
{
(void)participant, (void)info;
}
virtual void on_type_discovery(
RTPSParticipant* participant,
const SampleIdentity& request_sample_id,
const string_255& topic,
const types::TypeIdentifier* identifier,
const types::TypeObject* object,
types::DynamicType_ptr dyn_type)
{
(void)participant, (void)request_sample_id, (void)topic, (void)identifier, (void)object, (void)dyn_type;
}
virtual void on_type_dependencies_reply(
RTPSParticipant* participant,
const SampleIdentity& request_sample_id,
const types::TypeIdentifierWithSizeSeq& dependencies)
{
(void)participant, (void)request_sample_id, (void)dependencies;
}
virtual void on_type_information_received(
RTPSParticipant* participant,
const string_255& topic_name,
const string_255& type_name,
const types::TypeInformation& type_information)
{
(void)participant, (void)topic_name, (void)type_name, (void)type_information;
}
};
} // namespace rtps
} // namespace fastrtps
} // namespace eprosima
#endif //_FASTDDS_RTPS_PARTICIPANT_RTPSPARTICIPANTLISTENER_H__