15 #ifndef PANDASEARCHPATH_H
16 #define PANDASEARCHPATH_H
18 #include "dtoolbase.h"
38 void operator = (
const Results ©);
42 int get_num_files()
const;
43 const Filename &get_file(
int n)
const;
45 INLINE
Filename operator [] (
int n)
const;
46 INLINE
int size()
const;
48 void output(ostream &out)
const;
49 void write(ostream &out,
int indent_level = 0)
const;
60 DSearchPath(
const string &path,
const string &separator =
string());
67 void append_directory(
const Filename &directory);
68 void prepend_directory(
const Filename &directory);
69 void append_path(
const string &path,
70 const string &separator =
string());
74 bool is_empty()
const;
75 int get_num_directories()
const;
76 const Filename &get_directory(
int n)
const;
77 MAKE_SEQ(get_directories, get_num_directories, get_directory);
84 search_path(
const Filename &filename,
const string &path,
85 const string &separator =
string());
87 void output(ostream &out,
const string &separator =
string())
const;
88 void write(ostream &out,
int indent_level = 0)
const;
95 INLINE ostream &operator << (ostream &out,
const DSearchPath &sp) {
100 #include "dSearchPath.I"
The name of a file, such as a texture file or an Egg file.
This class stores a list of directories that can be searched, in order, to locate a particular file...