roscpp: Get number of publishers without subscribing
I'm writing a library where I'd like to be able to get the number of publishers and subscribers on a topic, without subscribing to that topic.
Are there any functions in roscpp which can make this query directly, or do I need to make the xmlrpc calls and interpret the results myself?