Foo
under the name "My Type" type_name = "My Type"; try { FooTypeSupport.register_type(participant, type_name); } catch (DDS.Exception) { Console.WriteLine("***Error: failed to register type"); }
TopicQos topic_qos = new TopicQos(); TopicListener topic_listener = null; try { participant.get_default_topic_qos(topic_qos); } catch (DDS.Exception) { Console.WriteLine( "***Error: failed to get default topic qos"); } topic_name = "My Topic"; Topic topic = participant.create_topic( topic_name, type_name, topic_qos, topic_listener, StatusMask.STATUS_MASK_NONE); if (topic == null) { Console.WriteLine("***Error: failed to create topic"); }
try { participant.delete_topic(ref topic); } catch (DDS.Exception) { Console.WriteLine("***Error: failed to delete topic"); }