19.3.16 Other DomainParticipant Operations
19.3.16.1 Verifying Entity Containment
If you have a handle to an Entity, and want to see if that Entity was created from your DomainParticipant (or any of its Publishers or Subscribers), use the contains_entity() operation, which returns a boolean.
An Entity’s instance handle may be obtained from built-in topic data (see Chapter 31 Accessing Discovery Information through Built-In Topics), various statuses, or from the get_instance_handle() operation (see 18.3 Getting an Entity’s Instance Handle).
19.3.16.2 Getting the Current Time
The get_current_time() operation returns the current time value from the same time-source (clock) that Connext uses to timestamp the data published by DataWriters (source_timestamp of the SampleInfo structure, see 44.6 The SampleInfo Structure). The time-sources used by Connext do not have to be synchronized nor are they synchronized by Connext.
See also: 19.3.15 Configuring the Clock per DomainParticipant.
19.3.16.3 Getting All Publishers and Subscribers
The get_publishers() and get_subscribers() operations will provide you with a list of the DomainParticipant’s Publishers and Subscribers, respectively.