HDK
|
#include <File.h>
Public Types | |
using | Iterator = FilePathVec::iterator |
using | ConstIterator = FilePathVec::const_iterator |
Public Member Functions | |
FileSearchPath ()=default | |
FileSearchPath (const string &searchPath, const string &sep=PATH_LIST_SEPARATOR) | |
string | asString (const string &sep=PATH_LIST_SEPARATOR) const |
Convert this sequence to a string using the given separator. More... | |
void | append (const FilePath &path) |
Append the given path to the sequence. More... | |
void | append (const FileSearchPath &searchPath) |
Append the given search path to the sequence. More... | |
void | prepend (const FilePath &path) |
Prepend the given path to the sequence. More... | |
void | clear () |
Clear all paths from the sequence. More... | |
size_t | size () const |
Return the number of paths in the sequence. More... | |
bool | isEmpty () const |
Return true if the search path is empty. More... | |
FilePath & | operator[] (size_t index) |
Return the path at the given index. More... | |
const FilePath & | operator[] (size_t index) const |
Return the const path at the given index. More... | |
FilePath | find (const FilePath &filename) const |
Iterators | |
Iterator | begin () |
ConstIterator | begin () const |
Iterator | end () |
ConstIterator | end () const |
A sequence of file paths, which may be queried to find the first instance of a given filename on the file system.
using FileSearchPath::ConstIterator = FilePathVec::const_iterator |
using FileSearchPath::Iterator = FilePathVec::iterator |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |