CMS 3D CMS Logo

Public Member Functions | Public Attributes

dqm_interfaces::DirID Class Reference

List of all members.

Public Member Functions

def __eq__
def __init__
def __repr__

Public Attributes

 compname
 depth
 mother
 name

Detailed Description

Structure used to identify a directory in the walked tree,
It carries the name and depth information.

Definition at line 354 of file dqm_interfaces.py.


Constructor & Destructor Documentation

def dqm_interfaces::DirID::__init__ (   self,
  name,
  depth,
  mother = "" 
)

Definition at line 358 of file dqm_interfaces.py.

00359                                          :
00360     self.name=name
00361     self.compname=recompile(name)
00362     self.mother=mother
    self.depth=depth

Member Function Documentation

def dqm_interfaces::DirID::__eq__ (   self,
  dirid 
)

Definition at line 363 of file dqm_interfaces.py.

00364                         :
00365     depth2=dirid.depth
00366     compname2=dirid.compname
00367     name2=dirid.name
00368     is_equal = False
00369     #if self.name in name2 or name2 in self.name:
00370     if search(self.compname,name2)!=None or search(compname2,self.name)!=None:
00371       is_equal = self.depth*depth2 <0 or self.depth==depth2
00372     if len(self.mother)*(dirid.mother)>0:
00373       is_equal = is_equal and self.mother==dirid.mother
00374     return is_equal
    
def dqm_interfaces::DirID::__repr__ (   self)

Definition at line 375 of file dqm_interfaces.py.

00376                     :
00377     return "Directory %s at level %s" %(self.name,self.depth)
00378     
#-------------------------------------------------------------------------------

Member Data Documentation

Definition at line 358 of file dqm_interfaces.py.

Definition at line 358 of file dqm_interfaces.py.

Definition at line 358 of file dqm_interfaces.py.

Definition at line 358 of file dqm_interfaces.py.