ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.fileutil.AccessType Class Reference
Collaboration diagram for python.fileutil.AccessType:

Public Member Functions

def __init__ (self, name, matchPattern, replaceWith, baseModule, pathModule)
 
def matches (self, filename)
 
def cleanUp (self, filename)
 

Public Attributes

 name
 
 matchPat
 
 replacePat
 
 baseModule
 
 pathModule
 

Detailed Description

Definition at line 53 of file fileutil.py.

Constructor & Destructor Documentation

◆ __init__()

def python.fileutil.AccessType.__init__ (   self,
  name,
  matchPattern,
  replaceWith,
  baseModule,
  pathModule 
)

Definition at line 54 of file fileutil.py.

54  def __init__(self, name, matchPattern, replaceWith, baseModule, pathModule):
55  self.name = name
56  self.matchPat = matchPattern
57  self.replacePat = replaceWith
58  self.baseModule = baseModule
59  self.pathModule = pathModule
60 
61 

Member Function Documentation

◆ cleanUp()

def python.fileutil.AccessType.cleanUp (   self,
  filename 
)

Definition at line 66 of file fileutil.py.

66  def cleanUp(self,filename):
67  return re.sub( self.matchPat, self.replacePat, filename )
68 
69 
70 #supported access types

◆ matches()

def python.fileutil.AccessType.matches (   self,
  filename 
)

Definition at line 62 of file fileutil.py.

62  def matches(self,filename):
63  return re.search( self.matchPat, filename ) is not None
64 
65 

Member Data Documentation

◆ baseModule

python.fileutil.AccessType.baseModule

Definition at line 58 of file fileutil.py.

◆ matchPat

python.fileutil.AccessType.matchPat

Definition at line 56 of file fileutil.py.

◆ name

python.fileutil.AccessType.name

Definition at line 55 of file fileutil.py.

◆ pathModule

python.fileutil.AccessType.pathModule

Definition at line 59 of file fileutil.py.

◆ replacePat

python.fileutil.AccessType.replacePat

Definition at line 57 of file fileutil.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