class Poco::SortedDirectoryIterator
Overview
The SortedDirectoryIterator class is similar to DirectoryIterator class, but places directories before files and sorts content alphabetically. Moreā¦
#include <SortedDirectoryIterator.h> class SortedDirectoryIterator: public Poco::DirectoryIterator { public: // construction SortedDirectoryIterator(); SortedDirectoryIterator(const std::string& path); SortedDirectoryIterator(const DirectoryIterator& iterator); SortedDirectoryIterator(const File& file); SortedDirectoryIterator(const Path& path); // methods virtual SortedDirectoryIterator& operator++(); };
Inherited Members
public: // methods const std::string& name() const; const Path& path() const; DirectoryIterator& operator=(const DirectoryIterator& it); DirectoryIterator& operator=(const File& file); DirectoryIterator& operator=(const Path& path); DirectoryIterator& operator=(const std::string& path); virtual DirectoryIterator& operator++(); DirectoryIterator operator++(int); const File& operator*() const; File& operator*(); const File* operator->() const; File* operator->(); bool operator==(const DirectoryIterator& iterator) const; bool operator!=(const DirectoryIterator& iterator) const; protected: // fields Path _path; File _file;
Detailed Documentation
The SortedDirectoryIterator class is similar to DirectoryIterator class, but places directories before files and sorts content alphabetically.
Construction
SortedDirectoryIterator()
Creates the end iterator.
SortedDirectoryIterator(const std::string& path)
Creates a directory iterator for the given path.
SortedDirectoryIterator(const DirectoryIterator& iterator)
Creates a directory iterator for the given path.
SortedDirectoryIterator(const File& file)
Creates a directory iterator for the given file.
SortedDirectoryIterator(const Path& path)
Creates a directory iterator for the given path.