Program Listing for File DomainParticipantListener.hpp

Return to documentation for file (/tmp/ws/src/fastrtps/include/dds/domain/DomainParticipantListener.hpp)

/*
 * Copyright 2010, Object Management Group, Inc.
 * Copyright 2010, PrismTech, Corp.
 * Copyright 2010, Real-Time Innovations, Inc.
 * Copyright 2019, Proyectos y Sistemas de Mantenimiento SL (eProsima).
 * All rights reserved.
 *
 * 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 OMG_DDS_DOMAIN_DOMAINPARTICIPANT_LISTENER_HPP_
#define OMG_DDS_DOMAIN_DOMAINPARTICIPANT_LISTENER_HPP_

// TODO Remove when PSM DDS Listeners are ready to be used.
#include <fastdds/dds/domain/DomainParticipantListener.hpp>

// TODO uncomment when PSM DDS Listeners are ready to be used.
/*
#include <dds/pub/PublisherListener.hpp>
#include <dds/sub/SubscriberListener.hpp>
#include <dds/topic/AnyTopicListener.hpp>
*/

namespace dds {
namespace domain {

// TODO Uncomment when PSM DDS listeners are ready to be used
/*
class OMG_DDS_API DomainParticipantListener :
    public virtual dds::pub::PublisherListener,
    public virtual dds::sub::SubscriberListener,
    public virtual dds::topic::AnyTopicListener
{
public:

    virtual ~DomainParticipantListener()
    {
    }

};
*/
class DomainParticipantListener : public eprosima::fastdds::dds::DomainParticipantListener
{
public:

    virtual ~DomainParticipantListener()
    {
    }

};


// TODO Uncomment when PSM DDS listeners are ready to be used
/*
class OMG_DDS_API NoOpDomainParticipantListener :
    public virtual DomainParticipantListener,
    public virtual dds::pub::NoOpPublisherListener,
    public virtual dds::sub::NoOpSubscriberListener,
    public virtual dds::topic::NoOpAnyTopicListener
{
public:

    virtual ~NoOpDomainParticipantListener()
    {
    }

};
*/
class NoOpDomainParticipantListener : public eprosima::fastdds::dds::DomainParticipantListener
{
public:
    ~NoOpDomainParticipantListener()
    {
    }
};

} //namespace domain
} //namespace dds

#endif //OMG_DDS_DOMAIN_DOMAINPARTICIPANT_LISTENER_HPP_