|
OpenRaider
0.1.4-dev
Open Source Tomb Raider Game Engine implementation
|
#include <Folder.h>
Public Member Functions | |
| Folder (std::string folder, bool listDotFiles=false) | |
| std::string & | getName () |
| std::string & | getPath () |
| unsigned long | fileCount () |
| File & | getFile (unsigned long i) |
| unsigned long | folderCount () |
| Folder & | getFolder (unsigned long i) |
| Folder | getParent () |
| void | executeRemoveFiles (std::function< bool(File &f)> func) |
| void | findFilesEndingWith (std::vector< File > &found, std::string end, bool casesensitive=false) |
| unsigned long | countRecursiveFiles () |
| void | executeRemoveRecursiveFiles (std::function< bool(File &f)> func) |
| std::string | getRecursiveFileName (unsigned long i) |
| File & | getRecursiveFile (unsigned long i) |
| void | findRecursiveFilesEndingWith (std::vector< File > &found, std::string end, bool casesensitive=false) |
Private Member Functions | |
| void | createFolderItems () |
| int | readFolderItems (std::vector< std::string > &foundFiles, std::vector< std::string > &foundFolders) |
Private Attributes | |
| std::string | name |
| Only last part of path. More... | |
| std::string | path |
| Full path, with name and '/' at end. More... | |
| bool | hasListed |
| bool | listDot |
| std::vector< File > | files |
| std::vector< Folder > | folders |
| Folder::Folder | ( | std::string | folder, |
| bool | listDotFiles = false |
||
| ) |
Definition at line 35 of file Folder.cpp.
| unsigned long Folder::fileCount | ( | ) |
Definition at line 80 of file Folder.cpp.
| File & Folder::getFile | ( | unsigned long | i | ) |
Definition at line 85 of file Folder.cpp.
| unsigned long Folder::folderCount | ( | ) |
Definition at line 91 of file Folder.cpp.
| Folder & Folder::getFolder | ( | unsigned long | i | ) |
Definition at line 96 of file Folder.cpp.
| Folder Folder::getParent | ( | ) |
Definition at line 102 of file Folder.cpp.
| void Folder::executeRemoveFiles | ( | std::function< bool(File &f)> | func | ) |
Definition at line 110 of file Folder.cpp.
| void Folder::findFilesEndingWith | ( | std::vector< File > & | found, |
| std::string | end, | ||
| bool | casesensitive = false |
||
| ) |
Definition at line 223 of file Folder.cpp.
| unsigned long Folder::countRecursiveFiles | ( | ) |
Definition at line 12 of file FolderRecursive.cpp.
| void Folder::executeRemoveRecursiveFiles | ( | std::function< bool(File &f)> | func | ) |
Definition at line 20 of file FolderRecursive.cpp.
| std::string Folder::getRecursiveFileName | ( | unsigned long | i | ) |
Definition at line 27 of file FolderRecursive.cpp.
| File & Folder::getRecursiveFile | ( | unsigned long | i | ) |
Definition at line 47 of file FolderRecursive.cpp.
| void Folder::findRecursiveFilesEndingWith | ( | std::vector< File > & | found, |
| std::string | end, | ||
| bool | casesensitive = false |
||
| ) |
Definition at line 66 of file FolderRecursive.cpp.
|
private |
Definition at line 119 of file Folder.cpp.
|
private |
|
private |
1.8.9.1