OpenDDS  Snapshot(2023/04/28-20:55)
Functions
dds::reader Namespace Reference

Functions

::dds::qosProfile_seq dds (xercesc::DOMDocument const *d)
 

Function Documentation

◆ dds()

::dds::qosProfile_seq dds::reader::dds ( xercesc::DOMDocument const *  d)

Definition at line 7398 of file dds_qos.cpp.

References ACE_TEXT().

Referenced by OpenDDS::DCPS::QOS_XML_File_Handler::init(), and OpenDDS::DCPS::QOS_XML_String_Handler::init().

7399  {
7400  // Initiate our Singleton as an ACE_TSS object (ensures thread
7401  // specific storage
7402  ID_Map::TSS_ID_Map* TSS_ID_Map (ACE_Singleton<ID_Map::TSS_ID_Map, ACE_Null_Mutex>::instance());
7403  xercesc::DOMElement* dom_element = d->getDocumentElement ();
7404  if (!dom_element)
7405  {
7406  throw 1;
7407  }
7408 
7409  ::XSCRT::XML::Element<ACE_TCHAR> e (dom_element);
7410  if (e.name () == ACE_TEXT("dds"))
7411  {
7412  ::dds::qosProfile_seq r (e);
7413 
7414  (*TSS_ID_Map)->resolve_idref();
7415 
7416  return r;
7417  }
7418 
7419  else
7420  {
7421  throw 1;
7422  }
7423  }
ACE_TEXT("TCP_Factory")