3 #include "ace/XML_Utils/XML_Helper.h" 4 #include "ace/XML_Utils/XMLSchema/id_map.hpp" 36 ACE_TEXT(
"(%P|%t) ERROR: QOS_XML_Handler::get_profile - ")
37 ACE_TEXT(
"No profile specified\n")));
42 dds::qosProfile_seq::qos_profile_const_iterator it;
52 ACE_TEXT(
"QOS_XML_Handler::get_profile - ")
54 (*it)->name().c_str()));
63 ACE_TEXT(
"(%P|%t) ERROR: QOS_XML_Handler::get_profile - ")
64 ACE_TEXT(
"Did not find profile <%s>\n"),
76 const ACE_TCHAR* profileName = profile.name().c_str();
81 ACE_TEXT(
"(%P|%t) ERROR: QOS_XML_Handler::addQoSProfile - ")
82 ACE_TEXT(
"No profile name specified\n")));
88 dds::qosProfile_seq::qos_profile_const_iterator it;
97 ACE_TEXT(
"(%P|%t) ERROR: QOS_XML_Handler::addQoSProfile - ")
98 ACE_TEXT(
"Profile exists or profile name <%C> in use.\n"),
106 dds::qosProfile_seq::qos_profile_value_type t(
new dds::qosProfile(profile));
115 dds::qosProfile_seq::qos_profile_const_iterator it;
116 for (it = profiles.begin_qos_profile();
117 it != profiles.end_qos_profile();
120 dds::qosProfile qos(*(it->get()));
137 ACE_TEXT(
"(%P|%t) ERROR: QOS_XML_Handler::delQoSProfile - ")
138 ACE_TEXT(
"No profile specified\n")));
143 dds::qosProfile_seq::qos_profile_const_iterator it;
158 ACE_TEXT(
"(%P|%t) ERROR: QOS_XML_Handler::delQoSProfile - ")
159 ACE_TEXT(
"Profile doesn't exists or wrong profile name.\n")));
174 ACE_UNUSED_ARG(topic_name);
179 ::dds::qosProfile * profile = this->
get_profile(profile_name);
191 ACE_TEXT(
"QOS_XML_Handler::get_datawriter_qos - ")
192 ACE_TEXT(
"Caught CORBA exception whilst parsing XML into IDL: %C\n"),
199 ACE_TEXT(
"QOS_XML_Handler::get_datawriter_qos - ")
200 ACE_TEXT(
"Unexpected exception whilst parsing XML into IDL.\n")));
212 ACE_UNUSED_ARG(topic_name);
217 ::dds::qosProfile * profile = this->
get_profile(profile_name);
229 ACE_TEXT(
"QOS_XML_Handler::get_datareader_qos - ")
230 ACE_TEXT(
"Caught CORBA exception whilst parsing XML into IDL: %C\n"),
237 ACE_TEXT(
"QOS_XML_Handler::get_datareader_qos - ")
238 ACE_TEXT(
"Unexpected exception whilst parsing XML into IDL.\n")));
250 ACE_UNUSED_ARG(topic_name);
255 ::dds::qosProfile * profile = this->
get_profile(profile_name);
267 ACE_TEXT(
"QOS_XML_Handler::get_topic_qos - ")
268 ACE_TEXT(
"Caught CORBA exception whilst parsing XML into IDL: %C\n"),
275 ACE_TEXT(
"QOS_XML_Handler::get_topic_qos - ")
276 ACE_TEXT(
"Unexpected exception whilst parsing XML into IDL.\n")));
290 ::dds::qosProfile * profile = this->
get_profile(profile_name);
302 ACE_TEXT(
"QOS_XML_Handler::get_publisher_qos - ")
303 ACE_TEXT(
"Caught CORBA exception whilst parsing XML into IDL: %C\n"),
310 ACE_TEXT(
"QOS_XML_Handler::get_publisher_qos - ")
311 ACE_TEXT(
"Unexpected exception whilst parsing XML into IDL.\n")));
325 ::dds::qosProfile * profile = this->
get_profile(profile_name);
337 ACE_TEXT(
"QOS_XML_Handler::get_subscriber_qos - ")
338 ACE_TEXT(
"Caught CORBA exception whilst parsing XML into IDL: %C\n"),
345 ACE_TEXT(
"QOS_XML_Handler::get_subscriber_qos - ")
346 ACE_TEXT(
"Unexpected exception whilst parsing XML into IDL.\n")));
360 ::dds::qosProfile * profile = this->
get_profile(profile_name);
372 ACE_TEXT(
"QOS_XML_Handler::get_participant_qos - ")
373 ACE_TEXT(
"Caught CORBA exception whilst parsing XML into IDL: %C\n"),
380 ACE_TEXT(
"QOS_XML_Handler::get_participant_qos - ")
381 ACE_TEXT(
"Unexpected exception whilst parsing XML into IDL.\n")));
DDS::ReturnCode_t get_participant_qos(::DDS::DomainParticipantQos &sub_qos, const ACE_TCHAR *profile_name)
const char * c_str(void) const
DDS::ReturnCode_t get_datareader_qos(::DDS::DataReaderQos &dr_qos, const ACE_TCHAR *profile_name, const ACE_TCHAR *topic_name)
static bool get_subscriber_qos(::DDS::SubscriberQos &sub_qos, ::dds::qosProfile *profile, const ACE_TCHAR *name=0)
size_t strlen(const char *s)
DDS::ReturnCode_t get_publisher_qos(::DDS::PublisherQos &pub_qos, const ACE_TCHAR *profile_name)
static bool get_publisher_qos(::DDS::PublisherQos &pub_qos, ::dds::qosProfile *profile, const ACE_TCHAR *name=0)
DDS::ReturnCode_t get_topic_qos(::DDS::TopicQos &tp_qos, const ACE_TCHAR *profile_name, const ACE_TCHAR *topic_name)
DDS::ReturnCode_t get_datawriter_qos(::DDS::DataWriterQos &dw_qos, const ACE_TCHAR *profile_name, const ACE_TCHAR *topic_name)
static bool get_datareader_qos(::DDS::DataReaderQos &dr_qos, ::dds::qosProfile *profile, const ACE_TCHAR *name=0)
virtual ACE_CString _info(void) const=0
DDS::ReturnCode_t get_subscriber_qos(::DDS::SubscriberQos &sub_qos, const ACE_TCHAR *profile_name)
DDS::ReturnCode_t addQoSProfile(const dds::qosProfile &profile)
::dds::qosProfile * get_profile(const ACE_TCHAR *profile_name)
int strcmp(const char *s, const char *t)
static bool get_topic_qos(::DDS::TopicQos &tp_qos, ::dds::qosProfile *profile, const ACE_TCHAR *name=0)
DDS::ReturnCode_t addQoSProfileSeq(const dds::qosProfile_seq &profiles)
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
::dds::qosProfile_seq profiles_
const ReturnCode_t RETCODE_ERROR
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
const ReturnCode_t RETCODE_OK
DDS::ReturnCode_t delQoSProfile(const ACE_TCHAR *profileName)
The Internal API and Implementation of OpenDDS.
static bool get_participant_qos(::DDS::DomainParticipantQos &dp_qos, ::dds::qosProfile *profile, const ACE_TCHAR *name=0)
const ReturnCode_t RETCODE_BAD_PARAMETER
static bool get_datawriter_qos(::DDS::DataWriterQos &dw_qos, ::dds::qosProfile *profile, const ACE_TCHAR *name=0)