ATLAS Offline Software
Classes | Public Member Functions | Public Attributes | Private Attributes | List of all members
python.utils.AtlRunQueryUtils.XMLReader Class Reference
Inheritance diagram for python.utils.AtlRunQueryUtils.XMLReader:
Collaboration diagram for python.utils.AtlRunQueryUtils.XMLReader:

Classes

class  XMLElement
 

Public Member Functions

def __init__ (self, filename)
 
def __getattr__ (self, name)
 

Public Attributes

 doc
 

Private Attributes

 __filename
 
 __root
 

Detailed Description

Definition at line 696 of file AtlRunQueryUtils.py.

Constructor & Destructor Documentation

◆ __init__()

def python.utils.AtlRunQueryUtils.XMLReader.__init__ (   self,
  filename 
)

Definition at line 732 of file AtlRunQueryUtils.py.

732  def __init__(self,filename):
733  import xml.etree.ElementTree as ET
734  self.doc = ET.parse(filename)
735  root = XMLReader.XMLElement(self.doc.getroot())
736  self.__filename = filename
737  self.__root = root
738  self.__dict__[root.tag] = root
739 

Member Function Documentation

◆ __getattr__()

def python.utils.AtlRunQueryUtils.XMLReader.__getattr__ (   self,
  name 
)

Definition at line 740 of file AtlRunQueryUtils.py.

740  def __getattr__(self,name):
741  raise AttributeError ("'%s'. XML document '%s' has root tag '%s'" % (name,self.__filename, self.__root.tag))

Member Data Documentation

◆ __filename

python.utils.AtlRunQueryUtils.XMLReader.__filename
private

Definition at line 736 of file AtlRunQueryUtils.py.

◆ __root

python.utils.AtlRunQueryUtils.XMLReader.__root
private

Definition at line 737 of file AtlRunQueryUtils.py.

◆ doc

python.utils.AtlRunQueryUtils.XMLReader.doc

Definition at line 734 of file AtlRunQueryUtils.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18