OpenDDS  Snapshot(2021/12/01-17:37)
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 6652 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().

6653  {
6654  // Initiate our Singleton as an ACE_TSS object (ensures thread
6655  // specific storage
6656  ID_Map::TSS_ID_Map* TSS_ID_Map (ACE_Singleton<ID_Map::TSS_ID_Map, ACE_Null_Mutex>::instance());
6657  xercesc::DOMElement* dom_element = d->getDocumentElement ();
6658  if (!dom_element)
6659  {
6660  throw 1;
6661  }
6662 
6663  ::XSCRT::XML::Element<ACE_TCHAR> e (dom_element);
6664  if (e.name () == ACE_TEXT("dds"))
6665  {
6666  ::dds::qosProfile_seq r (e);
6667 
6668  (*TSS_ID_Map)->resolve_idref();
6669 
6670  return r;
6671  }
6672 
6673  else
6674  {
6675  throw 1;
6676  }
6677  }
ACE_TEXT("TCP_Factory")