QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE > Class Template Reference

#include <QOS_DataWriter_T.h>

Inheritance diagram for QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >:
Inheritance graph
[legend]
Collaboration diagram for QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<typename XML_QOS_TYPE, typename DDS_QOS_TYPE>
class QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >

Author:
Marcel Smit (msmit@remedy.nl)

Starting point for parsing the Topic QOS settings.

Definition at line 15 of file QOS_DataWriter_T.h.


Member Typedef Documentation

template<typename XML_QOS_TYPE , typename DDS_QOS_TYPE >
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.


Constructor & Destructor Documentation

template<typename XML_QOS_TYPE , typename DDS_QOS_TYPE >
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.

00009 {
00010 }

template<typename XML_QOS_TYPE , typename DDS_QOS_TYPE >
QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >::~QOS_DataWriter_T ( void   )  [inline]

Definition at line 13 of file QOS_DataWriter_T.cpp.

00014 {
00015 }


Member Function Documentation

template<typename XML_QOS_TYPE , typename DDS_QOS_TYPE >
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 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1