#include <RecRemove.h>


Definition at line 20 of file RecRemove.h.
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 | |
| RecRemove::RecRemove | ( | const cmn_Path & | a_path | ) |
| void RecRemove::ProcessEntry | ( | const cmn_Path & | a_dir, | |
| const string & | a_name, | |||
| ivd_FileType_e | a_type | |||
| ) | [protected, virtual] |
Reimplemented from TreeWalk.
Definition at line 38 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.
00041 { 00042 00043 log_FUNC_m(ProcessEntry); 00044 00045 log_DBG_m(dbg_DETAIL,"a_dir=" << a_dir << " a_name=" << a_name << " a_type=" << a_type) 00046 00047 if (a_type == ift_DIR) { 00048 try { 00049 cmn_FileTest::DeleteDir(a_dir+a_name); 00050 AddDirSuccess(); 00051 } 00052 catch (ivd_SysError) { 00053 AddDirFailure(); 00054 } 00055 } 00056 00057 else { 00058 try { 00059 cmn_FileTest::DeleteFile(a_dir+a_name); 00060 AddFileSuccess(); 00061 } 00062 catch (ivd_SysError) { 00063 AddFileFailure(); 00064 } 00065 } 00066 }

RecRemove::log_CLASSID_m [private] |
1.5.6