CMS 3D CMS Logo

Mixins::UsingBlock Class Reference

Inheritance diagram for Mixins::UsingBlock:

Mixins::_SimpleParameterTypeBase Mixins::_ParameterTypeBase

List of all members.

Public Member Functions

def __init__
def dumpPython
def insertInto

Public Attributes

 file
 isResolved
 loc
 s

Private Member Functions

def _isValid
def _valueFromString


Detailed Description

For injection purposes, pretend this is a new parameter type
   then have a post process step which strips these out

Definition at line 63 of file Mixins.py.


Member Function Documentation

def Mixins::UsingBlock::__init__ (   self,
  value,
  s = '',
  loc = 0,
  file = '' 
)

Definition at line 67 of file Mixins.py.

00067                                                   :
00068         super(UsingBlock,self).__init__(value)
00069         self.s = s
00070         self.loc = loc
00071         self.file = file
00072         self.isResolved = False
00073     @staticmethod
    def _isValid(value):

def Mixins::UsingBlock::_isValid (   value  )  [private]

Definition at line 74 of file Mixins.py.

00074                        :
00075         return isinstance(value,str)
    def _valueFromString(value):

def Mixins::UsingBlock::_valueFromString (   value  )  [private]

only used for cfg-parsing

Definition at line 76 of file Mixins.py.

00076                                :
00077         """only used for cfg-parsing"""
00078         return string(value)
    def insertInto(self, parameterSet, myname):

def Mixins::UsingBlock::dumpPython (   self,
  options 
)

Reimplemented from Mixins::_ParameterTypeBase.

Definition at line 85 of file Mixins.py.

00085                                  :
00086         if options.isCfg:
00087             return "process."+self.value()
00088         else:
00089             return self.value()
00090 
00091 
class _Parameterizable(object):

def Mixins::UsingBlock::insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 79 of file Mixins.py.

00079                                               :
00080         value = self.value()
00081         #  doesn't seem to handle \0 correctly
00082         #if value == '\0':
00083         #    value = ''
00084         parameterSet.addString(self.isTracked(), myname, value)
    def dumpPython(self, options):


Member Data Documentation

Mixins::UsingBlock::file

Definition at line 71 of file Mixins.py.

Mixins::UsingBlock::isResolved

Definition at line 72 of file Mixins.py.

Mixins::UsingBlock::loc

Definition at line 70 of file Mixins.py.

Mixins::UsingBlock::s

Definition at line 69 of file Mixins.py.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:49:06 2009 for CMSSW by  doxygen 1.5.4