Public Member Functions | Protected Member Functions | Private Attributes

RecRemove Class Reference

#include <RecRemove.h>

Inheritance diagram for RecRemove:
Inheritance graph
[legend]
Collaboration diagram for RecRemove:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RecRemove (const cmn_Path &a_path)

Protected Member Functions

virtual void ProcessEntry (const cmn_Path &a_dir, const string &a_name, ivd_FileType_e a_type)

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 34 of file RecRemove.h.


Constructor & Destructor Documentation

RecRemove::RecRemove ( const cmn_Path a_path  ) 

Definition at line 47 of file RecRemove.cpp.

    : TreeWalk(a_path) {

}


Member Function Documentation

void RecRemove::ProcessEntry ( const cmn_Path a_dir,
const string &  a_name,
ivd_FileType_e  a_type 
) [protected, virtual]

Definition at line 52 of file RecRemove.cpp.

References FailureCount::AddDirFailure(), FailureCount::AddDirSuccess(), FailureCount::AddFileFailure(), FailureCount::AddFileSuccess(), dbg_DETAIL, cmn_File::DeleteDir(), cmn_File::DeleteFile(), ift_DIR, log_DBG_m, and log_FUNC_m.

                           {

    log_FUNC_m(ProcessEntry);
    
    log_DBG_m(dbg_DETAIL,"a_dir=" << a_dir << " a_name=" << a_name << " a_type=" << a_type)
       
    if (a_type == ift_DIR) {
        try {
            cmn_FileTest::DeleteDir(a_dir+a_name);
            AddDirSuccess();
        }
        catch (ivd_SysError) {
            AddDirFailure();
        }
    }

    else {
        try {
            cmn_FileTest::DeleteFile(a_dir+a_name);
            AddFileSuccess();
        }
        catch (ivd_SysError) {
            AddFileFailure();
        }
    }
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 43 of file RecRemove.h.


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