Abstract class that can be subclassed to implement useful operations on files during a Directory::walk(). More...
#include <file.h>
Public Member Functions | |
virtual | ~FileOperation () |
virtual void | operator() (const Dv::Util::Directory &parent, Dv::Util::File &file, const std::string &filename) |
This operation is called by e.g. |
Abstract class that can be subclassed to implement useful operations on files during a Directory::walk().
Definition at line 345 of file file.h.
virtual Dv::Util::FileOperation::~FileOperation | ( | ) | [virtual] |
virtual void Dv::Util::FileOperation::operator() | ( | const Dv::Util::Directory & | parent, | |
Dv::Util::File & | file, | |||
const std::string & | filename | |||
) | [virtual] |
This operation is called by e.g.
Directory::walk() every time a file 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 filename to std::out.
parent | parent directory object of the file | |
file | file object of the file | |
filename | the filename, i.e. filename without parent path. |
dvutil-1.0.10 | [ 5 December, 2009] |