Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofDelDirTreeVisitor Class Reference
[OOFILE file and directory manipulation.]

#include <ooffiles.h>

Inheritance diagram for oofDelDirTreeVisitor:

Inheritance graph
[legend]
Collaboration diagram for oofDelDirTreeVisitor:

Collaboration graph
[legend]
List of all members.

Detailed Description

utility visitor used to delete directory tree.


Public Member Functions

 oofDelDirTreeVisitor (bool delSubdirs)
virtual void visit (const oofFileRef &, oofDirectory *caller)
virtual void leaveDir (const oofFileRef &, oofDirectory *caller)
virtual bool enterRoot (oofDirectory *caller=0)
 enterDir for starting directory

virtual bool enterDir (const oofFileRef &, oofDirectory *caller=0)
 Called before iterating an oofDirectory's contents.

virtual bool handleLinkUnresolved (const oofFileRef &)
 default implementation returns false


Protected Attributes

bool mDelSubdirs
 flag to indicate if leave empty dir structure behind

short mDirDepth
bool mIgnoreBadAliases


Constructor & Destructor Documentation

oofDelDirTreeVisitor::oofDelDirTreeVisitor bool  delSubdirs  ) 
 


Member Function Documentation

bool oofDirectoryVisitor::enterDir const oofFileRef ,
oofDirectory caller = 0
[virtual, inherited]
 

Called before iterating an oofDirectory's contents.

The convention for subclasses is increment mDirDepth BEFORE any other processing in enterDir the reason being that we enter a directory as a result of iterating items in the preceding directory thus the very first directory being iterated is level 0 and we must increment BEFORE enterDir does anything to ensure that this dir is processed as level 1 or deeper.

Reimplemented in oofDirectoryList.

bool oofDirectoryVisitor::enterRoot oofDirectory caller = 0  )  [virtual, inherited]
 

enterDir for starting directory

for consistency in depth, best if overriden versions also call this or update depth

if wanted to treat just like any other dir, override with:

Returns:
enterDir(oofFileRef(*caller));

bool oofDirectoryVisitor::handleLinkUnresolved const oofFileRef  )  [virtual, inherited]
 

default implementation returns false

Reimplemented in oofDirectoryList.

void oofDelDirTreeVisitor::leaveDir const oofFileRef ,
oofDirectory caller
[virtual]
 

Reimplemented from oofDirectoryVisitor.

void oofDelDirTreeVisitor::visit const oofFileRef ,
oofDirectory caller
[virtual]
 

Implements oofDirectoryVisitor.


Member Data Documentation

bool oofDelDirTreeVisitor::mDelSubdirs [protected]
 

flag to indicate if leave empty dir structure behind

short oofDirectoryVisitor::mDirDepth [protected, inherited]
 

bool oofDirectoryVisitor::mIgnoreBadAliases [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 2 00:52:59 2004 for OOFILE by doxygen 1.3.5