void Test::DataWriterListener::display_partitions ( DDS::DataWriter_ptr writer) const { // Display offered partition. DDS::Publisher_var publisher (writer->get_publisher ()); DDS::PublisherQos pub_qos; publisher->get_qos (pub_qos); DDS::PartitionQosPolicy const & partition = pub_qos.partition; ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Offered Partition\n") ACE_TEXT ("Partition\tName\n") ACE_TEXT ("=========\t====\n"))); CORBA::ULong const len = partition.name.length (); if (len == 0) ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("** Zero length partition name ") ACE_TEXT ("sequence (default) **\n"))); for (CORBA::ULong i = 0; i != len; ++i) { char const * s = partition.name[i]; ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" %u\t\t%s\n"), i, *s == 0 ? "\"\"" : s)); } }
Assert_Participant_Liveliness::Assert_Participant_Liveliness( DDS::DataWriter_ptr writer, const char* name) : Writer_Base(writer, name) , participant_(DDS::Publisher_var(writer->get_publisher())->get_participant()) { }