CMS 3D CMS Logo

Public Member Functions | Private Attributes

SequenceVisitors::PathValidator Class Reference

List of all members.

Public Member Functions

def __init__
def enter
def leave
def setLabel

Private Attributes

 __label

Detailed Description

Definition at line 6 of file SequenceVisitors.py.


Constructor & Destructor Documentation

def SequenceVisitors::PathValidator::__init__ (   self)

Definition at line 7 of file SequenceVisitors.py.

00008                       :
        self.__label = ''

Member Function Documentation

def SequenceVisitors::PathValidator::enter (   self,
  visitee 
)

Definition at line 11 of file SequenceVisitors.py.

00012                            :
00013         if isinstance(visitee,OutputModule):
00014             raise ValueError("Path "+self.__label+"cannot contain an OutputModule, '"+visitee.type_()+"', with label '"+visitee.label_()+"'")
00015         if hasattr(visitee, "label_") and not isinstance(visitee,Sequence):
00016             if not visitee.hasLabel_():
                raise ValueError("Path "+self.__label+"contains a module of type '"+visitee.type_()+"' which has no assigned label.\n Most likely the module was never added to the process or it got replaced before being inserted into the process.")
def SequenceVisitors::PathValidator::leave (   self,
  visitee 
)

Definition at line 17 of file SequenceVisitors.py.

00018                            :
00019         pass

def SequenceVisitors::PathValidator::setLabel (   self,
  label 
)

Definition at line 9 of file SequenceVisitors.py.

00010                             :
        self.__label = "'"+label+"' "

Member Data Documentation

Definition at line 7 of file SequenceVisitors.py.