ATLAS Offline Software
Loading...
Searching...
No Matches
python.utils.AtlRunQueryUtils.XMLReader Class Reference
Inheritance diagram for python.utils.AtlRunQueryUtils.XMLReader:
Collaboration diagram for python.utils.AtlRunQueryUtils.XMLReader:

Classes

class  XMLElement

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Public Attributes

 doc = ET.parse(filename)

Private Attributes

 __filename = filename
 __root = root

Detailed Description

Definition at line 696 of file AtlRunQueryUtils.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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__()

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 = filename
private

Definition at line 736 of file AtlRunQueryUtils.py.

◆ __root

python.utils.AtlRunQueryUtils.XMLReader.__root = root
private

Definition at line 737 of file AtlRunQueryUtils.py.

◆ doc

python.utils.AtlRunQueryUtils.XMLReader.doc = ET.parse(filename)

Definition at line 734 of file AtlRunQueryUtils.py.


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