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 697 of file AtlRunQueryUtils.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 733 of file AtlRunQueryUtils.py.

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

Member Function Documentation

◆ __getattr__()

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

Definition at line 741 of file AtlRunQueryUtils.py.

741  def __getattr__(self,name):
742  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 737 of file AtlRunQueryUtils.py.

◆ __root

python.utils.AtlRunQueryUtils.XMLReader.__root
private

Definition at line 738 of file AtlRunQueryUtils.py.

◆ doc

python.utils.AtlRunQueryUtils.XMLReader.doc

Definition at line 735 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