MiKTeX 23.10-next
A scalable TeX distribution
|
An instances can be used to read entries of a file system directory. More...
#include <miktex/Core/DirectoryLister.h>
Public Types | |
enum class | Options : int { None , DirectoriesOnly = 1 , FilesOnly = 2 , IncludeDotAndDotDot = 4 } |
Read options. More... | |
Public Member Functions | |
virtual void | Close ()=0 |
Dispose resources associated with this object. More... | |
virtual bool | GetNext (DirectoryEntry &direntry)=0 |
virtual bool | GetNext (DirectoryEntry2 &direntry2)=0 |
Static Public Member Functions | |
static std::unique_ptr< DirectoryLister > | Open (const MiKTeX::Util::PathName &directory) |
static std::unique_ptr< DirectoryLister > | Open (const MiKTeX::Util::PathName &directory, const char *pattern) |
static std::unique_ptr< DirectoryLister > | Open (const MiKTeX::Util::PathName &directory, const char *pattern, int options) |
An instances can be used to read entries of a file system directory.
|
strong |
|
pure virtual |
Dispose resources associated with this object.
|
pure virtual |
Gets the next entry.
[out] | The | next entry. |
true
, if the next entry could be retrieved. Returns false
, if there are no more entries.
|
pure virtual |
Gets the next entry.
[out] | The | next entry. |
true
, if the next entry could be retrieved. Returns false
, if there are no more entries.
|
static |
Creates a new DirectoryLister
instance.
directory | File system path to the directory. |
DirectoryLister
interface.
|
static |
Creates a new DirectoryLister
instance.
directory | File system path to the directory. |
pattern | The glob pattern to be used as the filter. |
DirectoryLister
interface.
|
static |
Creates a new DirectoryLister
instance.
directory | File system path to the directory. |
pattern | The glob pattern to be used as the filter. |
options | Read options. |
DirectoryLister
interface.