Retrieve file names in a directory.
More...
#include <edir.h>
Retrieve file names in a directory.
◆ EDirectory()
EDirectory::EDirectory |
( |
| ) |
|
◆ ~EDirectory()
EDirectory::~EDirectory |
( |
| ) |
|
◆ getCurrentDirectory()
Void EDirectory::getCurrentDirectory |
( |
EString & |
dir | ) |
|
|
static |
Returns the current working directory.
- Parameters
-
dir | A reference to an EString variable where the directory name will be stored. |
- Exceptions
-
EDirectoryError_CurrentDirectory | |
◆ getFirstEntry()
cpStr EDirectory::getFirstEntry |
( |
cpStr |
pDirectory, |
|
|
cpStr |
pFileMask |
|
) |
| |
Gets the first entry from the directory.
- Parameters
-
pDirectory | The directory name to process. |
pFileMask | The file pattern file names must match to be returned. |
- Returns
- a pointer to the file name
- Exceptions
-
EDirectoryError_GetFirstEntry | |
Returns the first file name from pDirectory that matches pFileMask. pFileMask can contain any alphanumeric character as well as wildcard characters. The supported wildcard characters are '*' which corresponds to any number of any character and '?' which corresonds to a single character.
◆ getNextEntry()
cpStr EDirectory::getNextEntry |
( |
| ) |
|
Gets the next entry from the directory.
- Returns
- a pointer to the file name
- Exceptions
-
EDirectoryError_GetNextEntry | |
Reads the next entry from the directory that matches the previously supplied file name mask. This function will throw EDirectoryError_GetNextEntry if it is called before calling getFirstEntry().
The documentation for this class was generated from the following files:
- /home/vagrant/share/code/epctools/include/epc/edir.h
- /home/vagrant/share/code/epctools/src/edir.cpp