#include <cppdir.h>
Public Types | |
typedef std::list< File > | file_list |
typedef file_list::iterator | file_list_it |
Public Methods | |
Directory (std::string pname) | |
Directory (File file) | |
bool | is_valid () const |
bool | operator! () const |
file_list | get_files () |
Private Methods | |
bool | open (File file) |
opens the directory. More... | |
bool | open (std::string fname) |
opens the directory. More... | |
void | close () |
closes the directory. More... | |
Private Attributes | |
std::string | name |
directory name. More... | |
bool | valid |
true if the directory is valid. More... | |
file_list | files |
list of file withen the directory. More... | |
bool | is_open |
true if the directory is open. More... | |
DIR * | dir |
directory HANDLE. More... |
|
|
|
|
|
|
|
|
|
closes the directory.
|
|
returns the list of files that the directory contains |
|
|
|
opens the directory.
|
|
opens the directory.
|
|
|
|
directory HANDLE.
|
|
list of file withen the directory.
|
|
true if the directory is open.
|
|
directory name.
|
|
true if the directory is valid.
|