53 G4String error_msg =
"Referenced setup '" + ref +
"' was not found!";
54 G4Exception(
"G4GDMLReadSetup::getSetup()",
"ReadError",
67 const xercesc::DOMNamedNodeMap*
const attributes = element->getAttributes();
68 XMLSize_t attributeCount = attributes->getLength();
70 for (XMLSize_t attribute_index=0;
71 attribute_index<attributeCount; attribute_index++)
73 xercesc::DOMNode* attribute_node = attributes->item(attribute_index);
75 if (attribute_node->getNodeType() != xercesc::DOMNode::ATTRIBUTE_NODE)
78 const xercesc::DOMAttr*
const attribute
79 =
dynamic_cast<xercesc::DOMAttr*
>(attribute_node);
89 if (attName==
"name") { name = attValue; }
92 for (xercesc::DOMNode* iter = element->getFirstChild();
93 iter != 0; iter = iter->getNextSibling())
95 if (iter->getNodeType() != xercesc::DOMNode::ELEMENT_NODE) {
continue; }
97 const xercesc::DOMElement*
const child
98 =
dynamic_cast<xercesc::DOMElement*
>(iter);
std::map< G4String, G4String > setupMap
virtual ~G4GDMLReadSetup()
virtual void SetupRead(const xercesc::DOMElement *const element)
G4String Transcode(const XMLCh *const)
G4String RefRead(const xercesc::DOMElement *const)
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4String GenerateName(const G4String &name, G4bool strip=false)
G4String GetSetup(const G4String &)