Changeset 1347 for trunk/source/persistency/gdml/src/G4GDMLReadSetup.cc
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/persistency/gdml/src/G4GDMLReadSetup.cc
r1337 r1347 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4GDMLReadSetup.cc,v 1.1 0 2009/03/24 15:47:33gcosmo Exp $27 // GEANT4 tag $Name: g eant4-09-04-beta-01$26 // $Id: G4GDMLReadSetup.cc,v 1.11 2010/10/14 16:19:40 gcosmo Exp $ 27 // GEANT4 tag $Name: gdml-V09-03-09 $ 28 28 // 29 29 // class G4GDMLReadSetup Implementation … … 79 79 const xercesc::DOMAttr* const attribute 80 80 = dynamic_cast<xercesc::DOMAttr*>(attribute_node); 81 if (!attribute) 82 { 83 G4Exception("G4GDMLReadSetup::SetupRead()", 84 "InvalidRead", FatalException, "No attribute found!"); 85 return; 86 } 81 87 const G4String attName = Transcode(attribute->getName()); 82 88 const G4String attValue = Transcode(attribute->getValue()); … … 92 98 const xercesc::DOMElement* const child 93 99 = dynamic_cast<xercesc::DOMElement*>(iter); 100 if (!child) 101 { 102 G4Exception("G4GDMLReadSetup::SetupRead()", 103 "InvalidRead", FatalException, "No child found!"); 104 return; 105 } 94 106 const G4String tag = Transcode(child->getTagName()); 95 107
Note: See TracChangeset
for help on using the changeset viewer.