Provides functionality for easy file and directory handling. More...
Classes | |
| class | ogdf::GraphIO |
| Utility class providing graph I/O in various exchange formats. More... | |
Enumerations | |
| enum | ogdf::FileType { ogdf::FileType::Entry, ogdf::FileType::File, ogdf::FileType::Directory } |
| The type of an entry in a directory. More... | |
Functions | |
| bool | ogdf::changeDir (const char *dirName) |
Changes current directory to dirName; returns true if successful. More... | |
| void | ogdf::getEntries (const char *dirName, List< string > &entries, const char *pattern="*") |
Returns in entries the list of all entries contained in directory dirName. More... | |
| void | ogdf::getEntries (const char *dirName, FileType t, List< string > &entries, const char *pattern="*") |
Returns in entries the list of all entries of type t contained in directory dirName. More... | |
| void | ogdf::getEntriesAppend (const char *dirName, List< string > &entries, const char *pattern="*") |
Appends to entries the list of all entries contained in directory dirName. More... | |
| void | ogdf::getEntriesAppend (const char *dirName, FileType t, List< string > &entries, const char *pattern="*") |
Appends to entries the list of all entries of type t contained in directory dirName. More... | |
| void | ogdf::getFiles (const char *dirName, List< string > &files, const char *pattern="*") |
Returns in files the list of files in directory dirName. More... | |
| void | ogdf::getFilesAppend (const char *dirName, List< string > &files, const char *pattern="*") |
Appends to files the list of files in directory dirName. More... | |
| void | ogdf::getSubdirs (const char *dirName, List< string > &subdirs, const char *pattern="*") |
Returns in subdirs the list of directories contained in directory dirName. More... | |
| void | ogdf::getSubdirsAppend (const char *dirName, List< string > &subdirs, const char *pattern="*") |
Appends to subdirs the list of directories contained in directory dirName. More... | |
| bool | ogdf::isDirectory (const char *fileName) |
Returns true iff fileName is a directory. More... | |
| bool | ogdf::isFile (const char *fileName) |
Returns true iff fileName is a regular file (not a directory). More... | |
Provides functionality for easy file and directory handling.
|
strong |
The type of an entry in a directory.
| Enumerator | |
|---|---|
| Entry | file or directory |
| File | file |
| Directory | directory |
Definition at line 44 of file filesystem.h.
| bool ogdf::changeDir | ( | const char * | dirName | ) |
Changes current directory to dirName; returns true if successful.
| void ogdf::getEntries | ( | const char * | dirName, |
| List< string > & | entries, | ||
| const char * | pattern = "*" |
||
| ) |
Returns in entries the list of all entries contained in directory dirName.
Entries may be files or directories. The optional argument pattern can be used to filter files.
dirName is a directory| void ogdf::getEntries | ( | const char * | dirName, |
| FileType | t, | ||
| List< string > & | entries, | ||
| const char * | pattern = "*" |
||
| ) |
Returns in entries the list of all entries of type t contained in directory dirName.
The optional argument pattern can be used to filter files.
dirName is a directory| void ogdf::getEntriesAppend | ( | const char * | dirName, |
| List< string > & | entries, | ||
| const char * | pattern = "*" |
||
| ) |
Appends to entries the list of all entries contained in directory dirName.
Entries may be files or directories. The optional argument pattern can be used to filter files.
dirName is a directory| void ogdf::getEntriesAppend | ( | const char * | dirName, |
| FileType | t, | ||
| List< string > & | entries, | ||
| const char * | pattern = "*" |
||
| ) |
Appends to entries the list of all entries of type t contained in directory dirName.
The optional argument pattern can be used to filter files.
dirName is a directory| void ogdf::getFiles | ( | const char * | dirName, |
| List< string > & | files, | ||
| const char * | pattern = "*" |
||
| ) |
Returns in files the list of files in directory dirName.
The optional argument pattern can be used to filter files.
dirName is a directory| void ogdf::getFilesAppend | ( | const char * | dirName, |
| List< string > & | files, | ||
| const char * | pattern = "*" |
||
| ) |
Appends to files the list of files in directory dirName.
The optional argument pattern can be used to filter files.
dirName is a directory| void ogdf::getSubdirs | ( | const char * | dirName, |
| List< string > & | subdirs, | ||
| const char * | pattern = "*" |
||
| ) |
Returns in subdirs the list of directories contained in directory dirName.
The optional argument pattern can be used to filter files.
| void ogdf::getSubdirsAppend | ( | const char * | dirName, |
| List< string > & | subdirs, | ||
| const char * | pattern = "*" |
||
| ) |
Appends to subdirs the list of directories contained in directory dirName.
The optional argument pattern can be used to filter files.
dirName is a directory| bool ogdf::isDirectory | ( | const char * | fileName | ) |
Returns true iff fileName is a directory.
| bool ogdf::isFile | ( | const char * | fileName | ) |
Returns true iff fileName is a regular file (not a directory).