Public Member Functions | Protected Member Functions | Private Attributes

RecOpen Class Reference

#include <RecOpen.h>

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

List of all members.

Public Member Functions

 RecOpen (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 33 of file RecOpen.h.


Constructor & Destructor Documentation

RecOpen::RecOpen ( const cmn_Path a_path  ) 

Definition at line 47 of file RecOpen.cpp.

    : TreeWalk(a_path) {

}


Member Function Documentation

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

Definition at line 52 of file RecOpen.cpp.

References FailureCount::AddDirFailure(), FailureCount::AddDirSuccess(), FailureCount::AddFileFailure(), FailureCount::AddFileSuccess(), cmn_File::CloseF(), dbg_DETAIL, fom_OPEN_EXISTING, ift_DIR, log_DBG_m, log_FUNC_m, and cmn_File::OpenF().

                           {

    log_FUNC_m(ProcessEntry);

    log_DBG_m(dbg_DETAIL,"a_dir=" << a_dir << " a_name=" << a_name << " a_type " << a_type)

    cmn_FileTest f(a_dir + a_name);
    
    try {
        f.OpenF(fom_OPEN_EXISTING);
        f.CloseF();
        
        if (a_type == ift_DIR) {
            AddDirSuccess();
        } else {
            AddFileSuccess();
        }
    }

    catch (ivd_SysError &e) {
        log_DBG_m(dbg_DETAIL, "SysError: " << e);
        
        if (a_type == ift_DIR) {
            AddDirFailure();
        } else {
            AddFileFailure();
        }
    }
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 42 of file RecOpen.h.


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