Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes
G4GDMLRead Class Referenceabstract

#include <G4GDMLRead.hh>

Inheritance diagram for G4GDMLRead:
G4GDMLReadDefine G4GDMLReadMaterials G4GDMLReadSolids G4GDMLReadSetup G4GDMLReadParamvol G4GDMLReadStructure G03ColorReader

Public Member Functions

virtual void DefineRead (const xercesc::DOMElement *const)=0
 
virtual void MaterialsRead (const xercesc::DOMElement *const)=0
 
virtual void SetupRead (const xercesc::DOMElement *const)=0
 
virtual void SolidsRead (const xercesc::DOMElement *const)=0
 
virtual void Paramvol_contentRead (const xercesc::DOMElement *const)=0
 
virtual void Volume_contentRead (const xercesc::DOMElement *const)=0
 
virtual void StructureRead (const xercesc::DOMElement *const)=0
 
virtual void ExtensionRead (const xercesc::DOMElement *const)
 
virtual G4LogicalVolumeGetVolume (const G4String &) const =0
 
virtual G4String GetSetup (const G4String &)=0
 
void Read (const G4String &, G4bool validation, G4bool isModule, G4bool strip=true)
 
void StripNames () const
 
void OverlapCheck (G4bool)
 

Protected Member Functions

 G4GDMLRead ()
 
virtual ~G4GDMLRead ()
 
G4String Transcode (const XMLCh *const)
 
G4String GenerateName (const G4String &name, G4bool strip=false)
 
G4String Strip (const G4String &) const
 
void StripName (G4String &) const
 
void GeneratePhysvolName (const G4String &, G4VPhysicalVolume *)
 
void LoopRead (const xercesc::DOMElement *const, void(G4GDMLRead::*)(const xercesc::DOMElement *const))
 

Protected Attributes

G4GDMLEvaluator eval
 
G4bool validate
 
G4bool check
 

Detailed Description

Definition at line 88 of file G4GDMLRead.hh.

Constructor & Destructor Documentation

G4GDMLRead::G4GDMLRead ( )
protected

Definition at line 45 of file G4GDMLRead.cc.

References G4UnitDefinition::BuildUnitsTable().

46  : validate(true), check(false), inLoop(0), loopCount(0)
47 {
49 }
static void BuildUnitsTable()
G4bool validate
Definition: G4GDMLRead.hh:145
G4bool check
Definition: G4GDMLRead.hh:146
G4GDMLRead::~G4GDMLRead ( )
protectedvirtual

Definition at line 51 of file G4GDMLRead.cc.

52 {
53 }

Member Function Documentation

virtual void G4GDMLRead::DefineRead ( const xercesc::DOMElement *  const)
pure virtual

Implemented in G4GDMLReadDefine.

Referenced by Read().

void G4GDMLRead::ExtensionRead ( const xercesc::DOMElement * const  )
virtual

Reimplemented in G03ColorReader.

Definition at line 264 of file G4GDMLRead.cc.

References G4Exception(), and JustWarning.

Referenced by Read().

265 {
266  G4String error_msg = "No handle to user-code for parsing extensions!";
267  G4Exception("G4GDMLRead::ExtensionRead()",
268  "NotImplemented", JustWarning, error_msg);
269 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4String G4GDMLRead::GenerateName ( const G4String name,
G4bool  strip = false 
)
protected

Definition at line 68 of file G4GDMLRead.cc.

References eval, G4GDMLEvaluator::SolveBrackets(), and StripName().

Referenced by G4GDMLReadStructure::AssemblyRead(), G4GDMLReadSolids::BooleanRead(), G4GDMLReadStructure::BorderSurfaceRead(), G4GDMLReadSolids::BoxRead(), G03ColorReader::ColorRead(), G4GDMLReadSolids::ConeRead(), G4GDMLReadSolids::CutTubeRead(), G4GDMLReadStructure::DivisionvolRead(), G4GDMLReadSolids::ElconeRead(), G4GDMLReadMaterials::ElementRead(), G4GDMLReadSolids::EllipsoidRead(), G4GDMLReadSolids::EltubeRead(), G4GDMLReadStructure::FileRead(), G4GDMLReadSolids::GenericPolyconeRead(), G4GDMLReadSolids::GenericPolyhedraRead(), G4GDMLReadSolids::GenTrapRead(), G4GDMLReadSolids::HypeRead(), G4GDMLReadMaterials::IsotopeRead(), G4GDMLReadMaterials::MaterialRead(), G4GDMLReadDefine::MatrixRead(), G4GDMLReadMaterials::MixtureRead(), G4GDMLReadSolids::OpticalSurfaceRead(), G4GDMLReadSolids::OrbRead(), G4GDMLReadSolids::ParaboloidRead(), G4GDMLReadParamvol::ParametersRead(), G4GDMLReadParamvol::ParamvolRead(), G4GDMLReadSolids::ParaRead(), G4GDMLReadStructure::PhysvolRead(), G4GDMLReadSolids::PolyconeRead(), G4GDMLReadSolids::PolyhedraRead(), G4GDMLReadDefine::PositionRead(), G4GDMLReadMaterials::PropertyRead(), G4GDMLReadSolids::QuadrangularRead(), G4GDMLReadSolids::ReflectedSolidRead(), G4GDMLReadStructure::ReplicaRead(), G4GDMLReadStructure::ReplicavolRead(), G4GDMLReadDefine::RotationRead(), G4GDMLReadDefine::ScaleRead(), G4GDMLReadSetup::SetupRead(), G4GDMLReadStructure::SkinSurfaceRead(), G4GDMLReadSolids::SphereRead(), G4GDMLReadSolids::TessellatedRead(), G4GDMLReadSolids::TetRead(), G4GDMLReadSolids::TorusRead(), G4GDMLReadSolids::TrapRead(), G4GDMLReadSolids::TrdRead(), G4GDMLReadSolids::TriangularRead(), G4GDMLReadSolids::TubeRead(), G4GDMLReadSolids::TwistedboxRead(), G4GDMLReadSolids::TwistedtrapRead(), G4GDMLReadSolids::TwistedtrdRead(), G4GDMLReadSolids::TwistedtubsRead(), G03ColorReader::VolumeRead(), G4GDMLReadStructure::VolumeRead(), and G4GDMLReadSolids::XtruRead().

69 {
70  G4String nameOut(nameIn);
71 
72  if (inLoop>0)
73  {
74  nameOut = eval.SolveBrackets(nameOut);
75 // std::stringstream stream;
76 // stream << "0x" << loopCount;
77 // nameOut = nameOut + stream.str();
78  }
79  if (strip) { StripName(nameOut); }
80 
81  return nameOut;
82 }
G4GDMLEvaluator eval
Definition: G4GDMLRead.hh:144
void StripName(G4String &) const
Definition: G4GDMLRead.cc:106
G4String SolveBrackets(const G4String &)
void G4GDMLRead::GeneratePhysvolName ( const G4String nameIn,
G4VPhysicalVolume physvol 
)
protected

Definition at line 84 of file G4GDMLRead.cc.

References eval, G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetName(), G4VPhysicalVolume::SetName(), and G4GDMLEvaluator::SolveBrackets().

Referenced by G4GDMLReadStructure::DivisionvolRead(), G4GDMLReadStructure::PhysvolRead(), and G4GDMLReadStructure::ReplicaRead().

86 {
87  G4String nameOut(nameIn);
88 
89  if (nameIn.empty())
90  {
91  std::stringstream stream;
92  stream << physvol->GetLogicalVolume()->GetName() << "_PV";
93  nameOut = stream.str();
94  }
95  nameOut = eval.SolveBrackets(nameOut);
96 
97  physvol->SetName(nameOut);
98 }
G4GDMLEvaluator eval
Definition: G4GDMLRead.hh:144
G4String GetName() const
void SetName(const G4String &pName)
G4String SolveBrackets(const G4String &)
G4LogicalVolume * GetLogicalVolume() const
virtual G4String G4GDMLRead::GetSetup ( const G4String )
pure virtual

Implemented in G4GDMLReadSetup.

virtual G4LogicalVolume* G4GDMLRead::GetVolume ( const G4String ) const
pure virtual
void G4GDMLRead::LoopRead ( const xercesc::DOMElement * const  element,
void(G4GDMLRead::*)(const xercesc::DOMElement *const)  func 
)
protected

Definition at line 179 of file G4GDMLRead.cc.

References eval, G4GDMLEvaluator::EvaluateInteger(), FatalException, G4Exception(), G4GDMLEvaluator::IsVariable(), G4GDMLEvaluator::SetVariable(), Transcode(), and var().

Referenced by G4GDMLReadParamvol::ParameterisedRead(), G4GDMLReadParamvol::Paramvol_contentRead(), G4GDMLReadSolids::SolidsRead(), G4GDMLReadStructure::StructureRead(), and G4GDMLReadStructure::Volume_contentRead().

181 {
182  G4String var;
183  G4String from;
184  G4String to;
185  G4String step;
186 
187  const xercesc::DOMNamedNodeMap* const attributes = element->getAttributes();
188  XMLSize_t attributeCount = attributes->getLength();
189 
190  for (XMLSize_t attribute_index=0;
191  attribute_index<attributeCount;attribute_index++)
192  {
193  xercesc::DOMNode* attribute_node = attributes->item(attribute_index);
194 
195  if (attribute_node->getNodeType() != xercesc::DOMNode::ATTRIBUTE_NODE)
196  { continue; }
197 
198  const xercesc::DOMAttr* const attribute
199  = dynamic_cast<xercesc::DOMAttr*>(attribute_node);
200  if (!attribute)
201  {
202  G4Exception("G4GDMLRead::LoopRead()", "InvalidRead",
203  FatalException, "No attribute found!");
204  return;
205  }
206  const G4String attribute_name = Transcode(attribute->getName());
207  const G4String attribute_value = Transcode(attribute->getValue());
208 
209  if (attribute_name=="for") { var = attribute_value; } else
210  if (attribute_name=="from") { from = attribute_value; } else
211  if (attribute_name=="to") { to = attribute_value; } else
212  if (attribute_name=="step") { step = attribute_value; }
213  }
214 
215  if (var.empty())
216  {
217  G4Exception("G4GDMLRead::loopRead()", "InvalidRead",
218  FatalException, "No variable is determined for loop!");
219  }
220 
221  if (!eval.IsVariable(var))
222  {
223  G4Exception("G4GDMLRead::loopRead()", "InvalidRead",
224  FatalException, "Variable is not defined in loop!");
225  }
226 
227  G4int _var = eval.EvaluateInteger(var);
228  G4int _from = eval.EvaluateInteger(from);
229  G4int _to = eval.EvaluateInteger(to);
230  G4int _step = eval.EvaluateInteger(step);
231 
232  if (!from.empty()) { _var = _from; }
233 
234  if (_from == _to)
235  {
236  G4Exception("G4GDMLRead::loopRead()", "InvalidRead",
237  FatalException, "Empty loop!");
238  }
239  if ((_from < _to) && (_step <= 0))
240  {
241  G4Exception("G4GDMLRead::loopRead()", "InvalidRead",
242  FatalException, "Infinite loop!");
243  }
244  if ((_from > _to) && (_step >= 0))
245  {
246  G4Exception("G4GDMLRead::loopRead()", "InvalidRead",
247  FatalException, "Infinite loop!");
248  }
249 
250  inLoop++;
251 
252  while (_var <= _to)
253  {
254  eval.SetVariable(var,_var);
255  (this->*func)(element);
256  _var += _step;
257  loopCount++;
258  }
259 
260  inLoop--;
261  if (!inLoop) { loopCount = 0; }
262 }
G4int EvaluateInteger(const G4String &)
G4GDMLEvaluator eval
Definition: G4GDMLRead.hh:144
real *8 function var(A, B, C, D)
Definition: dpm25nuc1.f:4649
G4String Transcode(const XMLCh *const)
Definition: G4GDMLRead.cc:55
int G4int
Definition: G4Types.hh:78
G4bool IsVariable(const G4String &) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
void SetVariable(const G4String &, G4double)
virtual void G4GDMLRead::MaterialsRead ( const xercesc::DOMElement *  const)
pure virtual

Implemented in G4GDMLReadMaterials.

Referenced by Read().

void G4GDMLRead::OverlapCheck ( G4bool  flag)

Definition at line 63 of file G4GDMLRead.cc.

References check.

64 {
65  check = flag;
66 }
G4bool check
Definition: G4GDMLRead.hh:146
virtual void G4GDMLRead::Paramvol_contentRead ( const xercesc::DOMElement *  const)
pure virtual
void G4GDMLRead::Read ( const G4String fileName,
G4bool  validation,
G4bool  isModule,
G4bool  strip = true 
)

Definition at line 271 of file G4GDMLRead.cc.

References DefineRead(), ExtensionRead(), FatalException, G4cout, G4endl, G4Exception(), MaterialsRead(), SetupRead(), SolidsRead(), StripNames(), StructureRead(), Transcode(), and validate.

Referenced by G4GDMLReadStructure::FileRead().

275 {
276  if (isModule)
277  {
278  G4cout << "G4GDML: Reading module '" << fileName << "'..." << G4endl;
279  }
280  else
281  {
282  G4cout << "G4GDML: Reading '" << fileName << "'..." << G4endl;
283  }
284 
285  inLoop = 0;
286  validate = validation;
287 
288  xercesc::ErrorHandler* handler = new G4GDMLErrorHandler(!validate);
289  xercesc::XercesDOMParser* parser = new xercesc::XercesDOMParser;
290 
291  parser->setValidationScheme(xercesc::XercesDOMParser::Val_Always);
292  parser->setValidationSchemaFullChecking(true);
293  parser->setCreateEntityReferenceNodes(false);
294  // Entities will be automatically resolved by Xerces
295 
296  parser->setDoNamespaces(true);
297  parser->setDoSchema(true);
298  parser->setErrorHandler(handler);
299 
300  try { parser->parse(fileName.c_str()); }
301  catch (const xercesc::XMLException &e)
302  { G4cout << "G4GDML: " << Transcode(e.getMessage()) << G4endl; }
303  catch (const xercesc::DOMException &e)
304  { G4cout << "G4GDML: " << Transcode(e.getMessage()) << G4endl; }
305 
306  xercesc::DOMDocument* doc = parser->getDocument();
307 
308  if (!doc)
309  {
310  G4String error_msg = "Unable to open document: " + fileName;
311  G4Exception("G4GDMLRead::Read()", "InvalidRead",
312  FatalException, error_msg);
313  return;
314  }
315  xercesc::DOMElement* element = doc->getDocumentElement();
316 
317  if (!element)
318  {
319  G4Exception("G4GDMLRead::Read()", "InvalidRead",
320  FatalException, "Empty document!");
321  return;
322  }
323 
324  for (xercesc::DOMNode* iter = element->getFirstChild();
325  iter != 0; iter = iter->getNextSibling())
326  {
327  if (iter->getNodeType() != xercesc::DOMNode::ELEMENT_NODE) { continue; }
328 
329  const xercesc::DOMElement* const child
330  = dynamic_cast<xercesc::DOMElement*>(iter);
331  if (!child)
332  {
333  G4Exception("G4GDMLRead::Read()", "InvalidRead",
334  FatalException, "No child found!");
335  return;
336  }
337  const G4String tag = Transcode(child->getTagName());
338 
339  if (tag=="define") { DefineRead(child); } else
340  if (tag=="materials") { MaterialsRead(child); } else
341  if (tag=="solids") { SolidsRead(child); } else
342  if (tag=="setup") { SetupRead(child); } else
343  if (tag=="structure") { StructureRead(child); } else
344  if (tag=="extension") { ExtensionRead(child); }
345  else
346  {
347  G4String error_msg = "Unknown tag in gdml: " + tag;
348  G4Exception("G4GDMLRead::Read()", "InvalidRead",
349  FatalException, error_msg);
350  }
351  }
352 
353  delete parser;
354  delete handler;
355 
356  if (isModule)
357  {
358  G4cout << "G4GDML: Reading module '" << fileName << "' done!" << G4endl;
359  }
360  else
361  {
362  G4cout << "G4GDML: Reading '" << fileName << "' done!" << G4endl;
363  if (strip) { StripNames(); }
364  }
365 }
Definition: xmlparse.cc:179
virtual void MaterialsRead(const xercesc::DOMElement *const)=0
G4String Transcode(const XMLCh *const)
Definition: G4GDMLRead.cc:55
void StripNames() const
Definition: G4GDMLRead.cc:111
virtual void StructureRead(const xercesc::DOMElement *const)=0
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
virtual void DefineRead(const xercesc::DOMElement *const)=0
virtual void ExtensionRead(const xercesc::DOMElement *const)
Definition: G4GDMLRead.cc:264
G4bool validate
Definition: G4GDMLRead.hh:145
#define G4endl
Definition: G4ios.hh:61
virtual void SetupRead(const xercesc::DOMElement *const)=0
virtual void SolidsRead(const xercesc::DOMElement *const)=0
virtual void G4GDMLRead::SetupRead ( const xercesc::DOMElement *  const)
pure virtual

Implemented in G4GDMLReadSetup.

Referenced by Read().

virtual void G4GDMLRead::SolidsRead ( const xercesc::DOMElement *  const)
pure virtual

Implemented in G4GDMLReadSolids.

Referenced by Read(), and G4GDMLReadSolids::SolidsRead().

G4String G4GDMLRead::Strip ( const G4String name) const
protected
void G4GDMLRead::StripName ( G4String name) const
protected

Definition at line 106 of file G4GDMLRead.cc.

References G4String::remove().

Referenced by GenerateName(), and StripNames().

107 {
108  name.remove(name.find("0x"));
109 }
G4String & remove(str_size)
void G4GDMLRead::StripNames ( ) const

Definition at line 111 of file G4GDMLRead.cc.

References G4cout, G4endl, G4Element::GetElementTable(), G4PhysicalVolumeStore::GetInstance(), G4LogicalVolumeStore::GetInstance(), G4SolidStore::GetInstance(), G4Material::GetMaterialTable(), G4VSolid::GetName(), G4Element::GetName(), G4VPhysicalVolume::GetName(), G4Material::GetName(), G4LogicalVolume::GetName(), G4VSolid::SetName(), G4VPhysicalVolume::SetName(), G4LogicalVolume::SetName(), G4Element::SetName(), G4Material::SetName(), and StripName().

Referenced by Read().

112 {
113  // Strips off names of volumes, solids elements and materials from possible
114  // reference pointers or IDs attached to their original identifiers.
115 
119  const G4ElementTable* elements = G4Element::GetElementTable();
120  const G4MaterialTable* materials = G4Material::GetMaterialTable();
121 
122  G4cout << "Stripping off GDML names of materials, solids and volumes ..."
123  << G4endl;
124 
125  G4String sname;
126  register size_t i;
127 
128  // Solids...
129  //
130  for (i=0; i<solids->size(); i++)
131  {
132  G4VSolid* psol = (*solids)[i];
133  sname = psol->GetName();
134  StripName(sname);
135  psol->SetName(sname);
136  }
137 
138  // Logical volumes...
139  //
140  for (i=0; i<lvols->size(); i++)
141  {
142  G4LogicalVolume* lvol = (*lvols)[i];
143  sname = lvol->GetName();
144  StripName(sname);
145  lvol->SetName(sname);
146  }
147 
148  // Physical volumes...
149  //
150  for (i=0; i<pvols->size(); i++)
151  {
152  G4VPhysicalVolume* pvol = (*pvols)[i];
153  sname = pvol->GetName();
154  StripName(sname);
155  pvol->SetName(sname);
156  }
157 
158  // Materials...
159  //
160  for (i=0; i<materials->size(); i++)
161  {
162  G4Material* pmat = (*materials)[i];
163  sname = pmat->GetName();
164  StripName(sname);
165  pmat->SetName(sname);
166  }
167 
168  // Elements...
169  //
170  for (i=0; i<elements->size(); i++)
171  {
172  G4Element* pelm = (*elements)[i];
173  sname = pelm->GetName();
174  StripName(sname);
175  pelm->SetName(sname);
176  }
177 }
G4String GetName() const
void SetName(const G4String &name)
Definition: G4Material.hh:281
G4String GetName() const
const G4String & GetName() const
Definition: G4Material.hh:176
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:564
std::vector< G4Material * > G4MaterialTable
void SetName(const G4String &pName)
static G4PhysicalVolumeStore * GetInstance()
void SetName(const G4String &name)
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
void StripName(G4String &) const
Definition: G4GDMLRead.cc:106
void SetName(const G4String &pName)
#define G4endl
Definition: G4ios.hh:61
std::vector< G4Element * > G4ElementTable
const G4String & GetName() const
Definition: G4Element.hh:127
static G4ElementTable * GetElementTable()
Definition: G4Element.cc:395
void SetName(const G4String &name)
Definition: G4Element.hh:216
virtual void G4GDMLRead::StructureRead ( const xercesc::DOMElement *  const)
pure virtual
G4String G4GDMLRead::Transcode ( const XMLCh * const  toTranscode)
protected

Definition at line 55 of file G4GDMLRead.cc.

Referenced by G4GDMLReadStructure::AssemblyRead(), G4GDMLReadMaterials::AtomRead(), G4GDMLReadStructure::AuxiliaryRead(), G4GDMLReadStructure::AxisRead(), G4GDMLReadSolids::BooleanRead(), G4GDMLReadStructure::BorderSurfaceRead(), G4GDMLReadParamvol::Box_dimensionsRead(), G4GDMLReadSolids::BoxRead(), G03ColorReader::ColorRead(), G4GDMLReadMaterials::CompositeRead(), G4GDMLReadParamvol::Cone_dimensionsRead(), G4GDMLReadSolids::ConeRead(), G4GDMLReadDefine::ConstantRead(), G4GDMLReadSolids::CutTubeRead(), G4GDMLReadDefine::DefineRead(), G4GDMLReadStructure::DivisionvolRead(), G4GDMLReadMaterials::DRead(), G4GDMLReadSolids::ElconeRead(), G4GDMLReadMaterials::ElementRead(), G4GDMLReadParamvol::Ellipsoid_dimensionsRead(), G4GDMLReadSolids::EllipsoidRead(), G4GDMLReadSolids::EltubeRead(), G4GDMLReadDefine::ExpressionRead(), G03ColorReader::ExtensionRead(), G4GDMLReadStructure::FileRead(), G4GDMLReadMaterials::FractionRead(), G4GDMLReadSolids::GenericPolyconeRead(), G4GDMLReadSolids::GenericPolyhedraRead(), G4GDMLReadSolids::GenTrapRead(), G4GDMLReadParamvol::Hype_dimensionsRead(), G4GDMLReadSolids::HypeRead(), G4GDMLReadMaterials::IsotopeRead(), LoopRead(), G4GDMLReadMaterials::MaterialRead(), G4GDMLReadMaterials::MaterialsRead(), G4GDMLReadDefine::MatrixRead(), G4GDMLReadMaterials::MEERead(), G4GDMLReadMaterials::MixtureRead(), G4GDMLReadSolids::OpticalSurfaceRead(), G4GDMLReadParamvol::Orb_dimensionsRead(), G4GDMLReadSolids::OrbRead(), G4GDMLReadParamvol::Para_dimensionsRead(), G4GDMLReadSolids::ParaboloidRead(), G4GDMLReadParamvol::ParameterisedRead(), G4GDMLReadParamvol::ParametersRead(), G4GDMLReadParamvol::Paramvol_contentRead(), G4GDMLReadParamvol::ParamvolRead(), G4GDMLReadSolids::ParaRead(), G4GDMLReadStructure::PhysvolRead(), G4GDMLReadParamvol::Polycone_dimensionsRead(), G4GDMLReadSolids::PolyconeRead(), G4GDMLReadParamvol::Polyhedra_dimensionsRead(), G4GDMLReadSolids::PolyhedraRead(), G4GDMLReadDefine::PositionRead(), G4GDMLReadMaterials::PRead(), G4GDMLReadMaterials::PropertyRead(), G4GDMLReadSolids::QuadrangularRead(), G4GDMLReadStructure::QuantityRead(), G4GDMLReadDefine::QuantityRead(), Read(), G4GDMLReadSolids::ReflectedSolidRead(), G4GDMLReadDefine::RefRead(), G4GDMLReadStructure::ReplicaRead(), G4GDMLReadStructure::ReplicavolRead(), G4GDMLReadDefine::RotationRead(), G4GDMLReadSolids::RZPointRead(), G4GDMLReadDefine::ScaleRead(), G4GDMLReadSolids::SectionRead(), G4GDMLReadSetup::SetupRead(), G4GDMLReadStructure::SkinSurfaceRead(), G4GDMLReadSolids::SolidsRead(), G4GDMLReadParamvol::Sphere_dimensionsRead(), G4GDMLReadSolids::SphereRead(), G4GDMLReadStructure::StructureRead(), G4GDMLReadSolids::TessellatedRead(), G4GDMLReadSolids::TetRead(), G4GDMLReadParamvol::Torus_dimensionsRead(), G4GDMLReadSolids::TorusRead(), G4GDMLReadParamvol::Trap_dimensionsRead(), G4GDMLReadSolids::TrapRead(), G4GDMLReadParamvol::Trd_dimensionsRead(), G4GDMLReadSolids::TrdRead(), G4GDMLReadMaterials::TRead(), G4GDMLReadSolids::TriangularRead(), G4GDMLReadParamvol::Tube_dimensionsRead(), G4GDMLReadSolids::TubeRead(), G4GDMLReadSolids::TwistedboxRead(), G4GDMLReadSolids::TwistedtrapRead(), G4GDMLReadSolids::TwistedtrdRead(), G4GDMLReadSolids::TwistedtubsRead(), G4GDMLReadSolids::TwoDimVertexRead(), G4GDMLReadDefine::VariableRead(), G4GDMLReadDefine::VectorRead(), G4GDMLReadStructure::Volume_contentRead(), G03ColorReader::VolumeRead(), G4GDMLReadStructure::VolumeRead(), G4GDMLReadSolids::XtruRead(), and G4GDMLReadSolids::ZplaneRead().

56 {
57  char* char_str = xercesc::XMLString::transcode(toTranscode);
58  G4String my_str(char_str);
59  xercesc::XMLString::release(&char_str);
60  return my_str;
61 }
virtual void G4GDMLRead::Volume_contentRead ( const xercesc::DOMElement *  const)
pure virtual

Field Documentation

G4bool G4GDMLRead::check
protected
G4GDMLEvaluator G4GDMLRead::eval
protected

Definition at line 144 of file G4GDMLRead.hh.

Referenced by G4GDMLReadMaterials::AtomRead(), G4GDMLReadStructure::AxisRead(), G4GDMLReadParamvol::Box_dimensionsRead(), G4GDMLReadSolids::BoxRead(), G4GDMLReadStructure::Clear(), G03ColorReader::ColorRead(), G4GDMLReadMaterials::CompositeRead(), G4GDMLReadParamvol::Cone_dimensionsRead(), G4GDMLReadSolids::ConeRead(), G4GDMLReadDefine::ConstantRead(), G4GDMLReadSolids::CutTubeRead(), G4GDMLReadStructure::DivisionvolRead(), G4GDMLReadMaterials::DRead(), G4GDMLReadSolids::ElconeRead(), G4GDMLReadMaterials::ElementRead(), G4GDMLReadParamvol::Ellipsoid_dimensionsRead(), G4GDMLReadSolids::EllipsoidRead(), G4GDMLReadSolids::EltubeRead(), G4GDMLReadDefine::ExpressionRead(), G4GDMLReadMaterials::FractionRead(), GenerateName(), GeneratePhysvolName(), G4GDMLReadSolids::GenericPolyconeRead(), G4GDMLReadSolids::GenericPolyhedraRead(), G4GDMLReadSolids::GenTrapRead(), G4GDMLReadDefine::GetConstant(), G4GDMLReadDefine::GetVariable(), G4GDMLReadParamvol::Hype_dimensionsRead(), G4GDMLReadSolids::HypeRead(), G4GDMLReadMaterials::IsotopeRead(), G4GDMLReadDefine::IsValidID(), LoopRead(), G4GDMLReadMaterials::MaterialRead(), G4GDMLReadDefine::MatrixRead(), G4GDMLReadMaterials::MEERead(), G4GDMLReadSolids::OpticalSurfaceRead(), G4GDMLReadParamvol::Orb_dimensionsRead(), G4GDMLReadSolids::OrbRead(), G4GDMLReadParamvol::Para_dimensionsRead(), G4GDMLReadSolids::ParaboloidRead(), G4GDMLReadParamvol::ParameterisedRead(), G4GDMLReadSolids::ParaRead(), G4GDMLReadParamvol::Polycone_dimensionsRead(), G4GDMLReadSolids::PolyconeRead(), G4GDMLReadParamvol::Polyhedra_dimensionsRead(), G4GDMLReadSolids::PolyhedraRead(), G4GDMLReadDefine::PositionRead(), G4GDMLReadMaterials::PRead(), G4GDMLReadSolids::QuadrangularRead(), G4GDMLReadStructure::QuantityRead(), G4GDMLReadDefine::QuantityRead(), G4GDMLReadSolids::ReflectedSolidRead(), G4GDMLReadDefine::RotationRead(), G4GDMLReadSolids::RZPointRead(), G4GDMLReadDefine::ScaleRead(), G4GDMLReadSolids::SectionRead(), G4GDMLReadParamvol::Sphere_dimensionsRead(), G4GDMLReadSolids::SphereRead(), G4GDMLReadSolids::TetRead(), G4GDMLReadParamvol::Torus_dimensionsRead(), G4GDMLReadSolids::TorusRead(), G4GDMLReadParamvol::Trap_dimensionsRead(), G4GDMLReadSolids::TrapRead(), G4GDMLReadParamvol::Trd_dimensionsRead(), G4GDMLReadSolids::TrdRead(), G4GDMLReadMaterials::TRead(), G4GDMLReadSolids::TriangularRead(), G4GDMLReadParamvol::Tube_dimensionsRead(), G4GDMLReadSolids::TubeRead(), G4GDMLReadSolids::TwistedboxRead(), G4GDMLReadSolids::TwistedtrapRead(), G4GDMLReadSolids::TwistedtrdRead(), G4GDMLReadSolids::TwistedtubsRead(), G4GDMLReadSolids::TwoDimVertexRead(), G4GDMLReadDefine::VariableRead(), G4GDMLReadDefine::VectorRead(), G4GDMLReadStructure::Volume_contentRead(), G4GDMLReadSolids::XtruRead(), and G4GDMLReadSolids::ZplaneRead().

G4bool G4GDMLRead::validate
protected

Definition at line 145 of file G4GDMLRead.hh.

Referenced by G4GDMLReadStructure::FileRead(), and Read().


The documentation for this class was generated from the following files: