#include <QOS_DataWriter_T.h>
Public Member Functions | |
QOS_DataWriter_T (void) | |
~QOS_DataWriter_T (void) | |
void | read_qos (DDS_QOS_TYPE &, const XML_QOS_TYPE) |
Private Types | |
typedef QOS_DwTp_Base_T < XML_QOS_TYPE, DDS_QOS_TYPE > | DwTpBase |
Starting point for parsing the Topic QOS settings.
Definition at line 15 of file QOS_DataWriter_T.h.
typedef QOS_DwTp_Base_T<XML_QOS_TYPE, DDS_QOS_TYPE> QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >::DwTpBase [private] |
Definition at line 25 of file QOS_DataWriter_T.h.
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >::QOS_DataWriter_T | ( | void | ) | [inline] |
Definition at line 8 of file QOS_DataWriter_T.cpp.
QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >::~QOS_DataWriter_T | ( | void | ) | [inline] |
Definition at line 13 of file QOS_DataWriter_T.cpp.
void QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >::read_qos | ( | DDS_QOS_TYPE & | dds_qos, | |
const XML_QOS_TYPE | xml_qos | |||
) | [inline] |
Reimplemented from QOS_DwTp_Base_T< XML_QOS_TYPE, DDS_QOS_TYPE >.
Definition at line 19 of file QOS_DataWriter_T.cpp.
References ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, LM_TRACE, and QOS_DwTp_Base_T< XML_QOS_TYPE, DDS_QOS_TYPE >::read_qos().
00020 { 00021 // First start parsing the QOS settings which the DataWriter, the DataReader, 00022 // and the Topic have in common 00023 00024 DwTpBase::read_qos (dds_qos, xml_qos); 00025 00026 // Now parse the topic-only QOS settings. 00027 00028 // if (xml_qos->user_data ()) 00029 // { 00030 // TODO: Have a good look at this. 00031 00032 // const std::string value = *xml_qos->user_data ()->value (); 00033 // 00034 // ACE_DEBUG ((LM_TRACE, 00035 // ACE_TEXT ("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ") 00036 // ACE_TEXT ("Set user_data to <%C>\n"), 00037 // value.c_str ())); 00038 // 00039 // dds_qos.user_data.value = 00040 // *xml_qos->user_data ()->value (); 00041 // } 00042 if (xml_qos->ownership_strength_p ()) 00043 { 00044 dds_qos.ownership_strength.value = static_cast<CORBA::Long>(xml_qos->ownership_strength().value()); 00045 00046 if (OpenDDS::DCPS::DCPS_debug_level > 9) 00047 { 00048 ACE_DEBUG ((LM_TRACE, 00049 ACE_TEXT ("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ") 00050 ACE_TEXT ("Set ownership_strength to <%u>\n"), 00051 dds_qos.ownership_strength.value)); 00052 } 00053 } 00054 if (xml_qos->writer_data_lifecycle_p () && 00055 xml_qos->writer_data_lifecycle ().autodispose_unregistered_instances_p ()) 00056 { 00057 dds_qos.writer_data_lifecycle.autodispose_unregistered_instances = 00058 xml_qos->writer_data_lifecycle ().autodispose_unregistered_instances (); 00059 00060 if (OpenDDS::DCPS::DCPS_debug_level > 9) 00061 { 00062 ACE_DEBUG ((LM_TRACE, 00063 ACE_TEXT ("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ") 00064 ACE_TEXT ("Set autodispose_unregistered_instances to <%d>\n"), 00065 dds_qos.writer_data_lifecycle.autodispose_unregistered_instances)); 00066 } 00067 } 00068 }