OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Private Types | List of all members
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]

Public Member Functions

 QOS_DataWriter_T ()
 
 ~QOS_DataWriter_T ()
 
void read_qos (DDS_QOS_TYPE &, const XML_QOS_TYPE)
 
- Public Member Functions inherited from QOS_DwTp_Base_T< XML_QOS_TYPE, DDS_QOS_TYPE >
 QOS_DwTp_Base_T ()
 
 ~QOS_DwTp_Base_T ()
 
void read_qos (DDS_QOS_TYPE &, const XML_QOS_TYPE)
 
- Public Member Functions inherited from QOS_DwDrTp_Base_T< XML_QOS_TYPE, DDS_QOS_TYPE >
 QOS_DwDrTp_Base_T ()
 
 ~QOS_DwDrTp_Base_T ()
 
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.nosp@m.@rem.nosp@m.edy.n.nosp@m.l)

Starting point for parsing the Topic QOS settings.

Definition at line 15 of file QOS_DataWriter_T.h.

Member Typedef Documentation

◆ DwTpBase

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

◆ QOS_DataWriter_T()

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 ( )

Definition at line 8 of file QOS_DataWriter_T.cpp.

9 {
10 }

◆ ~QOS_DataWriter_T()

template<typename XML_QOS_TYPE , typename DDS_QOS_TYPE >
QOS_DataWriter_T< XML_QOS_TYPE, DDS_QOS_TYPE >::~QOS_DataWriter_T ( )

Definition at line 13 of file QOS_DataWriter_T.cpp.

14 {
15 }

Member Function Documentation

◆ read_qos()

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 
)

Definition at line 19 of file QOS_DataWriter_T.cpp.

References ACE_DEBUG, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, LM_TRACE, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.

Referenced by DataWriterQos_Handler::get_datawriter_qos().

20 {
21  // First start parsing the QOS settings which the DataWriter, the DataReader,
22  // and the Topic have in common
23 
24  DwTpBase::read_qos(dds_qos, xml_qos);
25 
26  // Now parse the topic-only QOS settings.
27 
28 // if (xml_qos->user_data())
29 // {
30  // TODO: Have a good look at this.
31 
32 // const std::string value = *xml_qos->user_data()->value();
33 //
34 // ACE_DEBUG((LM_TRACE,
35 // ACE_TEXT("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ")
36 // ACE_TEXT("Set user_data to <%C>\n"),
37 // value.c_str()));
38 //
39 // dds_qos.user_data.value =
40 // *xml_qos->user_data()->value();
41 // }
42  if (xml_qos->ownership_strength_p())
43  {
44  dds_qos.ownership_strength.value = static_cast<CORBA::Long>(xml_qos->ownership_strength().value());
45 
47  {
48  ACE_DEBUG((LM_TRACE,
49  ACE_TEXT("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ")
50  ACE_TEXT("Set ownership_strength to <%u>\n"),
51  dds_qos.ownership_strength.value));
52  }
53  }
54  if (xml_qos->writer_data_lifecycle_p() &&
55  xml_qos->writer_data_lifecycle().autodispose_unregistered_instances_p())
56  {
57  dds_qos.writer_data_lifecycle.autodispose_unregistered_instances =
58  xml_qos->writer_data_lifecycle().autodispose_unregistered_instances();
59 
61  {
62  ACE_DEBUG((LM_TRACE,
63  ACE_TEXT("QOS_DataWriter_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ")
64  ACE_TEXT("Set autodispose_unregistered_instances to <%d>\n"),
65  dds_qos.writer_data_lifecycle.autodispose_unregistered_instances));
66  }
67  }
68 }
#define ACE_DEBUG(X)
ACE_CDR::Long Long
ACE_TEXT("TCP_Factory")
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
Definition: debug.cpp:30
void read_qos(DDS_QOS_TYPE &, const XML_QOS_TYPE)

The documentation for this class was generated from the following files: