14 #ifndef CONFIGVARIABLESEARCHPATH_H
15 #define CONFIGVARIABLESEARCHPATH_H
39 const std::string &description = std::string(),
43 const std::string &description,
46 const std::string &default_value,
47 const std::string &description,
53 INLINE
const DSearchPath &get_default_value()
const;
54 MAKE_PROPERTY(value, get_value);
55 MAKE_PROPERTY(default_value, get_default_value);
60 INLINE
void append_directory(
const Filename &directory);
61 INLINE
void prepend_directory(
const Filename &directory);
62 INLINE
void append_path(
const std::string &path,
63 const std::string &separator = std::string());
67 INLINE
bool is_empty()
const;
68 INLINE
size_t get_num_directories()
const;
69 INLINE
Filename get_directory(
size_t n)
const;
70 MAKE_SEQ(get_directories, get_num_directories, get_directory);
71 MAKE_SEQ_PROPERTY(directories, get_num_directories, get_directory);
74 INLINE
size_t find_all_files(
const Filename &filename,
78 INLINE
void output(std::ostream &out)
const;
79 INLINE
void write(std::ostream &out)
const;
82 void reload_search_path();
88 AtomicAdjust::Integer _local_modified;
This class is the base class for both ConfigVariableList and ConfigVariable (and hence for all of the...
bool clear_local_value()
Removes the local value defined for this variable, and allows its value to be once again retrieved fr...
This is similar to a ConfigVariableList, but it returns its list as a DSearchPath,...
This class stores a list of directories that can be searched, in order, to locate a particular file.
The name of a file, such as a texture file or an Egg file.
A fake mutex implementation for single-threaded applications that don't need any synchronization cont...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.