Updated: April 19, 2023 |
Narrow a PiPS entity to a PiPS topic
#include <pips/publication.h>
pips_topic_t* pips_topic_narrow(pips_entity_t *const entity)
This function narrows the definition of the given pips_entity_t instance, expressing it as a pips_topic_t instance. Runtime type information is used to ensure that the entity can be expressed as a topic.
A pointer to the current PiPS entity expressed as a topic. If the runtime constraints aren't satisfied, the operation fails and the function returns NULL.