QOS_DataWriter_T.cpp

Go to the documentation of this file.
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   // First start parsing the QOS settings which the DataWriter, the DataReader,
00020   // and the Topic have in common
00021 
00022   DwTpBase::read_qos (dds_qos, xml_qos);
00023 
00024   // Now parse the topic-only QOS settings.
00025 
00026 //  if (xml_qos->user_data ())
00027 //    {
00028       // TODO: Have a good look at this.
00029 
00030 //       const std::string value = *xml_qos->user_data ()->value ();
00031 //
00032 //       ACE_DEBUG ((LM_TRACE,
00033 //         ACE_TEXT ("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ")
00034 //         ACE_TEXT ("Set user_data to <%C>\n"),
00035 //         value.c_str ()));
00036 //
00037 //       dds_qos.user_data.value =
00038 //         *xml_qos->user_data ()->value ();
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 }

Generated on Fri Feb 12 20:05:25 2016 for OpenDDS by  doxygen 1.4.7