Aegis  4.25.D505
Public Types | Public Member Functions
dir_functor Class Reference

#include <functor.h>

Inheritance diagram for dir_functor:
dir_functor_callback dir_functor_rm_dir_tree dir_functor_rmdir_bg

Public Types

enum  msg_t {
  msg_dir_before, msg_dir_after, msg_file, msg_special,
  msg_symlink
}

Public Member Functions

virtual ~dir_functor ()
 dir_functor ()
 dir_functor (const dir_functor &)
dir_functoroperator= (const dir_functor &)
virtual void operator() (msg_t msg, const nstring &path, const struct stat &st)=0

Detailed Description

The dir_functor class is used to represent an abstract interface for dir_walk to invoke.

Definition at line 29 of file functor.h.


Member Enumeration Documentation

Enumerator:
msg_dir_before 
msg_dir_after 
msg_file 
msg_special 
msg_symlink 

Definition at line 52 of file functor.h.


Constructor & Destructor Documentation

virtual dir_functor::~dir_functor ( ) [virtual]

The destructor.

The default constructor.

The copy constructor.


Member Function Documentation

virtual void dir_functor::operator() ( msg_t  msg,
const nstring path,
const struct stat &  st 
) [pure virtual]

The () operator is used to implement the function of the functor.

Parameters:
msgThe msg argument is used to say what s to be done.
pathThe path to the file is question.
stThe file information about the path.

Implemented in dir_functor_rm_dir_tree, dir_functor_callback, and dir_functor_rmdir_bg.

dir_functor& dir_functor::operator= ( const dir_functor )

The assignment operator.


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