QOS_DataWriter_T.cpp

Go to the documentation of this file.
00001 
00002 #include "dds/DdsDcpsInfrastructureC.h"
00003 #include "QOS_Common.h"
00004 
00005 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00006 
00007 template <typename XML_QOS_TYPE, typename DDS_QOS_TYPE>
00008 QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::QOS_DataWriter_T (void)
00009 {
00010 }
00011 
00012 template <typename XML_QOS_TYPE, typename DDS_QOS_TYPE>
00013 QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::~QOS_DataWriter_T (void)
00014 {
00015 }
00016 
00017 template <typename XML_QOS_TYPE, typename DDS_QOS_TYPE>
00018 void
00019 QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos (DDS_QOS_TYPE& dds_qos, const XML_QOS_TYPE xml_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 }
00069 
00070 OPENDDS_END_VERSIONED_NAMESPACE_DECL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1