Public Member Functions | List of all members
RemoveMathFromGDML.XMLpurifier Class Reference

XML parsing approach. More...

Inheritance diagram for RemoveMathFromGDML.XMLpurifier:
RemoveMathFromGDML.GDMLexpressionRemover

Public Member Functions

def __init__ (self, args, kargs)
 
def purifyNode (self, node, level=None)
 
- Public Member Functions inherited from RemoveMathFromGDML.GDMLexpressionRemover
def __init__ (self, options=None)
 
def initROOT (self)
 
def pass_floats (self, expression)
 
def purify_native (self, expression)
 
def purify_ROOT (self, expression)
 

Additional Inherited Members

- Static Public Member Functions inherited from RemoveMathFromGDML.GDMLexpressionRemover
def sanitize (s)
 
- Public Attributes inherited from RemoveMathFromGDML.GDMLexpressionRemover
 constants
 
 environment
 
 options
 
 formula
 
 purify
 
 ROOT
 

Detailed Description

XML parsing approach.

Definition at line 267 of file RemoveMathFromGDML.py.

Constructor & Destructor Documentation

def RemoveMathFromGDML.XMLpurifier.__init__ (   self,
  args,
  kargs 
)

Definition at line 268 of file RemoveMathFromGDML.py.

268  def __init__(self, *args, **kargs):
269  GDMLexpressionRemover.__init__(self, *args, **kargs)
270 
271 
def __init__(self, args, kargs)

Member Function Documentation

def RemoveMathFromGDML.XMLpurifier.purifyNode (   self,
  node,
  level = None 
)
Purifies the attributes in the DOM node

Definition at line 272 of file RemoveMathFromGDML.py.

272  def purifyNode(self, node, level = None):
273  """Purifies the attributes in the DOM node"""
274  attributes = node.attributes
275  if not attributes: return
276  for name, value in attributes.items():
277  purified = self.purify(value)
278  if value != purified:
279  logging.debug("Evaluated '%s' into '%s'", value, purified)
280  attributes[name] = str(purified)
281  # if
282  # for attributes
def purifyNode(self, node, level=None)
static QCString str

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