CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MassReplace.MassSearchParamVisitor Class Reference
Inheritance diagram for MassReplace.MassSearchParamVisitor:

Public Member Functions

def __init__ (self, paramName, paramSearch)
 
def enter (self, visitee)
 
def leave (self, visitee)
 
def modules (self)
 

Private Attributes

 _modules
 
 _paramName
 
 _paramSearch
 

Detailed Description

Visitor that travels within a cms.Sequence, looks for a parameter and returns a list of modules that have it

Definition at line 93 of file MassReplace.py.

Constructor & Destructor Documentation

◆ __init__()

def MassReplace.MassSearchParamVisitor.__init__ (   self,
  paramName,
  paramSearch 
)

Definition at line 95 of file MassReplace.py.

95  def __init__(self,paramName,paramSearch):
96  self._paramName = paramName
97  self._paramSearch = paramSearch
98  self._modules = []

Member Function Documentation

◆ enter()

def MassReplace.MassSearchParamVisitor.enter (   self,
  visitee 
)

Definition at line 99 of file MassReplace.py.

99  def enter(self,visitee):
100  if (hasattr(visitee,self._paramName)):
101  if getattr(visitee,self._paramName) == self._paramSearch:
102  self._modules.append(visitee)

References MassReplace.MassSearchParamVisitor._modules, MassReplace.MassSearchParamVisitor._paramName, MassReplace.MassSearchReplaceAnyInputTagVisitor._paramSearch, MassReplace.MassSearchParamVisitor._paramSearch, ConfigBuilder.ConfigBuilder.MassSearchReplaceProcessNameVisitor._paramSearch, and mps_setup.append.

◆ leave()

def MassReplace.MassSearchParamVisitor.leave (   self,
  visitee 
)

Definition at line 103 of file MassReplace.py.

103  def leave(self,visitee):
104  pass

◆ modules()

def MassReplace.MassSearchParamVisitor.modules (   self)

Definition at line 105 of file MassReplace.py.

105  def modules(self):
106  return self._modules
107 

Member Data Documentation

◆ _modules

MassReplace.MassSearchParamVisitor._modules
private

◆ _paramName

MassReplace.MassSearchParamVisitor._paramName
private

◆ _paramSearch

MassReplace.MassSearchParamVisitor._paramSearch
private
LogMessageMonitor_cff.modules
modules
Definition: LogMessageMonitor_cff.py:7
mps_setup.append
append
Definition: mps_setup.py:85