Changeset 921 for trunk/source/persistency/gdml/src
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/persistency/gdml/src/G4GDMLParser.cc
r818 r921 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4GDMLParser.cc,v 1.13 2008/11/20 15:33:52 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 // 30 // 31 // class G4GDMLParser Implementation 32 // 33 // ------------------------------------------------------------------------- 34 26 35 #include "G4GDMLParser.hh" 36 37 G4GDMLParser::G4GDMLParser() 38 : ucode(false) 39 { 40 reader = new G4GDMLReadStructure; 41 writer = new G4GDMLWriteStructure; 42 xercesc::XMLPlatformUtils::Initialize(); 43 } 44 45 G4GDMLParser::G4GDMLParser(G4GDMLReadStructure* ext) 46 : ucode(true) 47 { 48 reader = ext; 49 writer = new G4GDMLWriteStructure; 50 xercesc::XMLPlatformUtils::Initialize(); 51 } 52 53 G4GDMLParser::~G4GDMLParser() 54 { 55 xercesc::XMLPlatformUtils::Terminate(); 56 delete writer; 57 if (!ucode) { delete reader; } 58 }
Note: See TracChangeset
for help on using the changeset viewer.