Dv::Util::FileOperation Class Reference

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

#include <file.h>

List of all members.

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.

Detailed Description

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

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

Definition at line 345 of file file.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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.

Author:
Davy Van Nieuwenborgh <rasto@rasto.be>
Parameters:
parent parent directory object of the file
file file object of the file
filename the filename, i.e. filename without 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]