Dv::Util::DirectoryOperation Class Reference

Abstract class that can be subclassed to implement useful operations on directories during a Directory::walk(). More...

#include <file.h>

List of all members.

Public Member Functions

virtual ~DirectoryOperation ()
virtual void operator() (const Dv::Util::Directory &parent, Dv::Util::Directory &directory, const std::string &directoryname)
 This operation is called by e.g.

Detailed Description

Abstract class that can be subclassed to implement useful operations on directories during a Directory::walk().

Author:
Davy Van Nieuwenborgh <rasto@rasto.be>

Definition at line 366 of file file.h.


Constructor & Destructor Documentation

virtual Dv::Util::DirectoryOperation::~DirectoryOperation (  )  [virtual]

Member Function Documentation

virtual void Dv::Util::DirectoryOperation::operator() ( const Dv::Util::Directory parent,
Dv::Util::Directory directory,
const std::string &  directoryname 
) [virtual]

This operation is called by e.g.

Directory::walk() every time a directory is encountered. This method will be in general reimplemented by the user to perform something useful. It's default behaviour is to output path and directoryname to std::out.

Author:
Davy Van Nieuwenborgh <rasto@rasto.be>
Parameters:
parent parent directory object of the directory
directory directory object of the directory
directoryname the name of the directory without the parent path
Warning:
Remember to catch FileError exceptions if you need them, as they get catched in Directory::walk to prevent an incomplete walk.

The documentation for this class was generated from the following file:

dvutil-1.0.10 [ 5 December, 2009]