Created
November 6, 2012 15:29
-
-
Save sandorkan/4025420 to your computer and use it in GitHub Desktop.
Creation of the Topic for HelloPublisher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the topic "Hello World" with the built-in String type | |
Topic helloWorldTopic = participant.create_topic( | |
"Hello, World", //topic_name | |
StringTypeSupport.get_type_name(), //type_name | |
DomainParticipant.TOPIC_QOS_DEFAULT, //QoS | |
null, //listener | |
StatusKind.STATUS_MASK_NONE); //mask | |
if (topic == null) { | |
System.err.println("Unable to create topic."); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment