#include <G4GDMLWriteSetup.hh>
Inheritance diagram for G4GDMLWriteSetup:
Public Member Functions | |
virtual void | SetupWrite (xercesc::DOMElement *, const G4LogicalVolume *const) |
Protected Member Functions | |
G4GDMLWriteSetup () | |
virtual | ~G4GDMLWriteSetup () |
Definition at line 45 of file G4GDMLWriteSetup.hh.
G4GDMLWriteSetup::G4GDMLWriteSetup | ( | ) | [protected] |
G4GDMLWriteSetup::~G4GDMLWriteSetup | ( | ) | [protected, virtual] |
void G4GDMLWriteSetup::SetupWrite | ( | xercesc::DOMElement * | , | |
const G4LogicalVolume * | const | |||
) | [virtual] |
Implements G4GDMLWrite.
Definition at line 47 of file G4GDMLWriteSetup.cc.
References G4cout, G4endl, G4GDMLWrite::GenerateName(), G4LogicalVolume::GetName(), G4GDMLWrite::NewAttribute(), and G4GDMLWrite::NewElement().
00049 { 00050 G4cout << "G4GDML: Writing setup..." << G4endl; 00051 00052 const G4String worldref = GenerateName(logvol->GetName(),logvol); 00053 00054 xercesc::DOMElement* setupElement = NewElement("setup"); 00055 setupElement->setAttributeNode(NewAttribute("version","1.0")); 00056 setupElement->setAttributeNode(NewAttribute("name","Default")); 00057 xercesc::DOMElement* worldElement = NewElement("world"); 00058 worldElement->setAttributeNode(NewAttribute("ref",worldref)); 00059 setupElement->appendChild(worldElement); 00060 gdmlElement->appendChild(setupElement); 00061 }