20 return _loaded_implicit;
31 if (!_loaded_implicit) {
56 return _prc_patterns.size();
65 nassertr(n < _prc_patterns.size(), std::string());
66 return _prc_patterns[n].get_pattern();
76 return _prc_encrypted_patterns.size();
85 nassertr(n < _prc_patterns.size(), std::string());
86 return _prc_encrypted_patterns[n].get_pattern();
96 return _prc_executable_patterns.size();
105 nassertr(n < _prc_patterns.size(), std::string());
106 return _prc_executable_patterns[n].get_pattern();
116 return _implicit_pages.size();
126 nassertr(n < _implicit_pages.size(),
nullptr);
127 return _implicit_pages[n];
137 return _explicit_pages.size();
147 nassertr(n < _explicit_pages.size(),
nullptr);
148 return _explicit_pages[n];
159 _pages_sorted =
false;
165 INLINE
void ConfigPageManager::
166 check_sort_pages()
const {
167 if (!_pages_sorted) {
172 INLINE std::ostream &
ConfigPage * get_explicit_page(size_t n) const
Returns the nth explicit ConfigPage in the world.
std::string get_prc_pattern(size_t n) const
Returns the nth filename pattern that will be considered a match as a valid config file.
size_t get_num_explicit_pages() const
Returns the current number of explicitly-loaded ConfigPages in the world.
void load_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for *.prc files and loads them in as pages.
std::string get_prc_encrypted_pattern(size_t n) const
Returns the nth filename pattern that will be considered a match as a valid encrypted config file.
size_t get_num_implicit_pages() const
Returns the current number of implicitly-loaded ConfigPages in the world.
A global object that maintains the set of ConfigPages everywhere in the world, and keeps them in sort...
bool loaded_implicit_pages() const
Returns true if the implicit *.prc files have already been loaded, false otherwise.
std::string get_prc_executable_pattern(size_t n) const
Returns the nth filename pattern that will be considered a match as a valid executable-style config f...
void reload_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for *.prc files and loads them in as pages.
void mark_unsorted()
This method is meant to be used internally to this module; there is no need to call it directly.
A page of ConfigDeclarations that may be loaded or unloaded.
size_t get_num_prc_encrypted_patterns() const
Returns the number of patterns, like "*.pre", that are compiled in that will be searched for as speci...
ConfigPage * get_implicit_page(size_t n) const
Returns the nth implicit ConfigPage in the world.
This class stores a list of directories that can be searched, in order, to locate a particular file.
size_t get_num_prc_patterns() const
Returns the number of patterns, like "*.prc", that are compiled in that will be searched for as defau...
size_t get_num_prc_executable_patterns() const
Returns the number of patterns, like "*.exe", that are compiled in that will be searched for as speci...
DSearchPath & get_search_path()
Returns the search path used to locate implicit .prc files.