/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
DybPython::chop::TransformTree Class Reference

List of all members.

Public Member Functions

def __init__
def __call__
def walk

Public Attributes

 src
 tgt
 transformer

Detailed Description

Definition at line 57 of file chop.py.


Constructor & Destructor Documentation

def DybPython::chop::TransformTree::__init__ (   self,
  src,
  tgt 
)

Definition at line 58 of file chop.py.

00059                                   :
00060         assert os.path.exists(src) and os.path.isdir(src), src
00061         self.src = src
00062         self.tgt = tgt
00063         self.transformer = None


Member Function Documentation

def DybPython::chop::TransformTree::__call__ (   self,
  transformer 
)

Definition at line 64 of file chop.py.

00065                                    :
00066         self.transformer = transformer
00067         self.walk(self.src)

def DybPython::chop::TransformTree::walk (   self,
  base 
)

Definition at line 68 of file chop.py.

00069                         :
00070         for name in isorted_(os.listdir(base)):
00071             spath = os.path.join(base,name)
00072             rsrc = spath[len(self.src)+1:]
00073             tpath = os.path.join(self.tgt, rsrc)
00074             if not os.path.isdir(spath):
00075                 self.transformer( spath, tpath) 
00076             else:
00077                 self.walk(spath)


Member Data Documentation

Definition at line 58 of file chop.py.

Definition at line 58 of file chop.py.

Definition at line 58 of file chop.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:40 for DybPython by doxygen 1.7.4