All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HSEP::DirTool Class Reference

Offers tools to work with directories in the file systems provided by the operating system. More...

#include <DirTool.h>

Static Public Member Functions

static ErrorCode traverse (StringArray &pResultRef, string &pPathRef, string &pHeadRef)
 Reads a directory content and if the file names start with pHead, copy them in pResult.
 
static ErrorCode traverse (StringArray &pResultRef, string &pPathRef, const char *pHeadPtr)
 Reads a directory content and if the file names start with pHead, copy them in pResult.
 

Detailed Description

Offers tools to work with directories in the file systems provided by the operating system.

Definition at line 35 of file DirTool.h.

Member Function Documentation

ErrorCode HSEP::DirTool::traverse ( StringArray pResultRef,
string &  pPathRef,
string &  pHeadRef 
)
static

Reads a directory content and if the file names start with pHead, copy them in pResult.

Parameters
pResultRefList of matching files
pPathRefDirectory that is being analyzed.
pHeadRefString to compare with the beginning of file names.
Returns
true if the directory was found.
false if the directory was wrong or had no read permissions.

< too many files open

< filesystem can't support more open files

< not enough memory available

Definition at line 31 of file DirTool.cpp.

References HSEP::EC::AccessError, HSEP::EC::IncompleteProcessing, HSEP::EC::ManyOpenFiles, HSEP::EC::NotCatalogedError, HSEP::EC::NotEnoughMemory, HSEP::EC::OK, and HSEP::Array< T >::push().

Referenced by HSEP::BaseDriverSet::load(), and traverse().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ErrorCode HSEP::DirTool::traverse ( StringArray pResultRef,
string &  pPathRef,
const char *  pHeadPtr 
)
static

Reads a directory content and if the file names start with pHead, copy them in pResult.

Parameters
pResultRefList of matching files
pPathRefDirectory that is being analyzed.
pHeadPtrString to compare with the beginning of file names.
Returns
true if the directory was found.
false if the directory was wrong or had no read permissions.

Definition at line 73 of file DirTool.cpp.

References traverse().

+ Here is the call graph for this function:


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