# 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:

appendDirectory
appendPath
clear
findAllFiles
findFile
getDirectory
getNumDirectories
isEmpty
operator =
output
prependDirectory
prependPath
searchPath
write

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()))); Filename: dSearchPath.I Created by: drose (01Jul00) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . 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.