OpenDDS  Snapshot(2023/04/28-20:55)
Static Public Member Functions | Static Private Member Functions | List of all members
ParticipantQos_Handler Class Reference

#include <ParticipantQos_Handler.h>

Static Public Member Functions

static bool get_participant_qos (::DDS::DomainParticipantQos &dp_qos, ::dds::qosProfile *profile, const ACE_TCHAR *name=0)
 

Static Private Member Functions

static bool get_participant_qos (DDS::DomainParticipantQos &dp_qos, dds::domainparticipantQos *dp)
 

Detailed Description

Author
Marcel Smit (msmit.nosp@m.@rem.nosp@m.edy.n.nosp@m.l)

Definition at line 20 of file ParticipantQos_Handler.h.

Member Function Documentation

◆ get_participant_qos() [1/2]

static bool ParticipantQos_Handler::get_participant_qos ( ::DDS::DomainParticipantQos dp_qos,
::dds::qosProfile *  profile,
const ACE_TCHAR name = 0 
)
static

Find the correct domainparticipantQos within the given profile, based on the given name.

Referenced by OpenDDS::DCPS::QOS_XML_Handler::get_participant_qos().

◆ get_participant_qos() [2/2]

bool ParticipantQos_Handler::get_participant_qos ( DDS::DomainParticipantQos dp_qos,
dds::domainparticipantQos *  dp 
)
staticprivate

Start parsing the QOS XML, using the template classes.

Definition at line 51 of file ParticipantQos_Handler.cpp.

References ACE_DEBUG, ACE_TEXT(), DDS::EntityFactoryQosPolicy::autoenable_created_entities, OpenDDS::DCPS::DCPS_debug_level, DDS::DomainParticipantQos::entity_factory, LM_TRACE, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.

53 {
54 
55 // if (xml_qos->user_data())
56 // {
57  // TODO: Have a good look at this.
58 
59 // const std::string value = *xml_qos->user_data()->value();
60 //
61 // ACE_DEBUG((LM_TRACE,
62 // ACE_TEXT("QOS_DataReader_T<XML_QOS_TYPE, DDS_QOS_TYPE>::read_qos - ")
63 // ACE_TEXT("Set user_data to <%C>\n"),
64 // value.c_str()));
65 //
66 // dds_qos.user_data.value =
67 // *xml_qos->user_data()->value();
68 // }
69 
70 
71  if (dp->entity_factory_p())
72  {
73  if (dp->entity_factory().autoenable_created_entities_p())
74  {
76  dp->entity_factory().autoenable_created_entities();
77 
79  {
80  ACE_DEBUG((LM_TRACE,
81  ACE_TEXT("ParticipantQos_Handler::get_participant_qos - ")
82  ACE_TEXT("Set entity_factory autoenable_created_entities to <%d>\n"),
84  }
85  }
86  }
87  return true;
88 }
#define ACE_DEBUG(X)
EntityFactoryQosPolicy entity_factory
ACE_TEXT("TCP_Factory")
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
Definition: debug.cpp:30

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