Aegis  4.25.D505
Public Member Functions | Private Member Functions
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

The destructor.

The default constructor.

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:
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.

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: