Public Member Functions | Private Member Functions | Private Attributes

smart_dir Class Reference
[Utility Library]

smart directory handle. More...

#include <file.h>

List of all members.

Public Member Functions

 smart_dir (void) throw ()
 ~smart_dir (void) throw ()
void clear (void) throw ()
 operator bool (void) const throw ()
void open (const char *path)
void close (void) throw ()
bool getNextEntry (struct dirent &entry)

Private Member Functions

 smart_dir (const smart_dir &)

Private Attributes

DIR * m_dir

Detailed Description

smart directory handle.

You probably don't want to use this! Use the nstream interfaces instead. This is for low-level filesystem access.

Why no constructor that takes a path? Because opening a directory can fail! Always use the open() method, and always check the result.

Definition at line 210 of file file.h.

Constructor & Destructor Documentation

smart_dir::smart_dir ( void   )  throw () [inline]

Definition at line 213 of file file.h.

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