55 message <<
"Referenced setup '" << ref <<
"' was not found!";
56 G4Exception(
"G4GDMLReadSetup::getSetup()",
"NullSetup",
72 const xercesc::DOMNamedNodeMap*
const attributes = element->getAttributes();
73 XMLSize_t attributeCount = attributes->getLength();
75 for (XMLSize_t attribute_index=0;
76 attribute_index<attributeCount; attribute_index++)
78 xercesc::DOMNode* attribute_node = attributes->item(attribute_index);
80 if (attribute_node->getNodeType() != xercesc::DOMNode::ATTRIBUTE_NODE)
83 const xercesc::DOMAttr*
const attribute
84 =
dynamic_cast<xercesc::DOMAttr*
>(attribute_node);
94 if (attName==
"name") { name = attValue; }
97 for (xercesc::DOMNode* iter = element->getFirstChild();
98 iter != 0; iter = iter->getNextSibling())
100 if (iter->getNodeType() != xercesc::DOMNode::ELEMENT_NODE) {
continue; }
102 const xercesc::DOMElement*
const child
103 =
dynamic_cast<xercesc::DOMElement*
>(iter);
G4String GetSetup(const G4String &)
void message(RunManager *runmanager)
G4String GenerateName(const G4String &name, G4bool strip=false)
virtual void SetupRead(const xercesc::DOMElement *const element)
virtual ~G4GDMLReadSetup()
std::map< G4String, G4String > setupMap
G4String RefRead(const xercesc::DOMElement *const)
G4String Transcode(const XMLCh *const)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout