RecRemove Class Reference

#include <RecRemove.h>

Inheritance diagram for RecRemove:

Inheritance graph
[legend]
Collaboration diagram for RecRemove:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

Constructor & Destructor Documentation

RecRemove::RecRemove ( const cmn_Path a_path  ) 

Definition at line 33 of file RecRemove.cpp.

00034     : TreeWalk(a_path) {
00035 
00036 }


Member Function Documentation

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 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from TreeWalk.

Definition at line 29 of file RecRemove.h.


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

Generated on Mon Feb 27 19:46:00 2012 for OPENARCHIVE by  doxygen 1.5.6