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;
PublisherAttributes Pubparam;
TestTypeListener()
{
p = DomainRTPSParticipant::createRTPSParticipant(Pparam);
};
~TestTypeListener(){};
void onHistoryFull()
{
pub->removeMinSeqCache();
}
{
if(info.status == MATCHED_MATCHING)
{
cout << "Discovery!"<<endl;
}
else if(info.status == REMOVED_MATCHING)
{
cout << "Subscription removed"<<endl;
}
}
};