SASC-NG
DVBSoftCAM

cReadDir Class Reference

#include <tools.h>

List of all members.

Public Member Functions

 cReadDir (const char *Directory)
 ~cReadDir ()
bool Ok (void)
struct dirent * Next (void)

Detailed Description

Definition at line 272 of file tools.h.


Constructor & Destructor Documentation

cReadDir::cReadDir ( const char *  Directory)

Definition at line 668 of file tools.cpp.

{
  directory = opendir(Directory);
}
cReadDir::~cReadDir ( )

Definition at line 673 of file tools.cpp.

{
  if (directory)
     closedir(directory);
}

Member Function Documentation

struct dirent * cReadDir::Next ( void  ) [read]

Definition at line 679 of file tools.cpp.

References NULL.

Referenced by DllsLoad(), cScDlls::Load(), RemoveEmptyDirectories(), and RemoveFileOrDir().

{
  return directory && readdir_r(directory, &u.d, &result) == 0 ? result : NULL;
}
bool cReadDir::Ok ( void  ) [inline]

Definition at line 283 of file tools.h.

References NULL.

Referenced by RemoveEmptyDirectories(), and RemoveFileOrDir().

{ return directory != NULL; }

Member Data Documentation

char cReadDir::b[offsetof(struct dirent, d_name)+NAME_MAX+1]

Definition at line 278 of file tools.h.

struct dirent cReadDir::d

Definition at line 277 of file tools.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines