28 #ifndef CASA_DIRECTORYITERATOR_H
29 #define CASA_DIRECTORYITERATOR_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/OS/File.h>
34 #include <casacore/casa/OS/Directory.h>
35 #include <casacore/casa/Utilities/Regex.h>
170 #if defined(AIPS_CRAY_PGI)
173 dirent** itsNameList;
DirectoryIterator & operator=(const DirectoryIterator &that)
Assignment (copy semantics).
String name() const
Returns the file name at the current position.
void init()
Initialize the iterator.
DIR * itsDirectoryDescriptor
This variable is used for seeking in the directory.
DirectoryIterator()
Construct the iterator for the working directory.
DirectoryIterator(const Directory &dir)
Construct the iterator for the given directory.
Bool itsEnd
Boolean to check if the directory stream has past the end.
void operator++()
Position on the next matching entry in the directory.
void reset()
Reposition the directory stream on the first entry.
Bool pastEnd() const
Checks if the iterator is past the end.
DirectoryIterator(const Directory &dir, const Regex ®Expression)
Construct the iterator for the given directory.
File file() const
Returns a File object for the file at the current position.
dirent * itsDirectoryEntry
This structure is used for information of the directory.
DirectoryIterator(const DirectoryIterator &that)
Copy constructor (copy semantics).
Directory itsDirectory
class directory
Regex itsExpression
Regular expression if given, with this variable it is possible to compare files with regular expressi...
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.