RecOpen Class Reference

#include <RecOpen.h>

Inheritance diagram for RecOpen:

Inheritance graph
[legend]
Collaboration diagram for RecOpen:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 19 of file RecOpen.h.


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

Constructor & Destructor Documentation

RecOpen::RecOpen ( const cmn_Path a_path  ) 

Definition at line 33 of file RecOpen.cpp.

00034     : TreeWalk(a_path) {
00035 
00036 }


Member Function Documentation

void RecOpen::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 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().

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     cmn_FileTest f(a_dir + a_name);
00048     
00049     try {
00050         f.OpenF(fom_OPEN_EXISTING);
00051         f.CloseF();
00052         
00053         if (a_type == ift_DIR) {
00054             AddDirSuccess();
00055         } else {
00056             AddFileSuccess();
00057         }
00058     }
00059 
00060     catch (ivd_SysError &e) {
00061         log_DBG_m(dbg_DETAIL, "SysError: " << e);
00062         
00063         if (a_type == ift_DIR) {
00064             AddDirFailure();
00065         } else {
00066             AddFileFailure();
00067         }
00068     }
00069 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from TreeWalk.

Definition at line 28 of file RecOpen.h.


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

Generated on Mon Feb 27 19:45:58 2012 for OPENARCHIVE by  doxygen 1.5.6