Working with topics.
More...
Working with topics.
Registering a user data type
- Register user data type of type
T
under the name "My_Type" const char* type_name = "My_Type";
printf("***Error: failed to register type\n");
}
Setting up a topic
- Create a DDS_Topic under the name "my_topic"
const char* topic_name = "my_topic";
const char* type_type = "My_Type";
&topic_qos);
printf("***Error: failed to get default topic qos\n");
}
topic_name,
type_name,
&topic_qos,
&topic_listener ,
if (topic == NULL) {
printf("***Error: failed to create topic\n");
}
Tearing down a topic
- Delete DDS_Topic:
printf("***Error: failed to delete topic\n");
}