Class PublisherListener, allows the end user to implement callbacks triggered by certain events.
using namespace eprosima::pubsub;
using namespace eprosima::rtps;
{
public:
RTPSParticipant* p;
RTPSParticipantAttributes Pparam;
eprosima::dds::Publisher* pub;
TestTypeListener()
{
p = DomainRTPSParticipant::createRTPSParticipant(Pparam);
}
~TestTypeListener()
{
}
void onHistoryFull()
{
pub->removeMinSeqCache();
}
void onPublicationMatched(
Publisher* pub,
MatchingInfo& info)
{
if (info.status == MATCHED_MATCHING)
{
cout << "Discovery!" << endl;
}
else if (info.status == REMOVED_MATCHING)
{
cout << "Subscription removed" << endl;
}
}
};
Class PublisherAttributes, used by the user to define the attributes of a Publisher.
Definition PublisherAttributes.h:41
Class PublisherListener, allows the end user to implement callbacks triggered by certain events.
Definition PublisherListener.h:37