CMS 3D CMS Logo

Public Member Functions | Public Attributes | Private Member Functions

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 79 of file Mixins.py.


Constructor & Destructor Documentation

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

Definition at line 83 of file Mixins.py.

00084                                                   :
00085         super(UsingBlock,self).__init__(value)
00086         self.s = s
00087         self.loc = loc
00088         self.file = file
        self.isResolved = False

Member Function Documentation

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

Definition at line 90 of file Mixins.py.

00091                        :
        return isinstance(value,str)
def Mixins::UsingBlock::_valueFromString (   value) [private]
only used for cfg-parsing

Definition at line 92 of file Mixins.py.

00093                                :
00094         """only used for cfg-parsing"""
        return string(value)
def Mixins::UsingBlock::dumpPython (   self,
  options 
)

Reimplemented from Mixins::_ParameterTypeBase.

Definition at line 101 of file Mixins.py.

00102                                  :
00103         if options.isCfg:
00104             return "process."+self.value()
00105         else:
00106             return self.value()
00107 

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

Definition at line 95 of file Mixins.py.

00096                                               :
00097         value = self.value()
00098         #  doesn't seem to handle \0 correctly
00099         #if value == '\0':
00100         #    value = ''
        parameterSet.addString(self.isTracked(), myname, value)

Member Data Documentation

Definition at line 83 of file Mixins.py.

Definition at line 83 of file Mixins.py.

Definition at line 83 of file Mixins.py.

Definition at line 83 of file Mixins.py.