nn::nex::SubscriberContent::GetTopicSingle Member Function

Syntax

String GetTopicSingle() const;

Parameters

None.

Return Values

The topic content was posted to.

Description

Gets a single topic to which the content was posted.

Shortcut function. Gets a single topic that was set when the content was posted. Use the SubscriberContent::GetTopic function instead if several topics may have been set for the content. Content retrieved from the server always has one or more topics because one or more topics must be specified when posting content. Using this overload may be more convenient if your application only sets a single topic when posting content. If multiple topics are set for the content, this function retrieves one of them at random. Use the SubscriberUtil::TopicStringToReservedTopicNum function to convert a topic string to a reserved topic number.

Revision History

2014/09/12
Initial version.

CONFIDENTIAL