#include <directory.h>
Public Member Functions | |
Directory (const string &path, bool subdir=false, bool owndir=false) | |
void | scan (const string &path, bool subdir=false, bool owndir=false) |
void | sort () |
void | sort (bool casesensitive) |
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.
void Directory::scan | ( | const string & | path, | |
bool | subdir = false , |
|||
bool | owndir = false | |||
) |
void Directory::sort | ( | ) |
Sorts this vector by filename. If you dont need to change the default behaviour (case insensitive), use this.
void Directory::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. |