|
ROLAND
0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
|
A [std::vector] for directory entries. More...
#include <directory.h>
Public Types | |
| enum | Options : char { None = 0, ParentDir = 1, OwnDir = 2, BothDir = 3 } |
Public Member Functions | |
| Directory () | |
| Standardconstructor. More... | |
| Directory (const FileName &path, Options options=Options::None, char letter=0) | |
| Constructor to scan immediately. More... | |
| ~Directory () ROLAND_DEFAULT void scan(const FileName &path | |
| Standarddestructor. More... | |
| void | sort () |
| *void | sort (bool casesensitive) |
| const FileName & | path () |
| Returns the current path of the Directory. More... | |
Public Attributes | |
| Options | options = Options::None |
| Options char | letter = 0) |
Private Attributes | |
| FileName | mDirName |
A [std::vector] for directory entries.
This is a vector to retrieve, store and sort FileName types. No slicing can occure by passing pointers of Directorys, because no additional variables are added at all.
| enum Options : char |
|
inline |
Standardconstructor.
References letter, options, path(), ROLAND_DEFAULT, and ~Directory().
Constructor to scan immediately.
References b, FileName::base(), closedir(), letter, mDirName, NAME_MAX, opendir(), options, path(), and readdir().
| ~Directory | ( | ) | const |
Standarddestructor.
Scans the Directory specified by
| path | with |
| options | and first letter |
Referenced by Directory().
|
inline |
Returns the current path of the Directory.
References mDirName.
Referenced by Directory(), and FileList::onKeyboard().
| void sort | ( | ) |
Sorts this vector by filename. If you dont need to change the default behaviour (case insensitive), use this.
Referenced by FileList::FileList().
| void sort | ( | bool | casesensitive | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Is NOT REALLY THREADSAFE because of using a static function in FileName.
| casesensitive | = Sets whether sorting is case sensitive or not. |
References FileName::setCaseSensitiveCompare().
| Options char letter = 0) |
Referenced by Directory().
|
private |
Referenced by Directory(), and path().
| Options options = Options::None |
Referenced by Directory().
1.8.11