54 std::ostringstream message;
55 message <<
"Referenced setup '" << ref <<
"' was not found!";
56 G4Exception(
"G4GDMLReadSetup::getSetup()",
"NullSetup",
71 const xercesc::DOMNamedNodeMap*
const attributes = element->getAttributes();
72 XMLSize_t attributeCount = attributes->getLength();
74 for (XMLSize_t attribute_index=0;
75 attribute_index<attributeCount; attribute_index++)
77 xercesc::DOMNode* attribute_node = attributes->item(attribute_index);
79 if (attribute_node->getNodeType() != xercesc::DOMNode::ATTRIBUTE_NODE)
82 const xercesc::DOMAttr*
const attribute
83 =
dynamic_cast<xercesc::DOMAttr*
>(attribute_node);
93 if (attName==
"name") { name = attValue; }
96 for (xercesc::DOMNode* iter = element->getFirstChild();
97 iter != 0; iter = iter->getNextSibling())
99 if (iter->getNodeType() != xercesc::DOMNode::ELEMENT_NODE) {
continue; }
101 const xercesc::DOMElement*
const child
102 =
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 &)