00001
00002 #include "dds/DdsDcpsInfrastructureC.h"
00003 #include "QOS_Common.h"
00004
00005 template <typename XML_QOS_TYPE, typename DDS_QOS_TYPE>
00006 QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::QOS_DataWriter_T (void)
00007 {
00008 }
00009
00010 template <typename XML_QOS_TYPE, typename DDS_QOS_TYPE>
00011 QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::~QOS_DataWriter_T (void)
00012 {
00013 }
00014
00015 template <typename XML_QOS_TYPE, typename DDS_QOS_TYPE>
00016 void
00017 QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos (DDS_QOS_TYPE& dds_qos, const XML_QOS_TYPE xml_qos)
00018 {
00019
00020
00021
00022 DwTpBase::read_qos (dds_qos, xml_qos);
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 if (xml_qos->ownership_strength_p ())
00041 {
00042 dds_qos.ownership_strength.value = static_cast<CORBA::Long>(xml_qos->ownership_strength().value());
00043
00044 if (OpenDDS::DCPS::DCPS_debug_level > 9)
00045 {
00046 ACE_DEBUG ((LM_TRACE,
00047 ACE_TEXT ("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ")
00048 ACE_TEXT ("Set ownership_strength to <%u>\n"),
00049 dds_qos.ownership_strength.value));
00050 }
00051 }
00052 if (xml_qos->writer_data_lifecycle_p () &&
00053 xml_qos->writer_data_lifecycle ().autodispose_unregistered_instances_p ())
00054 {
00055 dds_qos.writer_data_lifecycle.autodispose_unregistered_instances =
00056 xml_qos->writer_data_lifecycle ().autodispose_unregistered_instances ();
00057
00058 if (OpenDDS::DCPS::DCPS_debug_level > 9)
00059 {
00060 ACE_DEBUG ((LM_TRACE,
00061 ACE_TEXT ("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ")
00062 ACE_TEXT ("Set autodispose_unregistered_instances to <%d>\n"),
00063 dds_qos.writer_data_lifecycle.autodispose_unregistered_instances));
00064 }
00065 }
00066 }