Library: Foundation
Package: Filesystem
Header: Poco/DirectoryIterator.h
The DirectoryIterator class is used to enumerate all files in a directory.
DirectoryIterator has some limitations:
Member Functions: name, operator !=, operator *, operator ++, operator =, operator ==, operator->, path
Creates the end iterator.
DirectoryIterator(
const std::string & path
);
Creates a directory iterator for the given path.
DirectoryIterator(
const DirectoryIterator & iterator
);
Creates a directory iterator for the given path.
DirectoryIterator(
const File & file
);
Creates a directory iterator for the given file.
DirectoryIterator(
const Path & path
);
Creates a directory iterator for the given path.
Destroys the DirectoryIterator.
const std::string & name() const;
Returns the current filename.
bool operator != (
const DirectoryIterator & iterator
) const;
const File & operator * () const;
File & operator * ();
DirectoryIterator & operator ++ ();
DirectoryIterator operator ++ (
int
);
Deprecated. This function is deprecated and should no longer be used.
Please use the prefix increment operator instead.
DirectoryIterator & operator = (
const DirectoryIterator & it
);
DirectoryIterator & operator = (
const File & file
);
DirectoryIterator & operator = (
const Path & path
);
DirectoryIterator & operator = (
const std::string & path
);
bool operator == (
const DirectoryIterator & iterator
) const;
const File * operator-> () const;
File * operator-> ();
const Path & path() const;
Returns the current path.