Go to the documentation of this file.
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;
Regex itsExpression
Regular expression if given, with this variable it is possible to compare files with regular expressi...
Traverse the contents of a directory
void reset()
Reposition the directory stream on the first entry.
Directory itsDirectory
class directory
dirent * itsDirectoryEntry
This structure is used for information of the directory.
Bool pastEnd() const
Checks if the iterator is past the end.
Get information about, and manipulate directories
void init()
Initialize the iterator.
this file contains all the compiler specific defines
DirectoryIterator()
Construct the iterator for the working directory.
Class to get file information and a base for other file classes.
DirectoryIterator & operator=(const DirectoryIterator &that)
Assignment (copy semantics).
File file() const
Returns a File object for the file at the current position.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
Regular expression class.
Bool itsEnd
Boolean to check if the directory stream has past the end.
void operator++()
Position on the next matching entry in the directory.
DIR * itsDirectoryDescriptor
This variable is used for seeking in the directory.
String name() const
Returns the file name at the current position.