dir_functor_rm_dir_tree Class Reference

#include <rm_dir_tree.h>

Inheritance diagram for dir_functor_rm_dir_tree:

dir_functor

Public Member Functions

virtual ~dir_functor_rm_dir_tree ()
 dir_functor_rm_dir_tree ()
void operator() (msg_t msg, const nstring &path, const struct stat &st)

Private Member Functions

 dir_functor_rm_dir_tree (const dir_functor_rm_dir_tree &)
dir_functor_rm_dir_treeoperator= (const dir_functor_rm_dir_tree &)

Detailed Description

The dir_functor_rm_dir_tree class is used to represent an object which is able to remove directoryt trees when called by the dir_walk function.

This class's () operator is the function that actually deletes things out of the directory tree as it is walked. Note that the directory should be deleted last, after all contents have been nuked.

Some sleight-of-hand is involved here, as this function pushes extra stuff onto the lists of things to be deleted, rather than really doing it itself.

Definition at line 39 of file rm_dir_tree.h.


Constructor & Destructor Documentation

virtual dir_functor_rm_dir_tree::~dir_functor_rm_dir_tree (  )  [virtual]

The destructor.

dir_functor_rm_dir_tree::dir_functor_rm_dir_tree (  ) 

The default constructor.

dir_functor_rm_dir_tree::dir_functor_rm_dir_tree ( const dir_functor_rm_dir_tree  )  [private]

The copy constructor. Do not use.


Member Function Documentation

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

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

Parameters:
msg The msg argument is used to say what s to be done.
path The path to the file is question.
st The file information about the path.

Implements dir_functor.

dir_functor_rm_dir_tree& dir_functor_rm_dir_tree::operator= ( const dir_functor_rm_dir_tree  )  [private]

The assignment operator. Do not use.


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

Generated on Wed Mar 12 23:37:39 2008 for Aegis by  doxygen 1.5.5