55 std::ostringstream message;
56 message <<
"Referenced setup '" << ref <<
"' was not found!";
58 message,
"Returning NULL pointer!");
74 const xercesc::DOMNamedNodeMap*
const attributes = element->getAttributes();
75 XMLSize_t attributeCount = attributes->getLength();
77 for(XMLSize_t attribute_index = 0; attribute_index < attributeCount;
80 xercesc::DOMNode* attribute_node = attributes->item(attribute_index);
82 if(attribute_node->getNodeType() != xercesc::DOMNode::ATTRIBUTE_NODE)
87 const xercesc::DOMAttr*
const attribute =
88 dynamic_cast<xercesc::DOMAttr*
>(attribute_node);
89 if(attribute ==
nullptr)
92 "No attribute found!");
104 for(xercesc::DOMNode* iter = element->getFirstChild(); iter !=
nullptr;
105 iter = iter->getNextSibling())
107 if(iter->getNodeType() != xercesc::DOMNode::ELEMENT_NODE)
112 const xercesc::DOMElement*
const child =
113 dynamic_cast<xercesc::DOMElement*
>(iter);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4String RefRead(const xercesc::DOMElement *const)
virtual ~G4GDMLReadSetup()
G4String GetSetup(const G4String &)
virtual void SetupRead(const xercesc::DOMElement *const element)
std::map< G4String, G4String > setupMap
G4String GenerateName(const G4String &name, G4bool strip=false)
G4String Transcode(const XMLCh *const)