23 #ifndef __ccxx_SearchPath_hxx 24 #define __ccxx_SearchPath_hxx 71 void append(
const String& dir);
79 void prepend(
const String& dir);
85 void remove(
const String& dir);
97 bool contains(
const String& dir)
const;
112 {
return(_path.empty()); }
119 {
return(length()); }
123 {
return(_path.size()); }
130 String getDirectory(
int index)
const;
138 {
return(getDirectory(index)); }
148 void fromString(
const String& path);
153 {
return(getPath()); }
169 #endif // __ccxx_SearchPath_hxx size_t length() const
Get the number of directories in the search path.
Definition: SearchPath.h++:122
A String vector.
Definition: String.h++:1159
A file search path.
Definition: SearchPath.h++:45
size_t getDirectoryCount() const
Get the number of directories in the search path.
Definition: SearchPath.h++:118
static const SearchPath empty
An empty SearchPath.
Definition: SearchPath.h++:156
static const char * separator
The host platform's path separator.
Definition: SearchPath.h++:159
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
A class representing a filename.
Definition: FileName.h++:55
String operator[](int index) const
Get the directory at the specified index in the search path.
Definition: SearchPath.h++:137
String toString() const
Get a String representation of the SearchPath.
Definition: SearchPath.h++:152
Definition: AllocationMap.c++:25
bool isEmpty() const
Test if the path is empty.
Definition: SearchPath.h++:111