void howto_lookup_publishers()
{
create_and_retain_publisher(participant);
create_and_retain_publisher(participant);
create_and_retain_publisher(participant);
std::vector<dds::pub::Publisher> publishers1;
int publisher_count =
publisher_count =
std::cout << "Publisher count: " << publisher_count << std::endl;
for (std::vector<dds::pub::Publisher>::iterator it = publishers1.begin();
it != publishers1.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_publishers(const dds::domain::DomainParticipant participant, PublisherForwardIterator begin, uint32_t max_size)
<<extension>> Retrieve all of the dds::pub::Publisher created from this dds::domain::DomainParticipan...
Definition: pub/findImpl.hpp:157