Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NopDataReaderListener and NopDataWriterListener #3460

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
66 changes: 66 additions & 0 deletions dds/DCPS/NopDataReaderListener.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/

#ifndef OPENDDS_DCPS_NOP_DATA_READER_LISTENER_H
#define OPENDDS_DCPS_NOP_DATA_READER_LISTENER_H

#include "LocalObject.h"

#include <dds/Versioned_Namespace.h>

#include <dds/DdsDcpsSubscriptionC.h>

OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL

namespace OpenDDS {
namespace DCPS {

class NopDataReaderListener : public virtual LocalObject<DDS::DataReaderListener> {
public:
void on_requested_deadline_missed(
DDS::DataReader_ptr /*reader*/,
const DDS::RequestedDeadlineMissedStatus& /*status*/)
{
}

void on_requested_incompatible_qos(
DDS::DataReader_ptr /*reader*/,
const DDS::RequestedIncompatibleQosStatus& /*status*/)
{
}

void on_sample_rejected(
DDS::DataReader_ptr /*reader*/,
const DDS::SampleRejectedStatus& /*status*/)
{
}

void on_liveliness_changed(
DDS::DataReader_ptr /*reader*/,
const DDS::LivelinessChangedStatus& /*status*/)
{
}

void on_data_available(DDS::DataReader_ptr /*reader*/)
{
}

void on_subscription_matched(
DDS::DataReader_ptr /*reader*/,
const DDS::SubscriptionMatchedStatus& /*status*/)
{
}

void on_sample_lost(DDS::DataReader_ptr /*reader*/, const DDS::SampleLostStatus& /*status*/)
{
}
};

} // namespace DCPS
} // namespace OpenDDS

OPENDDS_END_VERSIONED_NAMESPACE_DECL

#endif /* OPENDDS_DCPS_NOP_DATA_READER_LISTENER_H */
52 changes: 52 additions & 0 deletions dds/DCPS/NopDataWriterListener.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/

#ifndef OPENDDS_DCPS_NOP_DATA_WRITER_LISTENER_H
#define OPENDDS_DCPS_NOP_DATA_WRITER_LISTENER_H

#include "LocalObject.h"

#include <dds/Versioned_Namespace.h>

#include <dds/DdsDcpsPublicationC.h>

OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL

namespace OpenDDS {
namespace DCPS {

class NopDataWriterListener : public virtual LocalObject<DDS::DataWriterListener> {
public:
void on_offered_deadline_missed(
DDS::DataWriter_ptr /*writer*/,
const DDS::OfferedDeadlineMissedStatus& /*status*/)
{
}

void on_offered_incompatible_qos(
DDS::DataWriter_ptr /*writer*/,
const DDS::OfferedIncompatibleQosStatus& /*status*/)
{
}

void on_liveliness_lost(
DDS::DataWriter_ptr /*writer*/,
const DDS::LivelinessLostStatus& /*status*/)
{
}

void on_publication_matched(
DDS::DataWriter_ptr /*writer*/,
const DDS::PublicationMatchedStatus& /*status*/)
{
}
};

} // namespace DCPS
} // namespace OpenDDS

OPENDDS_END_VERSIONED_NAMESPACE_DECL

#endif /* OPENDDS_DCPS_NOP_DATA_WRITER_LISTENER_H */