# DSearchPath

from pandac.PandaModules import DSearchPath

Class : DSearchPath
Description : This class stores a list of directories that can be searched, in order, to locate a particular file. It is normally constructed by passing it a traditional searchpath-style string, e.g. a list of directory names delimited by spaces or colons, but it can also be built up explicitly.

## Inheritance:

DSearchPath:

## Methods of DSearchPath:

DSearchPath (Constructor)
appendDirectory
appendPath
clear
findAllFiles
findFile
getDirectory
getNumDirectories
isEmpty
operator =
output
prependDirectory
prependPath
searchPath
write

DSearchPath DSearchPath::DSearchPath(void); Undocumented function.

appendDirectory void DSearchPath::append_directory(Filename const &directory); Undocumented function.

appendPath void DSearchPath::append_path(string const &path, string const &separator = ((string()))); Undocumented function.

clear void DSearchPath::clear(void); Undocumented function.

findAllFiles int DSearchPath::find_all_files(Filename const &filename, DSearchPath::Results &results) const; Undocumented function.

findFile Filename DSearchPath::find_file(Filename const &filename) const; Undocumented function.

getDirectory Filename const &DSearchPath::get_directory(int n) const; Undocumented function.

getNumDirectories int DSearchPath::get_num_directories(void) const; Undocumented function.

isEmpty bool DSearchPath::is_empty(void) const; Undocumented function.

operator = void DSearchPath::operator =(DSearchPath const &copy); Undocumented function.

output void DSearchPath::output(ostream &out, string const &separator = ((string()))) const; Undocumented function.

prependDirectory void DSearchPath::prepend_directory(Filename const &directory); Undocumented function.

prependPath void DSearchPath::prepend_path(DSearchPath const &path); Undocumented function.

searchPath static Filename DSearchPath::search_path(Filename const &filename, string const &path, string const &separator = ((string()))); Description: A quick-and-easy way to search a searchpath for a file when you don't feel like building or keeping around a DSearchPath object. This simply constructs a temporary DSearchPath based on the indicated path string, and searches that.

write void DSearchPath::write(ostream &out, int indent_level = (0)) const; Undocumented function.