void howto_lookup_subscribers()
{
create_and_retain_subscriber(participant);
create_and_retain_subscriber(participant);
create_and_retain_subscriber(participant);
std::vector<dds::sub::Subscriber> subscribers1;
int subscriber_count =
std::cout << "Subscriber count: " << subscriber_count << std::endl;
subscriber_count =
for (std::vector<dds::sub::Subscriber>::iterator it = subscribers1.begin();
it != subscribers1.end();
it++) {
(*it).close();
}
}
{
}
void retain()
Disables the automatic destruction of this entity.
Definition: TEntity.hpp:107
const null_type null
Indicates an empty reference.
uint32_t find_subscribers(const dds::domain::DomainParticipant participant, SubscriberForwardIterator begin, uint32_t max_size)
<<extension>> Retrieve all of the dds::sub::Subscriber created from this dds::domain::DomainParticipa...
Definition: sub/findImpl.hpp:283