Abstract class that can be subclassed to implement useful operations on directories during a Directory::walk(). More...
#include <file.h>
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. |
Abstract class that can be subclassed to implement useful operations on directories during a Directory::walk().
Definition at line 366 of file file.h.
virtual Dv::Util::DirectoryOperation::~DirectoryOperation | ( | ) | [virtual] |
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.
parent | parent directory object of the directory | |
directory | directory object of the directory | |
directoryname | the name of the directory without the parent path |
dvutil-1.0.10 | [ 5 December, 2009] |